Error making SDL_image

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

Moderators: cheriff, TyRaNiD

Post Reply
ogopogoUBC
Posts: 1
Joined: Wed Mar 01, 2006 8:21 pm
Location: Kelowna, British Columbia, Canada

Error making SDL_image

Post by ogopogoUBC »

Hey,
I keep getting errors when attempting to install the SDL_image libraries.
I have the latest toolchain/devkit/pspgl/SDL set up and working as far as i can tell

in cygwin I entered the

Code: Select all

   ./autogen.sh
   LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
     ./configure --host psp --with-sdl-prefix=$(psp-config --psp-prefix) \
     --prefix=$(psp-config --psp-prefix)
as it says to in the readme.psp but when I enter "make" it gets terminated with the same errors every time:

Code: Select all

/usr/local/pspdev/psp/lib/libGL.a(eglCreateContext.o): In function `eglCreateCon
text':
/home/pspgl/eglCreateContext.c:43: undefined reference to `pspvfpu_initcontext'
/usr/local/pspdev/psp/lib/libGL.a(eglDestroyContext.o): In function `eglDestroyC
ontext':
/home/pspgl/eglDestroyContext.c:42: undefined reference to `pspvfpu_deletecontex
t'
/usr/local/pspdev/psp/lib/libGL.a(glLoadIdentity.o): In function `glLoadIdentity
':
/home/pspgl/glLoadIdentity.c:23: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/psp/lib/libGL.a(pspgl_context.o): In function `flush_matrix':
/home/pspgl/pspgl_context.c:109: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/psp/lib/libGL.a(pspgl_matrix.o): In function `__pspgl_matrix_s
ync':
/home/pspgl/pspgl_matrix.c:19: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/psp/lib/libGL.a(pspgl_matrix.o): In function `__pspgl_matrix_l
oad':
/home/pspgl/pspgl_matrix.c:33: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/psp/lib/libGL.a(glMultMatrixf.o): In function `glMultMatrixf':

/home/pspgl/glMultMatrixf.c:17: undefined reference to `pspvfpu_use_matrices'
collect2: ld returned 1 exit status
make: *** [showimage] Error 1
I am trying to port Wouter van Oortmerssen's Cube FPS/engine/editor but I can't really get started without all of the required libraries and whatnot in place.

Please help...

-Ogopogo
xflash
Posts: 2
Joined: Sun Jan 15, 2006 9:09 pm

Post by xflash »

Hello

I met the same problems with the newly added vfpu lib.

Try to add -lpsprtc -lpspvfpu to your linker libraries (LDFLAGS & cie)

xf
Post Reply