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++ » U++ Developers corner » Building 32 bit apps on Ubuntu64
Building 32 bit apps on Ubuntu64 [message #29152] Thu, 07 October 2010 18:24 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
As it costed me some effort to find it out how to do it, I'll post the results here, just in case somebody needs it Smile

1) Create a new build method, naming it, for example, GCC32

2) Copy ALL settings from GCC build method to the newly created one (ALL, including include directories, flags, etc).
You can omit the LIB directories point, see later

3) Install IA32-LIBS package, it's available on repo. You'll still miss some libs... in particular this damn'd libnotify which costed me some effort.

4) Using getlibs command (install it from repo), install libnotify 32 bit library. You may need also libdbus-1 and libdbus-glib-1, I don't remember if I had them already installed or they were in IA32-LIBS repo. If you still get linker error after last point, just install them with getlibs.

5) in GCC32 build method, Add the following :

in "Debug options" add "-m32" (without quotes !)
in "Optimize for speed" add "-m32" (without quotes !)
in "Optimize for size" add "-m32" (without quotes !)
in "Debug link options" add "-ldbus-glib-1"
in "Release link options" add "-ldbus-glib-1"

wipe all contents of "LIB Directories" and put there these 2 lines :
/lib32
/usr/lib32

That's all. If you STILL get linker errors, annotate them and install the missing 32 bit libs with getlibs command. Google for getlibs examples if you have some doubt.

If you get this linker errors starting with
"undefined reference to `dbus_g_bus_get'"
You missed to add the lines in Debug link option and/or Release link options.

Hope that's useful for somebody Smile

Ciao

Max

[Updated on: Thu, 07 October 2010 23:09]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Working on new installer / makeinstall...
Next Topic: Porting SystemDraw to Frambuffer
Goto Forum:
  


Current Time: Sat Apr 27 14:13:02 CEST 2024

Total time taken to generate the page: 0.06838 seconds