forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem cygwin

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
dark sidious



Joined: 23 Jun 2007
Posts: 1

PostPosted: Sat Jun 23, 2007 2:45 am    Post subject: Problem cygwin Reply with quote

Hello everyone,
I have to decide to install cygwin (pspide thus does not allow the sdl…) But I have a problem when I compile a very simple helloworld it says to me its:

Code:

make : psp-config: Command not found
Makefile:12: /lib/build.mak : No such file or directory
make: *** No rule to make target 'lib/build.mak'. Stop.

here 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


here my source code:

Code:

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

PSP_MODULE_INFO ("Hello world",0,1,1);
#define printf pspDebugScreenPrintf

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

int CallbackThread(SceSize args, void *argp) {
    int cbid;
    cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
    sceKernelRegisterExitCallback(cbid);
    sceKernelSleepThreadCB();
    return 0;
}

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

int main()
{
   pspDebugScreenInit();
   SetupCallbacks();
   printf("Hello World!");
   scrKernelSleepThread();
   return 0;
}


I specify that cygwin and psptoolchain one indeed be to please install
Help me!!!!
Thank you in advance
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group