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 Needed

This is a discussion on Cygwin Help Needed within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hello. I just got my cygwin up and running, but when I type make, I get this error: make: *** ...

Reply
 
LinkBack Thread Tools
Old 11-27-2006, 04:05 PM   #1
 
Join Date: Nov 2006
Posts: 11
Trader Feedback: 0
Default Cygwin Help Needed

Hello. I just got my cygwin up and running, but when I type make, I get this error:

make: *** No rule to make target 'main.o', needed by 'hello.elf'. Stop

Here is my makefile:

Makefile
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


Here is the code I am trying to compile:

Main.cpp#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);
sceKernelRegisterExitCall back(cbid);

sceKernelSleepThreadCB();

return 0;
}

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

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

return thid;
}

int main() {
pspDebugScreenInit();
SetupCallbacks();
pritf("Zongyi's PSP!");
sceKernelSleepThread();
return 0;
}


Any ideas?
zwnage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-27-2006, 04:08 PM   #2
 

 
Join Date: Aug 2006
Location: Cross Country Course
Posts: 794
Trader Feedback: 0
Default

Sorry I can't help you (i never wanted to learn c/c++), try google.
PSPgamer512 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-27-2006, 04:24 PM   #3

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

Main.cpp is not the same as main.cpp

Code:
pritf("Zongyi's PSP!");
pritf should be printf

Also, this should have been posted in the C/C++ Help Thread.
__________________

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 11-27-2006, 04:48 PM   #4
 
Join Date: Nov 2006
Posts: 11
Trader Feedback: 0
Default

Thanks a bunch! I got it working....somehow. The printf thing plus I missed some sort of / sign, and I don't think I was even in the right file (not C drive). Thanks again!
zwnage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
cygwin , needed

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 11:02 AM.



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