forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem building ODE

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Thu May 17, 2007 5:44 am    Post subject: Problem building ODE Reply with quote

Hi! I've a problem build ODE(open dynamics engine) from svn.When I go to a folder with it and do make I get:

Code:
psp-gcc -o ode/test/test_chain2.exe ode/test/test_chain2.o lib/libode.a lib/libdrawstuff.a  -L/usr/local/pspdev/psp/sdk/lib -lGLU -lGL -lpspdisplay -lpspge -lpsprtc -lpspctrl -lstdc++ -lpspdebug -lpspsdk -lm -lc -lpsputility -lpspuser -lpspkernel
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libGL.a(eglCreateContext.o): In function `eglCreateContext':
/home/gambiting/psp/pspgl/eglCreateContext.c:43: undefined reference to `pspvfpu_initcontext'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libGL.a(eglDestroyContext.o): In function `eglDestroyContext':
/home/gambiting/psp/pspgl/eglDestroyContext.c:42: undefined reference to `pspvfpu_deletecontext'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libGL.a(glLoadIdentity.o): In function `glLoadIdentity':
/home/gambiting/psp/pspgl/glLoadIdentity.c:23: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libGL.a(glMultMatrixf.o): In function `glMultMatrixf':
/home/gambiting/psp/pspgl/glMultMatrixf.c:17: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libGL.a(glRotatef.o): In function `glRotatef':
/home/gambiting/psp/pspgl/glRotatef.c:74: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libGL.a(glTranslatef.o): In function `glTranslatef':
/home/gambiting/psp/pspgl/glTranslatef.c:19: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libGL.a(pspgl_context.o): In function `flush_matrix':
/home/gambiting/psp/pspgl/pspgl_context.c:108: undefined reference to `pspvfpu_use_matrices'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libGL.a(pspgl_matrix.o):/home/gambiting/psp/pspgl/pspgl_matrix.c:19: more undefined references to `pspvfpu_use_matrices' follow
collect2: ld returned 1 exit status
make: *** [ode/test/test_chain2.exe] Error 1

I have newest pspsdk with pspgl straight from svn.Please help!
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Thu May 17, 2007 7:22 am    Post subject: Reply with quote

Looks like you need to make sure you're including <pspvfpu.h> and linking -lpspvfpu.

The reference to 'test_chain2.exe' in your compile looks a little weird too, but then again I have no experience with ODE from SVN, so that could just be me ;)
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Thu May 17, 2007 1:06 pm    Post subject: Reply with quote

i was briefly looking at this and i got the same error.

but it looks like the library is being compiled fine, just not one of the tests (named .exe but is actually an elf)

so just go into the ode directory and look around, you should find the library and header files very quickly and then just place them appropriately in your pspdev directory...
_________________
- be2003
blog
Back to top
View user's profile Send private message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Fri May 18, 2007 12:58 am    Post subject: Reply with quote

I've managed to compile it fine - just had to edit ode/config/makefile.psp and add -lpspvfpu to LIBS.It's working now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group