| View previous topic :: View next topic |
| Author |
Message |
dalivaktuk
Joined: 04 Oct 2007 Posts: 4
|
Posted: Sun Oct 07, 2007 9:06 am Post subject: no rule to make 'all' problem |
|
|
I am getting errors when trying to compile samples.
I have installed cygwin and the psptoolchain, but there is a problem when I try to compile the Hello World example.
any help is much appreciated, I have tried google-ing, but I can't find anything. |
|
| Back to top |
|
 |
Smong
Joined: 04 Sep 2007 Posts: 82
|
Posted: Sun Oct 07, 2007 9:15 am Post subject: |
|
|
Exactly which hello world sample would this be? There are a bunch of samples that come with pspsdk that should work, look in X:\cygwin\usr\local\pspdev\psp\sdk\samples. I suggest the one in controller\basic but there are hello world ones in the template directory.
Also from the title of the thread this could also be a problem with the pspsdk environment variables, you need these lines at the end of .bashrc:
| Code: | export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin | You may also need to edit/save the file with "unix line endings", good luck :P _________________ (+[__]%) |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun Oct 07, 2007 10:11 am Post subject: |
|
|
| Another problem I ran into that might affect people is leading spaces in your makefile. Make wants TABS in the makefile, not spaces. My editor was set to convert tabs to spaces, and that did a real trick on the makefile. So if you get really odd problems that seem to have no rational cause, check your makefile for spaces. |
|
| Back to top |
|
 |
dalivaktuk
Joined: 04 Oct 2007 Posts: 4
|
Posted: Mon Oct 08, 2007 5:49 am Post subject: |
|
|
| Smong wrote: | Exactly which hello world sample would this be? There are a bunch of samples that come with pspsdk that should work, look in X:\cygwin\usr\local\pspdev\psp\sdk\samples. I suggest the one in controller\basic but there are hello world ones in the template directory.
Also from the title of the thread this could also be a problem with the pspsdk environment variables, you need these lines at the end of .bashrc:
| Code: | export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin | You may also need to edit/save the file with "unix line endings", good luck :P |
Thanks for your help! The sample you suggested worked perfectly, I found it was my Makefile. I compared it to the one ...\pspdev\psp\sdk\samples... and my Makefile was missing some code.
Oh yeah, I used the sample from http://www.psp-programming.com/tutorials/c/lesson02.htm, and again thx for your help!!
Now I can use my Dev-C++ IDE to start programming for my psp! |
|
| Back to top |
|
 |
|