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 |
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
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
Ciao
Max
[Updated on: Thu, 07 October 2010 23:09] Report message to a moderator
|
|
|
|
|
Building 32 bit apps on Ubuntu64
By: mdelfede on Thu, 07 October 2010 18:24
|
|
|
Re: Building 32 bit apps on Ubuntu64
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: mdelfede on Thu, 07 October 2010 21:49
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: mdelfede on Thu, 07 October 2010 23:30
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: Novo on Fri, 08 October 2010 18:54
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: mdelfede on Fri, 08 October 2010 19:44
|
|
|
Re: Building 32 bit apps on Ubuntu64
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: mdelfede on Fri, 08 October 2010 21:26
|
|
|
Re: Building 32 bit apps on Ubuntu64
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: Novo on Fri, 08 October 2010 22:14
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: mdelfede on Fri, 08 October 2010 22:41
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: Novo on Sat, 09 October 2010 17:38
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: Novo on Sat, 09 October 2010 17:49
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: mdelfede on Sat, 09 October 2010 18:26
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: Novo on Sat, 09 October 2010 21:09
|
|
|
Re: Building 32 bit apps on Ubuntu64
By: Novo on Fri, 15 October 2010 18:39
|
Goto Forum:
Current Time: Sat Apr 27 14:13:02 CEST 2024
Total time taken to generate the page: 0.06838 seconds
|