pspgl make error

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

Moderators: cheriff, TyRaNiD

Post Reply
webjeff
Posts: 66
Joined: Thu May 05, 2005 2:51 am

pspgl make error

Post by webjeff »

I just got everything from SVN and I am making the pspgl but I am getting an error in glut.c it looks like, can someone confirm this or take a look at it.

Code: Select all

psp-gcc -g -Wall -O2 -G0 -fsingle-precision-constant -I. -I /usr/local/pspdev/ps
p/sdk/include -MD -MF .deps/eglTerminate.d -c eglTerminate.c
psp-gcc -g -Wall -O2 -G0 -fsingle-precision-constant -I. -I /usr/local/pspdev/ps
p/sdk/include -MD -MF .deps/glut.d -c glut.c
In file included from glut.c:6:
/usr/local/pspdev/psp/sdk/include/psploadexec.h:64: error: parse error before 'S
ceSize'
/usr/local/pspdev/psp/sdk/include/psploadexec.h:64: warning: no semicolon at end
 of struct or union
/usr/local/pspdev/psp/sdk/include/psploadexec.h:66: warning: type defaults to 'i
nt' in declaration of 'args'
/usr/local/pspdev/psp/sdk/include/psploadexec.h:66: warning: data definition has
 no type or storage class
/usr/local/pspdev/psp/sdk/include/psploadexec.h:71: error: parse error before '}
' token
glut.c:174: error: 'key' redeclared as different kind of symbol
/usr/local/pspdev/psp/sdk/include/psploadexec.h:70: error: previous declaration
of 'key' was here
make: *** [glut.o] Error 1
I haven't modified anything, just got it from svn.

Thanks
JK
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Apparently Tyranid fixed it, except he fixed the wrong file :).
webjeff
Posts: 66
Joined: Thu May 05, 2005 2:51 am

Post by webjeff »

yea, we talked about it in IRC. I also updated my GCC to the newest on SVN and that samed to fix it.

Jeff.
User avatar
Thanhda
Posts: 331
Joined: Sat Apr 09, 2005 2:08 am
Location: Canada
Contact:

Post by Thanhda »

just wondering, when you update your svn, where do you extract the files to?

i have extracted the files into /usr/local/pspdev/psp/

and inside the psp/ folder there is trunk vendor and tag. are these folders supose to be there. so am i supose to extract the content inside of trunk/vendor/tag into another dir? because when i try to compile my code i this error.

Code: Select all

psp-gcc -g -Wall -O2 -MD -I/usr/local/pspdev/psp/sdk/include -I.. -c eglcube.c
bin2o -i logo.raw logo.o logo
psp-gcc eglcube.o logo.o -g -Wall -O2 -L/usr/local/pspdev/psp/sdk/lib -L.. -lpspgl -lm -lpspdebug -lpspge -lpspdisplay -lpspctrl -lpspsdk -lpsplibc -lpspuser -lpspkernel -o pspGL-cube.elf
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/bin/ld: cannot find -lpspgl
collect2: ld returned 1 exit status
make: *** [pspGL-cube.elf] Error 1
There are 10 types of people in the world: Those who understand binary, and those who don't...
holger
Posts: 204
Joined: Thu Aug 18, 2005 10:57 am

Post by holger »

have you typed "make" in the pspgl/ directory before trying to build the demos? Since -L.. is part of the LFLAGS it looks there for libpspgl.a...

Holger
Post Reply