Lazarus

Free Pascal => Unix => Topic started by: AlexTP on April 24, 2019, 07:56:16 am

Title: Cross compiler from Linux x64 to Solaris?
Post by: AlexTP 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.
Title: Re: Cross compiler from Linux x64 to Solaris?
Post by: avra on April 24, 2019, 08:18:01 am
Something like this?
https://www.pilotlogic.com/sitejoom/index.php/downloads/category/8-linux32?start=20
https://www.pilotlogic.com/sitejoom/index.php/downloads/category/9-linux64?start=20
Title: Re: Cross compiler from Linux x64 to Solaris?
Post by: AlexTP 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/*
Title: Re: Cross compiler from Linux x64 to Solaris?
Post by: Leledumbo 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.
Title: Re: Cross compiler from Linux x64 to Solaris?
Post by: AlexTP 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
Title: Re: Cross compiler from Linux x64 to Solaris?
Post by: Thausand 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
Title: Re: Cross compiler from Linux x64 to Solaris?
Post by: AlexTP on April 24, 2019, 12:47:31 pm
Ops, I missed .so files in /???/xorg.
Now Laz app compiles.
Title: Re: Cross compiler from Linux x64 to Solaris?
Post by: AlexTP on April 24, 2019, 01:21:16 pm
Lazarus app - screen
Title: Re: Cross compiler from Linux x64 to Solaris?
Post by: avra on April 24, 2019, 03:54:50 pm
Отлично  ;)
TinyPortal © 2005-2018