Windows PSPSDK Help

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

Moderators: cheriff, TyRaNiD

quetz67
Posts: 5
Joined: Wed Jul 20, 2005 9:45 pm

Post by quetz67 »

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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

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:
## 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!
quetz67
Posts: 5
Joined: Wed Jul 20, 2005 9:45 pm

Post by quetz67 »

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.
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

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!
quetz67
Posts: 5
Joined: Wed Jul 20, 2005 9:45 pm

Post by quetz67 »

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.
User avatar
Subzero
Posts: 9
Joined: Mon Jul 11, 2005 3:38 am

Post by Subzero »

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

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

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.
quetz67
Posts: 5
Joined: Wed Jul 20, 2005 9:45 pm

Post by quetz67 »

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.
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

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!
User avatar
Subzero
Posts: 9
Joined: Mon Jul 11, 2005 3:38 am

Post by Subzero »

I just installed the toolchain and sdk yesterday,
I used pspsdk-1.0+beta.tar.gz and psptoolchain-20050713.tar
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

Your SDK is too old. You need to get the one from subversion.
Jim
User avatar
Subzero
Posts: 9
Joined: Mon Jul 11, 2005 3:38 am

Post by Subzero »

I am new to cygwin, could you tell me how to use subversion to
build the new sdk?
User avatar
Subzero
Posts: 9
Joined: Mon Jul 11, 2005 3:38 am

Post by Subzero »

I updated the sdk via ./toolchain.sh -p controller compiles now.
Thank you.
alatnet
Posts: 14
Joined: Wed Oct 19, 2005 8:57 am

Post by alatnet »

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.
Post Reply