Re: [fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

2010-02-09 Thread Patrick Chevalley
I use Ubuntu 9.10 64bit and I can confirm this link are present with this release. To search for the package that contain a file I find apt-file handy: sudo apt-get install apt-file sudo apt-file update and then apt-file search libX11 ___ fpc-pascal mail

Re: [fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

2010-02-08 Thread Graeme Geldenhuys
Patrick Chevalley wrote: > Install the ia32-libs package. I already had this installed and had many libraries available in /usr/lib32/ > also check if your fpc.cfg contain the following lines, I not remember > if I add them: > #ifdef cpui386 > -Fl/usr/lib32 > -Xd > #endif I added this and the p

Re: [fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

2010-02-08 Thread Patrick Chevalley
> I have the same problem (or not?) : Maybe ... try $ locate crti.o must return: /usr/lib/crti.o /usr/lib32/crti.o On Debian/Ubuntu /usr/lib32/crti.o is in a package require by ia32-libs. Beware the path are not the same with Redhat! /usr/lib is 32bit and /usr/lib64 for 64bit. Patrick ___

Re: [fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

2010-02-08 Thread Osvaldo Filho
I have the same problem (or not?) : --- Free Pascal Compiler version 2.4.1 [2010/02/03] for i386 Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Linux for i386 Compiling lazarus.pp Compiling resource ../units/i386-linux/lazarus.or Linking ../lazarus ld: warning: ../link.res contains out

Re: [fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

2010-02-08 Thread Patrick Chevalley
Install the ia32-libs package. also check if your fpc.cfg contain the following lines, I not remember if I add them: #ifdef cpui386 -Fl/usr/lib32 -Xd #endif Patrick ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

[fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

2010-02-08 Thread Graeme Geldenhuys
Hi I'm running Ubuntu 9.04 (64-bit) and have FPC 2.4.1 installed. I cross-compiled a 32-bit version of FPC as well. I'm not trying to compile my fpGUI based projects under my 64-bit system to 32-bit Linux executables. But I am getting the following linking errors. Does anybody know how to resolve