I ran the demo sprite program that Jsgf wrote with pspgl, and think it's a good step forward to creating nicer-looking 2D homebrew games.
After downloading the pspgl source archive from goop.org, and putting it in the appropriate pspdev/psp/include directory, I tried compiling the source code for the demo program. I get a linker error
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: cannot find -glut
collect2: ld returned 1 exit status
make: *** [sprite-test.elf] Error 1
I probably didn't install the pspgl files correctly. When creating programs for PC, installation of OpenGL was smooth for me, but I'm not sure where to start fixing this problem. The makefile that came with the source for the program hasn't been altered.
jsgf wrote:So you built a recent goop.org (or now, SVN) version and did "make install"? It looks like you don't have libglut.a in /usr/local/pspdev/psp/sdk/lib.
I think that's the problem. I didn't do "make install" because I didn't know from which directory I should be doing that in the shell. I assumed installing was as simple as placing the .h files in the psp/sdk/include directory. Where should I run the "make install" command after unzipping the pspgl source?
In the top directory (where the Makefile and all the gl*.c and other source files are). In addition to installing the .h files, you also need to install the *.a files which are the actual libraries themselves.
jsgf wrote:In the top directory (where the Makefile and all the gl*.c and other source files are). In addition to installing the .h files, you also need to install the *.a files which are the actual libraries themselves.
Okay, I'm gonna try that when I get back to my computer. I'll also get the latest version of pspgl while I'm at it. Sorry, I'm not too savvy with most Unix compiler commands yet.