Topic: Building on Linux Error

Nothing Huge I tried to fix it my self but I can't make heads or tails of Scons. Eventualy I am going to try and
make Premake4 build scripts to use instead.


/usr/bin/ld: build/linux2/release/MSDK/MGui/libMGui.a(MX11Window.o): undefined reference to symbol 'XGrabKeyboard'
/usr/bin/ld: note: 'XGrabKeyboard' is defined in DSO /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../libX11.so so try adding it to the linker command line
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../libX11.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
scons: *** [build/linux2/release/Maratis/Editor/MaratisEditor] Error 1
scons: building terminated because of errors.
[steven@myhost dev]$

Re: Building on Linux Error

I had this. Should I submit a fix for this with my package stuff (tomorrow hopefully...) Give me 10 mins and I'll reboot into linux and tell you a quick fix

Re: Building on Linux Error

Ok, so there are a couple of SConscript files that need 'X11' adding to them ie:
env_local.AppendUnique(LIBS = ['GL',
                                                             'Xxf86vm',
                                                             'X11'])
MSDK/MGui/SConscript
Maratis/Editor/SConscript
Maratis/Player/SConscript
Examples/ManualUse/SConscript

Also, the editor and player need 'dl' adding to the same list.

Hope that helped. Not sure why, but it compiles fine on one of my machines without it, but one it needs the extra libs.

Re: Building on Linux Error

Strange...

I also read on a linux forum that an accent in a python script could cause an error on some platform :
http://forum.ubuntu-fr.org/viewtopic.php?pid=7748141

the file : trunk/dev/var/scons/platformcustom.py
"févr" line 3

Re: Building on Linux Error

Nistur wrote:

Ok, so there are a couple of SConscript files that need 'X11' adding to them ie:
env_local.AppendUnique(LIBS = ['GL',
                                                             'Xxf86vm',
                                                             'X11'])
MSDK/MGui/SConscript
Maratis/Editor/SConscript
Maratis/Player/SConscript
Examples/ManualUse/SConscript

Also, the editor and player need 'dl' adding to the same list.

Hope that helped. Not sure why, but it compiles fine on one of my machines without it, but one it needs the extra libs.

Thanks that fixed everything and Yahh I would file a bug report with the fix you posted to save them some work.

'dl' libdl is for Dynamic loading, 'The plugin system'

Thanks again smile

Re: Building on Linux Error

Anael - Yes, I think I had that one too, I think it doesn't like the UTF-8 character in your name, and there was no encoding specified before it or something to that effect.

zester - No problem. Took me a little while of fiddling to get it compiling, no sense in anyone else doing the same smile

Last edited by Nistur (2012-01-13 23:03:10)

Re: Building on Linux Error

Cool,

yes a patch would be good to update svn !
Thanks !

Re: Building on Linux Error

I'll try and fix the SConscript and update the svn in a bit then smile