Recent

Author Topic: Cross compiler from Linux x64 to Solaris?  (Read 3846 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Cross compiler from Linux x64 to Solaris?
« on: April 24, 2019, 07:56:16 am »
I cannot find such cross compiler pkg. Can you publish it? I want to compile my app for Solaris 11 x86 (from Linux x64). Thanks.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Cross compiler from Linux x64 to Solaris?
« Reply #2 on: April 24, 2019, 10:41:11 am »
Thanks. I am trying it with fpc 3.0.4 and Lazarus 2.1 trunk. For Laz app i got

Quote
Compile Project, OS: solaris, Target: project1: Exit code 1, Errors: 20
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: cannot find -lm
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: cannot find -lc
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: cannot find -lmd5
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: cannot find -laio
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: cannot find -lrt
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: cannot find -ldl
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: cannot find -lpthread
...
So I miss these lib files in fpcupdeluxe304/cross/lib/, and I don't know where to get them?
I have only fpcupdeluxe304/cross/bin/*

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Cross compiler from Linux x64 to Solaris?
« Reply #3 on: April 24, 2019, 11:13:06 am »
So I miss these lib files in fpcupdeluxe304/cross/lib/, and I don't know where to get them?
Grab them from your target solaris installation.

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Cross compiler from Linux x64 to Solaris?
« Reply #4 on: April 24, 2019, 12:33:28 pm »
I got all .so files from Solaris 11.4 x86. Now on making empty Laz app--

Quote
Compile Project, OS: solaris, Target: project1: Exit code 1, Errors: 14
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: warning: libdrm.so.2, needed by /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1, not found (try using -rpath or -rpath-link)
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1: undefined reference to `drmGetVersion'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1: undefined reference to `drmCommandWriteRead'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libGL.so.1: undefined reference to `drmCloseOnce'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libGL.so.1: undefined reference to `drmMap'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libGL.so.1: undefined reference to `drmUnmap'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1: undefined reference to `drmFreeDevice'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1: undefined reference to `drmFreeVersion'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1: undefined reference to `drmGetMagic'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1: undefined reference to `drmGetDevices'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1: undefined reference to `drmGetDevice'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libGL.so.1: undefined reference to `drmOpenOnce'
Error: /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1: undefined reference to `drmFreeDevices'
project1.lpr(21,1) Error: Error while linking

Thausand

  • Sr. Member
  • ****
  • Posts: 292
Re: Cross compiler from Linux x64 to Solaris?
« Reply #5 on: April 24, 2019, 12:39:59 pm »
I got all .so files from Solaris 11.4 x86.
yes ?
Quote
Compile Project, OS: solaris, Target: project1: Exit code 1, Errors: 14
Error: /home/user/fpcupdeluxe304/cross/bin/x86_64-solaris/x86_64-solaris-gld: warning: libdrm.so.2, needed by /home/user/fpcupdeluxe304/cross/lib/x86_64-solaris//libEGL.so.1, not found (try using -rpath or -rpath-link)
or... no ?  ;D
« Last Edit: April 24, 2019, 12:43:44 pm by Thausand »

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Cross compiler from Linux x64 to Solaris?
« Reply #6 on: April 24, 2019, 12:47:31 pm »
Ops, I missed .so files in /???/xorg.
Now Laz app compiles.

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Cross compiler from Linux x64 to Solaris?
« Reply #7 on: April 24, 2019, 01:21:16 pm »
Lazarus app - screen

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Cross compiler from Linux x64 to Solaris?
« Reply #8 on: April 24, 2019, 03:54:50 pm »
Отлично  ;)
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018