Lazarus
Free Pascal => Unix => Topic started 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.
-
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
-
Thanks. I am trying it with fpc 3.0.4 and Lazarus 2.1 trunk. For Laz app i got
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/*
-
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.
-
I got all .so files from Solaris 11.4 x86. Now on making empty Laz app--
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
-
I got all .so files from Solaris 11.4 x86.
yes ?
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
-
Ops, I missed .so files in /???/xorg.
Now Laz app compiles.
-
Lazarus app - screen
-
Отлично ;)