QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Cygwin Help!!

This is a discussion on Cygwin Help!! within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Okay so i have it installed and everything so I have my helloworld source and the makefile in the right ...

Reply
 
LinkBack Thread Tools
Old 09-29-2006, 12:59 PM   #1
 
SeanyP's Avatar
 
Join Date: Mar 2006
Posts: 2,925
Trader Feedback: 0
Default Cygwin Help!!

Okay so i have it installed and everything so I have my helloworld source and the makefile in the right directory, I do "cd" to get to the files but when i type make it gives me this:

PHP Code:
make: *** No targets specified and no makefile found.   Stop.
(wrong code box )


So my first question is can anyone help me?!
And is the correct command even make?
SeanyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:09 PM   #2
 
Join Date: Nov 2005
Posts: 1,029
Trader Feedback: 0
Default

Code:
cd projects
If you've installed it correct you should be taken to that folder
Example : F:\cygwin\home\DeMoN\proj ects\

Code:
cd helloworld
Make sure you have the folder helloworld there with your main.c and makefile sources.
Example : F:\cygwin\home\DeMoN\proj ects\helloworld

Then all you need to do is

Code:
make
DeMoN X is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:12 PM   #3
likes kittens....awww....
 
Join Date: Sep 2006
Real First Name: Erik
Location: Detroit
Just Played: Call of Duty:World at War
Posts: 628
Trader Feedback: 0
Default

Quote:
Originally Posted by SeanyP
Okay so i have it installed and everything so I have my helloworld source and the makefile in the right directory, I do "cd" to get to the files but when i type make it gives me this:

PHP Code:
make: *** No targets specified and no makefile found.   Stop.
(wrong code box )


So my first question is can anyone help me?!
And is the correct command even make?
make and make kxploit are commands, but you need a makefile.
psphacker12. is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:16 PM   #4
 
SeanyP's Avatar
 
Join Date: Mar 2006
Posts: 2,925
Trader Feedback: 0
Default

Quote:
Originally Posted by psphacker12.

make and make kxploit are commands, but you need a makefile.
I have a makefile!

Anyway i have some progress i type "make main"
And this actually attempts someting but ends up with many errors.
Last line is:

make: *** [main] Error 1

@demon i did all that



I am NOT installing it again!
-= Double Post =-
My main.c code:
Code:
//Helloworld - my first psp app

/*
This programme was made by SeanyP on 29th Sept
Its a simple helloworld app
*/

#include <pspkernel.h>
#include <pspdebug.h>

PSP_MODULE_INFO("Hello World", 0, 1, 1);

#define printf pspDebugScreenPrintf

/* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
          sceKernelExitGame();
          return 0;
}

/* Callback thread */
int CallbackThread(SceSize args, void *argp) {
          int cbid;

          cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
          sceKernelRegisterExitCallback(cbid);

          sceKernelSleepThreadCB();

          return 0;
}

/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void) {
          int thid = 0;

          thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
          if(thid >= 0) {
                    sceKernelStartThread(thid, 0, 0);
          }

          return thid;
}

pspDebugScreenInit();
SetupCallbacks();

printf("Hello World");

sceKernelSleepThread();

return 0;
}
My makefile:
Code:
TARGET = hello
OBJS = main.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

Last edited by SeanyP; 03-29-2007 at 12:47 PM.. Reason: Automerged Doublepost
SeanyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:19 PM   #5
 
Join Date: Nov 2005
Posts: 1,029
Trader Feedback: 0
Default

Edit : Never mind, Seems fine.
DeMoN X is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:19 PM   #6

&lt;img src=&quot;images/smilies/psp.gif&quot; border=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; cl***=&quot;inlineimg&quot; /&gt; &lt;img src=&quot;images/smilies/Punk.gif&quot; border=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; cl***=&
 

 
Join Date: Jun 2005
Location: Canada
Posts: 1,944
Trader Feedback: 0
Default

are in in the right folder (in cygwin)
Electro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:23 PM   #7
 
SeanyP's Avatar
 
Join Date: Mar 2006
Posts: 2,925
Trader Feedback: 0
Default

they are in C:\cygwin\home\Sean\proje cts\helloworld so i gues that is right... the make file is correct also.
-= Double Post =-
what type of file should the makefile be mine is in RTF (rich text document)

Last edited by SeanyP; 09-29-2006 at 01:23 PM.. Reason: Automerged Doublepost
SeanyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:24 PM   #8

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

And your makefile is named 'makefile' with no extension?

If in doubt type 'ls' in the folder you navigate to, you should see 'main.c' and 'makefile'.
__________________

Check out my homebrew & C tutorials at http://insomniac.0x89.org/
Coder formerly known as Insomniac197

Quote:
tshirtz: what is irshell ??
Atarian_: it's where people who work for the IRS go when they die
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:25 PM   #9
 
Join Date: Nov 2005
Posts: 1,029
Trader Feedback: 0
Default

Quote:
Originally Posted by SeanyP
they are in C:\cygwin\home\Sean\proje cts\helloworld so i gues that is right... the make file is correct also.
-= Double Post =-
what type of file should the makefile be mine is in RTF (rich text document)
That's your problem! lol, Don't use file formats.. Its not a fileformat. Its just "Makefile" (No file extensions) What are you using to write the program, wordpad?
DeMoN X is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:28 PM   #10
 
SeanyP's Avatar
 
Join Date: Mar 2006
Posts: 2,925
Trader Feedback: 0
Default

Yes how should i do the makefile without getting an extension?
SeanyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:28 PM   #11
 
Join Date: Nov 2005
Posts: 1,029
Trader Feedback: 0
Default

Use ConTEXT. http://www.context.cx/
DeMoN X is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:28 PM   #12

AKA Homer
 
Moonchild's Avatar
 
Join Date: Jan 2006
Location: Sweden
Posts: 1,779
Trader Feedback: 0
Default

You could, if you want to, do
Code:
make -f makefile.rtf
But I would suggest renaming the makefile to simply makefile without any extension.

And also, don't use wordpad to write your makefiles or whatever. Use notepad, or some other ascii text editor program.
__________________


Click Here if you want a Winamp Currently Playing Userbar like the one above.

Last edited by homer; 09-29-2006 at 01:39 PM..
Moonchild is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:33 PM   #13
 
SeanyP's Avatar
 
Join Date: Mar 2006
Posts: 2,925
Trader Feedback: 0
Default

god homer you come in and save the day!
Thanks
Time to test my "hello world" lol!
-= Double Post =-
Thanks to demon too that context app is good

Last edited by SeanyP; 09-29-2006 at 01:33 PM.. Reason: Automerged Doublepost
SeanyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 01:42 PM   #14
 
Join Date: Nov 2005
Posts: 1,029
Trader Feedback: 0
Default

Quote:
Originally Posted by SeanyP
Thanks to demon too that context app is good
Yeah, It's great, I use it for both C and LUA.
DeMoN X is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 02:22 PM   #15
 
Lukeson's Avatar
 
Join Date: Sep 2006
Location: Germany
Posts: 216
Trader Feedback: 0
Default

Quote:
Originally Posted by SeanyP
Okay so i have it installed and everything so I have my helloworld source and the makefile in the right directory, I do "cd" to get to the files but when i type make it gives me this:

PHP Code:
make: *** No targets specified and no makefile found.   Stop.
(wrong code box )


So my first question is can anyone help me?!
And is the correct command even make?
I had that too. Have you set up the path's in your Cygwin.bat correctly?
Lukeson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 02:30 PM   #16

AKA Homer
 
Moonchild's Avatar
 
Join Date: Jan 2006
Location: Sweden
Posts: 1,779
Trader Feedback: 0
Default

Quote:
Originally Posted by Lukeson
I had that too. Have you set up the path's in your Cygwin.bat correctly?
If you'd read our replies you'll notice that he already sorted it...
__________________


Click Here if you want a Winamp Currently Playing Userbar like the one above.
Moonchild is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 02:33 PM   #17
 
SeanyP's Avatar
 
Join Date: Mar 2006
Posts: 2,925
Trader Feedback: 0
Default

Quote:
Originally Posted by Lukeson
I had that too. Have you set up the path's in your Cygwin.bat correctly?
Same as What Homer said...
SeanyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 02:36 PM   #18
 
Lukeson's Avatar
 
Join Date: Sep 2006
Location: Germany
Posts: 216
Trader Feedback: 0
Default

sorry
Lukeson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-29-2006, 02:38 PM   #19
 
SeanyP's Avatar
 
Join Date: Mar 2006
Posts: 2,925
Trader Feedback: 0
Default

Quote:
Originally Posted by Lukeson
sorry
Nah dont worry about it man I go no problem with it
SeanyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
cygwin

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 07:18 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us