How to compile from linux 32 to linux 64? lazarus / 13-General ---------------------------------------------------------------------- kokorini · 2010-01-28 22:06 Hello! I'm new in lazarus (not in pascal) I'm using lazarus on linux 32 bits and I want to compile for linux 64 bits. I don't understand how to do that. I know some how I have to "make" the fpc for 64bits, but I dont understand how. any help is very VERY wellcome, THANKS! Fernando ---------------------------------------------------------------------- sasa · 2010-01-29 08:50 Take a look in Project->Project Options->Compiler Options->Code->Target Platform ---------------------------------------------------------------------- kokorini · 2010-01-29 11:30 I dont see any tab "Compiler Options" in Project Options. I think you mean Project->compiler options->Code->target platform and when I change there the "target family" to x86_64 and try to compile I get the error: "Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127 " in the same window, if I press "test" button I get this error messages: ERROR: compiled FPC unit not found: system.ppu ERROR: compiled FPC unit not found: sysutils.ppu ERROR: compiled FPC unit not found: classes.ppu ERROR: compiled FPC unit not found: avl_tree.ppu ERROR: compiled FPC unit not found: zstream.ppu thank you very much ---------------------------------------------------------------------- sasa · 2010-01-29 12:10 AFAIK, you have to install 64-bit code compiler (FPC, i.e. ppcx64 and related files), but I cannot suggest details since I do not need 64-bit application at the moment. I suppose parallel installation of FPC for 64-bit target CPU is enough. ---------------------------------------------------------------------- kokorini · 2010-01-29 13:29 Ok, but what file should I install? or from where? I'm new in this particular  world and I find myself a little miss. thank you again ---------------------------------------------------------------------- sasa · 2010-01-29 16:30 First of all try this: fpc -i If it returns Linux for x64_64 for supported targets you should be able to cross-compile from linux 32 to 64-bits. To download 64-bit version try from here: ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/x86_64-linux See also : ftp://ftp.freepascal.org/pub/fpc/contrib/cross/ Also search for "fpc-cross-x86-64-linux-2.4.0-3" that is cross- compiler version of fpc and you will probably have installed all necessary stuff for cross-compiling. Here you will probably find all relevant informations you need: http://www.mail-archive.com/fpc- pascal%40lists.freepascal.org/msg18223.html More for reading: http://wiki.freepascal.org/Cross_compiling Etc. Cross-compiling is not naive task at all. If all previous fail, you can compile your own version of FPC from sources which can run on Linux 32-bit, but create executable only for 64-bit Linux.