1
General / Re: SFML 2.0 32Bit on Linux 64Bit?
« on: May 20, 2013, 04:52:10 pm »Is the -m32 really the only flag you have to set, to switch to 32bit compiling & linking?You are right.
1. In order to compile as 32bit gcc-multilib and g++-multilib have to be installed.
2. The pogram has to be compiled and linked both with the "-m32" flag.
3. All required libraries should be present as 32bit:
Code: [Select]
/usr/bin/ld: warning: libfreetype.so.6, needed by <path>/SFML_2.0_32/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libGLEW.so.1.7, needed by <path>/SFML_2.0_32/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libjpeg.so.8, needed by <path>/SFML_2.0_32/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libX11.so.6, needed by <path>/SFML_2.0_32/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXext.so.6, needed by <path>/SFML_2.0_32/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXrandr.so.2, needed by <path>/SFML_2.0_32/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
<path>/SFML_2.0_32/lib/libsfml-window.so: undefined reference to `XCreateIC'
<path>/SFML_2.0_32/lib/libsfml-window.so: undefined reference to `XQueryExtension'
[...]
I think with installing the required 32bit libs it should be done. I will inform you the upcoming days about my success.
Thank you.