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
And happy coding!