Compiling lazarus applications for OpenSolaris lazarus / 23-Operating Systems ---------------------------------------------------------------------- motaz · 2016-01-03 12:02 Is there any easy way to cross-compile OpenSolaris from Linux. If not, how could I install FPC and Lazarus in OpenSolaris? ---------------------------------------------------------------------- Graeme · 2016-01-04 09:49 Simple answer.... stop trying to use cross-compilation. Install FPC using the official console FPC installer [http://sourceforge.net/projects/freepascal/files/Solaris/]. Then if you must use Lazarus, do a source code checkout, or download the source code for the release you want and build Lazarus manually using make big ide ---------------------------------------------------------------------- motaz · 2016-01-05 05:53 I have downloaded two versions 64 and 32 bit, I get this when executing fpc in bin directory: ppc386 can't be executed for 64 bit: ppcx64 can't be executed I'm using openindiana, the is the result of uname -m i86pc I'm not sure of this 64 of 32 bit ---------------------------------------------------------------------- Graeme · 2016-01-05 11:11 Quote from: motaz on January 05, 2016, 06:53:00 amI have downloaded two versions 64 and 32 bit, I get this when executing fpc in bin directory: ppc386 can't be executed for 64 bit: ppcx64 can't be executed Are the ppc* files marked as executable?    chmod +x ppc* ---------------------------------------------------------------------- motaz · 2016-01-05 13:11 I already done that, then I get that message ---------------------------------------------------------------------- marcov · 2016-01-05 14:05 Check the filetype with 'file'  and also check a file that comes with the distribution that way. ---------------------------------------------------------------------- motaz · 2016-01-05 15:36 for 32 bit: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, stripped for 64 bit: fpc:            ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, stripped btw, ppc386 and ppx64 are not there, should I compile the project? to get that files? I found them in lib directory, should I copy them into bin directory? ---------------------------------------------------------------------- motaz · 2016-01-05 15:59 ppc386 and ppcx64 are working from lib directory, but when I tried to compile project I get this error: Fatal: Can't find unit system used by Engine Fatal: Compilation aborted ---------------------------------------------------------------------- motaz · 2016-01-05 16:23 I found install.sh script and I run it for 64 bit version, when I tried to compile a hello world .pas project I get this: motaz@openindiana:~/asnparser$ fpc first.pas Free Pascal Compiler version 2.6.4 [2014/03/06] for x86_64 Copyright (c) 1993-2014 by Florian Klaempfl and others Target OS: Solaris for x86-64 Compiling first.pas Assembling first first.pas(3,24) Error: Assembler gas not found, switching to external assembling first.pas(3,24) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)