Forum > Other OS

Cross compiler from Linux x64 to Solaris?

(1/2) > >>

Alextp:
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:
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

Alextp:
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
...

--- End quote ---
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:

--- Quote from: Alextp on April 24, 2019, 10:41:11 am ---So I miss these lib files in fpcupdeluxe304/cross/lib/, and I don't know where to get them?

--- End quote ---
Grab them from your target solaris installation.

Alextp:
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

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version