Problem cygwin

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
dark sidious
Posts: 1
Joined: Sat Jun 23, 2007 2:39 am

Problem cygwin

Post by dark sidious »

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: Select all

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: Select all

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: Select all

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

PSP_MODULE_INFO &#40;"Hello world",0,1,1&#41;; 
#define printf pspDebugScreenPrintf 

int exit_callback&#40;int arg1, int arg2, void *common&#41; &#123; 
    sceKernelExitGame&#40;&#41;; 
    return 0; 
&#125; 

int CallbackThread&#40;SceSize args, void *argp&#41; &#123; 
    int cbid; 
    cbid = sceKernelCreateCallback&#40;"Exit Callback", exit_callback, NULL&#41;; 
    sceKernelRegisterExitCallback&#40;cbid&#41;; 
    sceKernelSleepThreadCB&#40;&#41;; 
    return 0; 
&#125; 

int SetupCallbacks&#40;void&#41; &#123; 
    int thid = 0; 
    thid = sceKernelCreateThread&#40;"update_thread", CallbackThread, 0x11, 0xFA0, 0, 0&#41;; 
    if&#40;thid >= 0&#41; &#123; 
        sceKernelStartThread&#40;thid, 0, 0&#41;; 
    &#125; 
    return thid; 
&#125; 

int main&#40;&#41; 
&#123; 
   pspDebugScreenInit&#40;&#41;; 
   SetupCallbacks&#40;&#41;; 
   printf&#40;"Hello World!"&#41;; 
   scrKernelSleepThread&#40;&#41;; 
   return 0; 
&#125; 
I specify that cygwin and psptoolchain one indeed be to please install
Help me!!!!
Thank you in advance
Post Reply