How can I compile a 32-Bit ELF with 64-Bit Linux? lazarus / 1-Linux ---------------------------------------------------------------------- Fred556 · 2009-10-30 13:27 Hello, I have OpenSuse11.1 and would like compile a 32Bit Elf File. But I have no project. Only one dpr file and this compile. So no config exists. Is there a compiler command to inlcude this in dpr file? ---------------------------------------------------------------------- Fred556 · 2009-10-31 13:29 Hello, when I compile my project with command fpc test.pas And I check them with "file test" Then it told me test: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.4.0,statically linked, stripped How can I compile a 32-bit LSB executable in a OpenSuse 11.1 64-Bit. ---------------------------------------------------------------------- Marc · 2009-11-02 10:31 find a x86 version of fpc. Then build a "new" fpc with it so rtl and fcl is compiled for x86. Code: [Select]fpc_source_dir> make all PP=your_path_to_ppc386install it and make sure you fpc.cfg contains something like (in my case) Code: [Select]# 32-bits -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl # 64-bits -Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget -Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/rtl Now you have a 32bit fpc installation. Next is lazarus. Compile the LCL for 32 bit: Code: [Select]lazarus_source_dir> make lcl PP=ppc386 Now you can compile for 32bit or 64bit