Recent

Author Topic: Compiling lazarus applications for OpenSolaris  (Read 6708 times)

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Compiling lazarus applications for OpenSolaris
« on: January 03, 2016, 01:02:35 pm »
Is there any easy way to cross-compile OpenSolaris from Linux.
If not, how could I install FPC and Lazarus in OpenSolaris?

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Compiling lazarus applications for OpenSolaris
« Reply #1 on: January 04, 2016, 10:49:38 am »
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
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Compiling lazarus applications for OpenSolaris
« Reply #2 on: January 05, 2016, 06:53:00 am »
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
« Last Edit: January 05, 2016, 06:58:01 am by motaz »

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Compiling lazarus applications for OpenSolaris
« Reply #3 on: January 05, 2016, 12:11:26 pm »
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
Are the ppc* files marked as executable? 

  chmod +x ppc*
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Compiling lazarus applications for OpenSolaris
« Reply #4 on: January 05, 2016, 02:11:33 pm »
I already done that, then I get that message

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11444
  • FPC developer.
Re: Compiling lazarus applications for OpenSolaris
« Reply #5 on: January 05, 2016, 03:05:59 pm »
Check the filetype with 'file'  and also check a file that comes with the distribution that way.

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Compiling lazarus applications for OpenSolaris
« Reply #6 on: January 05, 2016, 04:36:25 pm »
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

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Compiling lazarus applications for OpenSolaris
« Reply #7 on: January 05, 2016, 04:59:07 pm »
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

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Compiling lazarus applications for OpenSolaris
« Reply #8 on: January 05, 2016, 05:23:09 pm »
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)

 

TinyPortal © 2005-2018