New dependencies for SVN?

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

New dependencies for SVN?

Postby joepal » Thu Dec 11, 2008 1:38 pm

Are there new dependencies for the SVN code? SDL wasn't used before, right?

Code: Select all
root@hastur:/usr/src/makehuman/trunk/mh_phoenix# make
compiling C file src/core.c to src/core.o ...
compiling C file src/glmodule.c to src/glmodule.o ...
In file included from src/glmodule.c:31:
./include/glmodule.h:31:17: warning: SDL.h: Filen eller katalogen finns inte
./include/glmodule.h:32:24: warning: SDL_opengl.h: Filen eller katalogen finns inte
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: New dependencies for SVN?

Postby Manuel » Tue Dec 30, 2008 11:01 am

Yes, we have used SDL to replace freeglut. Have you fixed the new dependencies?
Manuel
 

Re: New dependencies for SVN?

Postby joepal » Fri Jan 02, 2009 10:20 pm

No, I didn't get it to compile yet. To be honest I didn't try a lot though. Just installing the *sdl-dev packages on my ubuntu box didn't help, but I didn't spend more time investigating it.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: New dependencies for SVN?

Postby joepal » Sat Jan 03, 2009 9:26 pm

I debugged and fixed the dependency problems on my vanilla ubuntu box. Now it compiles and runs. I caused the problems from before mostly myself, so no need to change anything in svn code.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: New dependencies for SVN?

Postby cretox » Sat Jan 24, 2009 3:29 pm

Hi there!

@joepal: how did you fixed it?

I'm having some trouble with SVN version and a similar problem like joepal wrote about the SDL headers.
I've installed the development package that give the SDL*.h files.
Then I've modified the SConstruct file like this (just the first line):

Code: Select all
env = Environment(CPPPATH=['include','/usr/include/python2.5','/usr/include/GL','/usr/include/SDL'],


to include my SDL headers path (otherwise I have the same error as joepal wrote, although SDL*.h are present)
Now I have this brand new error:

Code: Select all
$ scons
scons: Reading SConscript files ...                         
Checking for C library python2.5... (cached) yes             
Checking for C library X11... (cached) yes                   
Checking for C library glut... (cached) yes                 
Checking for C header file Python.h... (cached) yes         
Checking for C header file freeglut.h... (cached) yes       
scons: done reading SConscript files.                       
scons: Building targets ...                                 
gcc -o src/gltexture.o -c -Iinclude -I/usr/include/python2.5 -I/usr/include/GL -I/usr/include/SDL src/gltexture.c
gcc -o src/glmodule.o -c -Iinclude -I/usr/include/python2.5 -I/usr/include/GL -I/usr/include/SDL src/glmodule.c 
gcc -o src/main.o -c -Iinclude -I/usr/include/python2.5 -I/usr/include/GL -I/usr/include/SDL src/main.c
gcc -o src/core.o -c -Iinclude -I/usr/include/python2.5 -I/usr/include/GL -I/usr/include/SDL src/core.c
gcc -o makehuman src/gltexture.o src/glmodule.o src/main.o src/core.o -lpython2.5 -lX11 -lglut -lpython2.5 -lX11 -lglut
src/glmodule.o: In function `mhLoadTexture':
glmodule.c:(.text+0xc5): undefined reference to `SDL_LoadObject'
glmodule.c:(.text+0x10f): undefined reference to `SDL_LoadFunction'
glmodule.c:(.text+0x165): undefined reference to `SDL_GetError'
glmodule.c:(.text+0x209): undefined reference to `SDL_FreeSurface'
glmodule.c:(.text+0x431): undefined reference to `SDL_FreeSurface'
src/glmodule.o: In function `mhTimerFunc':
glmodule.c:(.text+0x4d8): undefined reference to `SDL_PushEvent'
src/glmodule.o: In function `mhMouse':
glmodule.c:(.text+0x548): undefined reference to `SDL_WarpMouse'
src/glmodule.o: In function `mhDrawEnd':
glmodule.c:(.text+0xad7): undefined reference to `SDL_GL_SwapBuffers'
src/glmodule.o: In function `mhQueueUpdate':
glmodule.c:(.text+0x14b9): undefined reference to `SDL_PushEvent'
src/glmodule.o: In function `mhCreateWindow':
glmodule.c:(.text+0x14dd): undefined reference to `SDL_Quit'
glmodule.c:(.text+0x14ec): undefined reference to `SDL_Init'
glmodule.c:(.text+0x14f5): undefined reference to `SDL_GetError'
glmodule.c:(.text+0x1520): undefined reference to `SDL_GL_SetAttribute'
glmodule.c:(.text+0x152f): undefined reference to `SDL_GL_SetAttribute'
glmodule.c:(.text+0x153e): undefined reference to `SDL_GL_SetAttribute'
glmodule.c:(.text+0x154d): undefined reference to `SDL_GL_SetAttribute'
glmodule.c:(.text+0x155c): undefined reference to `SDL_GL_SetAttribute'
src/glmodule.o:glmodule.c:(.text+0x156b): more undefined references to `SDL_GL_SetAttribute' follow
src/glmodule.o: In function `mhCreateWindow':
glmodule.c:(.text+0x157a): undefined reference to `SDL_RWFromFile'
glmodule.c:(.text+0x1587): undefined reference to `SDL_LoadBMP_RW'
glmodule.c:(.text+0x15ae): undefined reference to `SDL_MapRGB'
glmodule.c:(.text+0x15c2): undefined reference to `SDL_SetColorKey'
glmodule.c:(.text+0x15d0): undefined reference to `SDL_WM_SetIcon'
glmodule.c:(.text+0x15df): undefined reference to `SDL_GetVideoInfo'
glmodule.c:(.text+0x1630): undefined reference to `SDL_SetVideoMode'
glmodule.c:(.text+0x1640): undefined reference to `SDL_GetError'
glmodule.c:(.text+0x1677): undefined reference to `SDL_WM_SetCaption'
glmodule.c:(.text+0x1686): undefined reference to `SDL_EnableKeyRepeat'
glmodule.c:(.text+0x1696): undefined reference to `SDL_InitSubSystem'
glmodule.c:(.text+0x16ab): undefined reference to `SDL_AddTimer'
src/glmodule.o: In function `mhEventLoop':
glmodule.c:(.text+0x16e2): undefined reference to `SDL_ShowCursor'
glmodule.c:(.text+0x16f0): undefined reference to `SDL_WaitEvent'
glmodule.c:(.text+0x1727): undefined reference to `SDL_GetMouseState'
collect2: ld returned 1 exit status
scons: *** [makehuman] Error 1
scons: building terminated because of errors.


I can't figure out what «undefined reference to...» does mean. Is that a problem with the linker?
I'm using debian64 (amdk10).

Thank you for your great work guys. This is awesome :D
And happy coding!
cretox
 
Posts: 3
Joined: Sat Jan 24, 2009 3:05 pm

Re: New dependencies for SVN?

Postby Manuel » Thu Jan 29, 2009 8:11 am

Actually I don't use the scons (I just use the quick compile_src.bat - compile_src.sh, for quick compile...) so it's not updated.
So I've asked to Marc about this. He reply me:

he just doesn't link to sdl.lib
LIBS = ['python2.5','X11','glut']), I suppose he has to put SDL there


Regards,

Manuel
Manuel
 

Re: New dependencies for SVN?

Postby Manuel » Thu Jan 29, 2009 8:15 am

Marc has updated the file. Now it should work.
Manuel
 

Re: New dependencies for SVN?

Postby joepal » Thu Jan 29, 2009 8:50 am

scons? I only used make.

First I copied Makefile.linux to Makefile. Then I edited Makefile to specify "-I /usr/include/SDL". Then ran "make" and everything worked.

The problem I fixed on my own side was the new "-I", and realizing that "make clean" doesn't really clean up, you also need to run

Code: Select all
find . -name "*.pyc" -exec "rm" "-f" {} ";"


If you have old incompatible junk left from earlier compiles. (I'll write a patch for the Makefile for this some day)
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: New dependencies for SVN?

Postby cretox » Thu Jan 29, 2009 1:13 pm

ohhh :)
libglut3 was missing, thanks to joepal
it works fine now!
thank you!
cheers
cretox
 
Posts: 3
Joined: Sat Jan 24, 2009 3:05 pm


Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: onder and 1 guest