Compile error REV 12088
#1
Trying to compile today, and getting this error:
Code:
g++ -O2 -o XboxMediaCenter xbmc/*.o xbmc/settings/*.o xbmc/cdrip/*.o guilib/*.o guilib/tinyXML/*.o guilib/common/*.o xbmc/FileSystem/*.o xbmc/FileSystem/VideoDatabaseDirectory/*.o xbmc/FileSystem/MusicDatabaseDirectory/*.o xbmc/visualizations/*.o xbmc/screensavers/*.o xbmc/cores/*.o xbmc/cores/paplayer/*.o xbmc/linux/*.o xbmc/lib/sqLite/*.o xbmc/lib/libscrobbler/*.o xbmc/lib/libPython/*.o xbmc/lib/libPython/xbmcmodule/*.o xbmc/xbox/*.o xbmc/cores/DllLoader/*.o xbmc/cores/DllLoader/exports/*.o xbmc/cores/DllLoader/exports/util/*.o xbmc/utils/*.o xbmc/lib/UnrarXLib/*.o xbmc/lib/libGoAhead/*.o xbmc/cores/dvdplayer/*.o xbmc/cores/dvdplayer/DVDSubtitles/*.o xbmc/cores/dvdplayer/DVDInputStreams/*.o xbmc/cores/dvdplayer/DVDCodecs/*.o xbmc/cores/dvdplayer/DVDCodecs/Audio/*.o xbmc/cores/dvdplayer/DVDCodecs/Video/*.o xbmc/cores/dvdplayer/DVDCodecs/Overlay/*.o xbmc/cores/dvdplayer/DVDDemuxers/*.o xbmc/cores/dvdplayer/DVDCodecs/Overlay/libspucc/*.o xbmc/cores/VideoRenderers/*.o xbmc/cores/VideoRenderers/VideoShaders/*.o xbmc/lib/libcmyth/*.o xbmc/lib/libGoAhead/libGoAheadD-i486-linux.a xbmc/lib/libXBMS/libxbms-i486-linux.a xbmc/lib/libUPnP/libupnp-i486-linux.a xbmc/lib/libshout/libshout-i486-linux.a xbmc/lib/libRTV/librtv-i486-linux.a xbmc/lib/libXDAAP/libxdaap-i486-linux.a xbmc/lib/libcdio/libcdio-i486-linux.a -lhal-storage -ldbus-1 -lpcre -lmms -lmms -lXrandr -lrt -lasound -lmysqlclient -lsqlite3 -lsmbclient -llzo -lfribidi -lfreetype -ldl -lSDL_mixer -lSDL_image -lSDL -lvorbis -logg -ltre -lmad -lXinerama -lGLU -lGLEW -lGL  -rdynamic
guilib/Surface.o: In function `Surface::CSurface::EnableVSync(bool)':
Surface.cpp:(.text+0x1fe3): undefined reference to `glXGetProcAddress'
Surface.cpp:(.text+0x1ff9): undefined reference to `glXGetProcAddress'
Surface.cpp:(.text+0x200f): undefined reference to `glXGetProcAddress'
Surface.cpp:(.text+0x2025): undefined reference to `glXGetProcAddress'
Surface.cpp:(.text+0x203b): undefined reference to `glXGetProcAddress'
guilib/Surface.o:Surface.cpp:(.text+0x2051): more undefined references to `glXGetProcAddress' follow
collect2: ld returned 1 exit status
make[1]: *** [XboxMediaCenter] Error 1
make[1]: Leaving directory `/home/andy/XBMC'
make: *** [all] Error 2
make: Leaving directory `/home/andy/XBMC'
make[1]: *** [XboxMediaCenter] Error 1
make: *** [all] Error 2

Errors have occurred!
View compile log? (y/n) :

Any clues? I assume I have something missing? I'm running Ubuntu 7.10, all up to date, and I installed all the packages from the README.linux.

BTW, it's SVN revison number 12088
Reply
#2
svn builds fine, your side. try deleting surface.o
Reply
#3
spiff Wrote:svn builds fine, your side. try deleting surface.o

I know. I have two ubuntu boxes, almost identical in hardware spec, xbmc compiles on one but not the other. Now I could just copy across the binaries from the working box to the other, (haven't tried that - it might not work), but I'd like to understand why it won't compile on one.
I think it's something to do with the nvidia drivers. If I crack it I'll report back - might be useful.
Reply
#4
OK, I seem to have cured it. Unfortunately I did 2 changes at once, so I'm not sure which solved it! Huh
I installed nvidia-glx-dev, which uninstalled nvidia-glx-legacy-dev,
then I installed nvidia-kernel-source.
Now it compiles.
Reply
#5
Talking to myself ....

I reinstalled nvidia-glx-legacy-dev, which in turn uninstalled nvidia-glx-dev, and the compilation failed again.
Switching back to the non-legacy version solved the issue, so that was the problem.
Reply

Logout Mark Read Team Forum Stats Members Help
Compile error REV 120880