Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Releasing U++ » Compiling 32-bit on 64-bit Linux
Compiling 32-bit on 64-bit Linux [message #17046] Sat, 26 July 2008 14:48 Go to next message
mirek is currently offline  mirek
Messages: 12819
Registered: November 2005
Ultimate Member
Actually, it is much easier than I thought... Smile

The trick is to add " -m32" to the "Compiler name" in build methods. This switches the compiler (and linker) to 32-bit mode.

A little bit harder part is installing missing libraries. For this to happen, make sure to add "/usr/lib32" to your Libraries paths in build method and then perhaps the best is to install U++ on 32-bit system (e.g. another partition) and to copy missing libraries from it. Tedious process, but should work. (I must admit I tested only with console app I need for work).

Whether you can package 32-bit .debs on 64-bit system is just another question Smile

Mirek
Re: Compiling 32-bit on 64-bit Linux [message #17058 is a reply to message #17046] Sat, 26 July 2008 19:46 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1264
Registered: September 2007
Senior Contributor
luzr wrote on Sat, 26 July 2008 14:48

Actually, it is much easier than I thought... Smile

The trick is to add " -m32" to the "Compiler name" in build methods. This switches the compiler (and linker) to 32-bit mode.

A little bit harder part is installing missing libraries. For this to happen, make sure to add "/usr/lib32" to your Libraries paths in build method and then perhaps the best is to install U++ on 32-bit system (e.g. another partition) and to copy missing libraries from it. Tedious process, but should work. (I must admit I tested only with console app I need for work).

Whether you can package 32-bit .debs on 64-bit system is just another question Smile

Mirek


No need to install 32 bit ubuntu... There are some a 32 bit compatibility package on ubuntu that installs all 32 bit libraries.
Well.. I don't know which of them are needed, but if you do a
sudo apt-get build-dep wine

I guess you'll have all what you need. That one installs all build dependencies for wine package, whic is a 32 bit one and uses, I think, about 90% of libraries Smile

Ciao

Max
Re: Compiling 32-bit on 64-bit Linux [message #22746 is a reply to message #17046] Mon, 10 August 2009 20:49 Go to previous messageGo to next message
pveach1 is currently offline  pveach1
Messages: 10
Registered: August 2009
Promising Member
How about 64 bit windows?
Re: Compiling 32-bit on 64-bit Linux [message #22749 is a reply to message #22746] Mon, 10 August 2009 23:00 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12819
Registered: November 2005
Ultimate Member
pveach1 wrote on Mon, 10 August 2009 14:49

How about 64 bit windows?


Well, that is quite unrelated IMO.

Anyway, current status is: In Win64, 32-bit theide works and everything compile both in 32/64. The only drawback is debugger (does not work in 64 yet).

Mirek
Re: Compiling 32-bit on 64-bit Linux [message #23019 is a reply to message #22749] Tue, 08 September 2009 06:00 Go to previous messageGo to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
I can debug 32 bit debug executables in win64 but not 64 bit. It will be good when we can debug 64 bit code too as there is sometimes different behaviour.

Nick
Re: Compiling 32-bit on 64-bit Linux [message #41113 is a reply to message #17046] Thu, 31 October 2013 19:39 Go to previous message
mr_ped is currently offline  mr_ped
Messages: 808
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor

doing this "cleanly" in Kubuntu13.04 is now basically impossible, as many libraries-dev packages conflict a lot and don't support multiarch setup (zlib and freetype did stop me).

Didn't try to copy the libs directly from working 32b, that would maybe work, but I would prefer working original packages from Ubuntu/Debian, and that doesn't look like anything what will happen in near future.
Previous Topic: how to make my own PPA for Ubuntu?
Next Topic: Open Build Service
Goto Forum:
  


Current Time: Fri Oct 23 23:40:57 CEST 2020

Total time taken to generate the page: 0.02825 seconds