|
|
|
|
|
|
|
|
|
Re: compile 32bit on 64bit [message #537437 is a reply to message #537393] |
Wed, 02 June 2010 12:56 |
Axel Mueller Messages: 1973 Registered: July 2009 |
Senior Member |
|
|
For Windows crossompilation you need the mingw package. And I recommend installing the crosscompilation feature of the Ecipse CDT plugin .
Quote: | For SDL libs i wanted to include a different lib (32bit) location but apparently I forgot something alike libconfig or so. I'm stuck there for now. Simply copying from the 32bit linux doesn't work.
|
You have to install the 32Bit version of the libs. Download the 32Bit package (deb file). And then install it from the command line:
sudo dpkg -i --force-all <package_i386.deb>
the force-all option is necessayr to install 32Bit package on a 64bit system.
If you need more libs you can use the package "getlibs" (http://ubuntuforums.org/showthread.php?t=474790)
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
[Updated on: Wed, 02 June 2010 12:59] Report message to a moderator
|
|
|
Re: compile 32bit on 64bit [message #537475 is a reply to message #537437] |
Wed, 02 June 2010 15:05 |
Michael Mising name Messages: 103 Registered: July 2009 |
Senior Member |
|
|
I've simply selected them at install of 10.04.
Now that's the error I get:
------------
g++ -Lmedia/openSuse-/usr/lib/ -m32 -shared -o"lin.xpl" ./main.o -lSDL -lSDL_mixer -lalut -lSDL_image -lGL -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libSDL.so when searching for -lSDL
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libSDL.a when searching for -lSDL
/usr/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL
/usr/bin/ld: skipping incompatible /usr/lib/libSDL.a when searching for -lSDL
/usr/bin/ld: cannot find -lSDL
collect2: ld returned 1 exit status
make: *** [lin.xpl] Fehler 1
------
Can I copy the libs from suse to f.ex. /usr/libsSuse32 and then simply run ldconfig from that directory? What about the win & osx libs?
Thanks
[Updated on: Wed, 02 June 2010 15:24] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02236 seconds