How to build Linux32 on a Linux64 system

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

How to build Linux32 on a Linux64 system

Postby Julio Jerez » Fri May 29, 2009 12:02 pm

I am compiling the engine for Beta 2.01
I am having a problem that I had before but I kept ignoring.
In a Mac and in Window you can run 32 and 64 bit apps transparently
In Linux this since to be much more difficult.
before I have an small Linux machine just for compiling the SDK in 32 bit, but I do not have it any more.
Now I have a 64 Intel quad core with dual OS installation: Win XP64 and Ubuntu Linux64
I can build the SDK in 64 bit without problems but if I try to build 32 bit I get these errors,

make2
gcc -c -Wall -Wno-strict-aliasing -D_LINUX_VER -ffloat-store -ffast-math -fomit-frame-pointer -msse -m32 -O2 -mtune=pentium4 -march=pentium2 -Idg -Iphysics -o dg/dg.o dg/dg.cpp
In file included from /usr/include/features.h:354,
from /usr/include/stdlib.h:25,
from dg/dgTypes.h:10,
from dg/dgStdafx.h:10,
from dg/dg.cpp:6:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make: *** [dg/dg.o] Error 1
julio@julio-desktop:~/NewtonLinux/development$


It like I need to install some Packager but I do not know what it is.
When I go to the Ubunto site, the consensus seems to be to install another version on Linux on top of the Lunux64
If find that solution and complete abomination,

had anyone build and run 32 bit apps on Linux 64, if so what to I need to install to make it possible?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: How to build Linux32 on a Linux64 system

Postby Stucuk » Sat May 30, 2009 1:09 pm

http://www.cyberciti.biz/faq/x86_64-lin ... -solution/

No clue if it will help (Tho looks like the same error). Google is king of finding solutions :).
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: How to build Linux32 on a Linux64 system

Postby Julio Jerez » Sat May 30, 2009 2:10 pm

I pass tah point.
I had to install

sudo libc6-dev.i386 ....
then I have to add teh option -m32 to all GCC calls
but I still have a problem, that is tah I use libraries GlUT, GLWE, and GLUI
and those are installed as system libary, therfore it can not link the APP in 32 bit.
I think the only way to go aroun that is to add the libraries to the projec and build them with the project.
That is unless they is a different way.

That is what I have to do for the window build, The mac does no need that because in teh Mac every just work,
I think that if I waterboard my Mac, and after that I start it, I bet it will still work.
I do no knwo how tehy do it but theis stuff work with having to massage teh data as much as you have to do in windows and Linux.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron