Cross compiler from Linux x64 to Solaris? lazarus / 66-Unix ---------------------------------------------------------------------- AlexTP · 2019-04-24 05:56 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 · 2019-04-24 06:18 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 · 2019-04-24 08:41 Thanks. I am trying it with fpc 3.0.4 and Lazarus 2.1 trunk. For Laz app i got QuoteCompile 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 · 2019-04-24 09:13 Quote from: Alextp on April 24, 2019, 10:41:11 amSo 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 · 2019-04-24 10:33 I got all .so files from Solaris 11.4 x86. Now on making empty Laz app-- QuoteCompile 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 · 2019-04-24 10:39 Quote from: Alextp on April 24, 2019, 12:33:28 pmI got all .so files from Solaris 11.4 x86. yes ? QuoteCompile 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 ? ---------------------------------------------------------------------- AlexTP · 2019-04-24 10:47 Ops, I missed .so files in /???/xorg. Now Laz app compiles. ---------------------------------------------------------------------- AlexTP · 2019-04-24 11:21 Lazarus app - screen ---------------------------------------------------------------------- avra · 2019-04-24 13:54 Отлично