| View previous topic :: View next topic |
| Author |
Message |
quetz67
Joined: 20 Jul 2005 Posts: 5
|
Posted: Wed Jul 20, 2005 11:59 pm Post subject: |
|
|
| Agoln wrote: | | Your path is wrong. Check out wiki.pspdev.org/psp:programming_faq |
I followed the instructions in the second post and checked my paths (in the start.bat at least) again and again. The path is correct, as he finds the make.exe
Do I need more stuff (cygwin?). I installed that and started cygwin.bat, but no difference. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Thu Jul 21, 2005 12:20 am Post subject: |
|
|
At the command line, type:
psp-gcc -v
If it can't find psp-gcc, your path isn't set properly.
It is possible you have a make.exe somewhere else on your system it is using instead. |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Thu Jul 21, 2005 12:46 am Post subject: |
|
|
| quetz67 wrote: |
psp-gcc -I. -IC:\PSPDev\psp\sdk\/include |
I say your pathing is wrong becuase of that. There is no reason for a \/ in your -I. That is confusing it. Check out what your variable for PSPSDK. In http://wiki.pspdev.org/psp:programming_faq you will see that it tells you to set your variables to:
| Quote: | ## PSPDEV PATH SETTINGS
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin" |
Add that to your cygwin startup script (usually ~/.bash_profile or ~/.bashrc)
*edit* Do not use the information from anywhere else except the wiki. If you have troubles using the wiki, inform us. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
quetz67
Joined: 20 Jul 2005 Posts: 5
|
Posted: Thu Jul 21, 2005 1:04 am Post subject: |
|
|
Thanks for your help guys, I did exactly the same steps (using the same paths) on a different machine and her it runs.
The \/ thingie is indeed strange, but probably that machine is just in a weird condition. |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Thu Jul 21, 2005 3:44 am Post subject: |
|
|
| quetz67 wrote: | | The \/ thingie is indeed strange, but probably that machine is just in a weird condition. |
It \/'s because you have PSPSDK set as C:\PSPDev\psp\sdk\, and when it does that include, it includes it as $(PSPSDK)/include
So when you put your's and the makefile together, you see what you get. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
quetz67
Joined: 20 Jul 2005 Posts: 5
|
Posted: Thu Jul 21, 2005 6:54 pm Post subject: |
|
|
It is very strange, I have the make.exe, the psp-gcc.exe, sources and makefile in one directory.
When I execute the command:
psp-gcc.exe -I. -Ic:\pspdev\psp\sdk\/include -O2 -G0 -Wall -c -o hellopsp.o hellopsp.c
it builds my hellopsp.o
But the make does not find the psp-gcc.
psp-gcc -v gives me:
"Using built-in specs.
Target: psp
Configured with: ../configure --prefix=/usr/local/pspdev --target=psp --enable-l
anguages=c,c++ --with-newlib --enable-cxx-flags=-G0
Thread model: single
gcc version 4.0.0"
independent of the folder where I execute the command, so the path must be correct. |
|
| Back to top |
|
 |
Subzero

Joined: 11 Jul 2005 Posts: 9
|
Posted: Fri Jul 22, 2005 6:04 am Post subject: |
|
|
I have the toolchain set up at the command line now.
I can compile helloworld and the sdktest just fine, however
I can't complie many other samples.
Here is the output I get from the sircs sample:
| Code: | j@DESK /usr/local/pspdev/psp/sdk/samples/ir/sircs
$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -c -o main.o mai
n.c
main.c:67: error: parse error before 'args'
main.c: In function 'main':
main.c:95: error: 'SceCtrlData' undeclared (first use in this function)
main.c:95: error: (Each undeclared identifier is reported only once
main.c:95: error: for each function it appears in.)
main.c:95: error: parse error before 'pad'
main.c:103: error: 'PSP_CTRL_MODE_DIGITAL' undeclared (first use in this functio
n)
main.c:113: error: 'pad' undeclared (first use in this function)
main.c:118: error: 'PSP_CTRL_CIRCLE' undeclared (first use in this function)
main.c:124: error: 'PSP_CTRL_CROSS' undeclared (first use in this function)
main.c:130: error: 'PSP_CTRL_SQUARE' undeclared (first use in this function)
make: *** [main.o] Error 1 |
and from the controller sample:
| Code: | j@DESK /usr/local/pspdev/psp/sdk/samples/controller/basic
$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -c -o main.o ma
n.c
main.c:43: error: parse error before 'args'
main.c: In function 'main':
main.c:71: error: 'SceCtrlData' undeclared (first use in this function)
main.c:71: error: (Each undeclared identifier is reported only once
main.c:71: error: for each function it appears in.)
main.c:71: error: parse error before 'pad'
main.c:77: error: 'PSP_CTRL_MODE_ANALOG' undeclared (first use in this function
main.c:82: error: 'pad' undeclared (first use in this function)
main.c:88: error: 'PSP_CTRL_SQUARE' undeclared (first use in this function)
main.c:91: error: 'PSP_CTRL_TRIANGLE' undeclared (first use in this function)
main.c:94: error: 'PSP_CTRL_CIRCLE' undeclared (first use in this function)
main.c:97: error: 'PSP_CTRL_CROSS' undeclared (first use in this function)
main.c:101: error: 'PSP_CTRL_UP' undeclared (first use in this function)
main.c:104: error: 'PSP_CTRL_DOWN' undeclared (first use in this function)
main.c:107: error: 'PSP_CTRL_LEFT' undeclared (first use in this function)
main.c:110: error: 'PSP_CTRL_RIGHT' undeclared (first use in this function)
main.c:114: error: 'PSP_CTRL_START' undeclared (first use in this function)
main.c:117: error: 'PSP_CTRL_SELECT' undeclared (first use in this function)
main.c:120: error: 'PSP_CTRL_LTRIGGER' undeclared (first use in this function)
main.c:123: error: 'PSP_CTRL_RTRIGGER' undeclared (first use in this function)
make: *** [main.o] Error 1 |
any help would be great. |
|
| Back to top |
|
 |
quetz67
Joined: 20 Jul 2005 Posts: 5
|
Posted: Fri Jul 22, 2005 6:24 am Post subject: |
|
|
I had the same problems.
I decided to go on from NEMs hello world example and at least managed to get the buttons and analog running (and I am a C newbie).
Next is file I/O and sound, the header files have some helpful documentation, shouldnt be that hard for someone who actually knows C. |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Fri Jul 22, 2005 7:23 am Post subject: |
|
|
Subzero: How old is your SDK? I would think about upgrading it, along with your toolchian.
Quetz67: Nem's HelloWorld is pretty dated, and is not really how developers develop the application. I would look into getting the SDK up and running before trying to mess with the hello world app. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
Subzero

Joined: 11 Jul 2005 Posts: 9
|
Posted: Fri Jul 22, 2005 7:34 am Post subject: |
|
|
I just installed the toolchain and sdk yesterday,
I used pspsdk-1.0+beta.tar.gz and psptoolchain-20050713.tar |
|
| Back to top |
|
 |
Jim

Joined: 02 Jul 2005 Posts: 487 Location: Sydney
|
Posted: Fri Jul 22, 2005 8:00 am Post subject: |
|
|
Your SDK is too old. You need to get the one from subversion.
Jim _________________ http://www.dbfinteractive.com |
|
| Back to top |
|
 |
Subzero

Joined: 11 Jul 2005 Posts: 9
|
Posted: Fri Jul 22, 2005 8:09 am Post subject: |
|
|
I am new to cygwin, could you tell me how to use subversion to
build the new sdk? |
|
| Back to top |
|
 |
Subzero

Joined: 11 Jul 2005 Posts: 9
|
Posted: Fri Jul 22, 2005 8:56 am Post subject: |
|
|
I updated the sdk via ./toolchain.sh -p controller compiles now.
Thank you. |
|
| Back to top |
|
 |
alatnet
Joined: 19 Oct 2005 Posts: 14
|
Posted: Wed Oct 19, 2005 9:12 am Post subject: |
|
|
hi, sorta new to programing the psp and i got a problem that i cant seem to figure out how to fix. im trying to compile that sdktest thing and when i try to this comes up:
C:\MinGW\bin\make.exe (2572): *** system shared memory version mismatch detected
- 0x75BE0074/0x75BE0081.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
btw im using dos to do this and i did install the pspsdk thing and did that extract and place thing and tried compiling, nothing.
i installed MinGW and tried compiling, nothing.
tried copying everything that was in PSPDev into MinGW, STILL NOTHING!
i dont want to try to install cygwin cus im on bellsouth dsl light and i know that it would take FOREVER to download and install.
i seriously need help. |
|
| Back to top |
|
 |
|