Hello everybody
Have good news : it is possible to compile a 64 bit app from a 32 bit Ubuntu system.
Here how i do :
First install the cross element x86_64-linux of CodeTyphon.
Then you need 64 bit libraries. Sadly the package ia64-libs does not exist. So, from a Ubuntu 64 bits usb install, i choose
"Try Ubuntu" and copy the
lib/x86_64-linux-gnu and
usr/lib/x86_64-linux-gnu folders into a other usb stick.
When it is done, paste
lib/x86_64-linux-gnu and
usr/lib/x86_64-linux-gnu folders into your 32 bit system.
Then edit your fpc.cfg
sudo gedit /usr/lib/codetyphon/fpc/bin/i386-linux/fpc.cfg
and replace section
searchpath for libraries with that :
# searchpath for libraries
#ifdef cpux86_64
-Fl/usr/lib/x86_64-linux-gnu
-Fl/lib/x86_64-linux-gnu
#endif
#ifdef cpui386
-Fl/usr/lib/i386-linux-gnu
-Fl/lib/i386-linux-gnu
#endif
Then, like Dibo explained, add the missing links in
/usr/lib/x86_64-linux-gnu and in
lib/x86_64-linux-gnu
Load Lazarus, choose Linux x86_64 target and it works.
If you want, i have already prepare all the job : compressed 64 libraries with all missing links included (about 72 megas but i do not know where to upload it)
EDIT : I have still the boring message of "Libraries not found" in the CodeTyphon libraries window.
I do not understand why because i can cross compil from Linux 32 into Windows 32, Windows 64, Linux 32 and Linux 64 without problems...