Check the folder /usr/bin/local/pspdev/psp/libs (it should be somewhere around there... can't remember the exact path as I don't have access to my dev PC right now). Make sure the file ligGL.a is in there. I'm thinking that the lib isn't there.
Gary13579 wrote:Check the folder /usr/bin/local/pspdev/psp/libs (it should be somewhere around there... can't remember the exact path as I don't have access to my dev PC right now). Make sure the file ligGL.a is in there. I'm thinking that the lib isn't there.
You're telling it the target elf requires libGL.a and libglut.a from the parent directory of where the makefile is at... which I'm guessing is very not right ;)
...then you have things like $PSPPATH and such being used...
...and $PSPSDK doesn't seem to be used at all...
Is there a reason you are hacking up a complete custom makefile instead of using one based on build.mak like the template? ...
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/crt0.o: In function '_main':
/home/user/newtoolchain/pspsdk/src/startup/crt0.c:86: undefined reference to 'main'
collect2: ld returned 1exit status
make: *** [.elf] error 1
what can i do?
i'm very noob with cygwin and makefile because i use visual c++ :) but i want to learn!
Drakonite wrote:You're telling it the target elf requires libGL.a and libglut.a from the parent directory of where the makefile is at... which I'm guessing is very not right ;)
...then you have things like $PSPPATH and such being used...
...and $PSPSDK doesn't seem to be used at all...
Is there a reason you are hacking up a complete custom makefile instead of using one based on build.mak like the template? ...
Do you think this might be because he just doesn't have the path stuff setup properly, if at all? It's a very common problem, and it causes you to mess up your makefile with direct paths to compensate.
If so, I'd suggest him digging up one of the many instructions on setting that up in bash.rc on these forums, as that's what I did and worked best.
Either that, or maybe he did a make in pspgl, but then forgot the make install?
Drakonite wrote:You're telling it the target elf requires libGL.a and libglut.a from the parent directory of where the makefile is at... which I'm guessing is very not right ;)
...then you have things like $PSPPATH and such being used...
...and $PSPSDK doesn't seem to be used at all...
Is there a reason you are hacking up a complete custom makefile instead of using one based on build.mak like the template? ...
Do you think this might be because he just doesn't have the path stuff setup properly, if at all? It's a very common problem, and it causes you to mess up your makefile with direct paths to compensate.
If so, I'd suggest him digging up one of the many instructions on setting that up in bash.rc on these forums, as that's what I did and worked best.
Either that, or maybe he did a make in pspgl, but then forgot the make install?
i found how to set up bash.rc and make it, and i don't forgot to make install the pspgl but i doesn't work... :(