[Solved] "ld" error on making Lazarus on Haiku x86 lazarus / 62-General ---------------------------------------------------------------------- AlexTP · 2020-06-27 19:53 I run "make all LCL_PLATFORM=qt5" and get "ld" error about "cannot find -lQt5Pas". libQt5Pas is installed in Haiku (and some apps work with it). but "ld" cannot find it. I tried to append path of this libQt5pas (/boot/system/lib/x86) to PATH before running "make" - no help. What to do? ---------------------------------------------------------------------- Zvoni · 2020-06-29 07:52 IIRC, you also have to install the devel-package for libqt5pas at least, it was on Linux for me ---------------------------------------------------------------------- AlexTP · 2020-06-29 08:00 @Zvoni, no, we don't have libqt5pas-devel package for Haiku, we only have normal libqt5pas package at Hakilo.ru ---------------------------------------------------------------------- Zvoni · 2020-06-29 10:38 Maybe something here (Note: It's for Laz1.9 https://discuss.haiku-os.org/t/lazarus-1-9-trunk-qt4-and- qt5-interface-screenshots/5767/3 ---------------------------------------------------------------------- DonAlfredo · 2020-06-29 10:48 I have no problem with linking on Haiku x64. As long as I have available: libQt5Pas.so.1.2.8 + libQt5Pas.so.1 (symlink) + libQt5Pas.so (symlink) ---------------------------------------------------------------------- AlexTP · 2020-06-29 11:32 Don, I wrote about x86 OS. Could you test on it please? ---------------------------------------------------------------------- DonAlfredo · 2020-06-29 19:51 Well. FPC and Lazarus up and running on Haiku x86. See included screenshot. Details later. ---------------------------------------------------------------------- AlexTP · 2020-06-29 22:03 Good, waiting for fixes... ---------------------------------------------------------------------- DonAlfredo · 2020-06-30 13:01 I have prepared a pre-release for Haiku. https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/1.6.8y The zippers also contain the libQt5Pas.so libraries. To make Haiku life easy: Use FPC stable.git for x86 and x86_64. Use Lazarus stable.git for x86. Use Lazarus trunk.git for x86_64. The stable.git repos are hosted by me. They are very shalow, allowing for quick and reliable checkout of the sources. ---------------------------------------------------------------------- AlexTP · 2020-06-30 16:54 Tks! Will test it shortly. Why don't you create .hpkg (Haiku package) for libqt5pas? very good to have it. so I run HaikuDepot and install it there. (to add it to HaikuDepot, send the 'recipe' to Haiku guys in github) ---------------------------------------------------------------------- DonAlfredo · 2020-06-30 17:37 QuoteWhy don't you create .hpkg (Haiku package) for libqt5pas?Yes, that would certainly be nice. However, I have 25 fpcupdeluxe systems to maintain, besides my normal business as programmer, dad, gardener, cook, referee, sportsman, boss, consultant ... ---------------------------------------------------------------------- DonAlfredo · 2020-06-30 17:48 I have filed a Lazarus bugger to correct build issue of libQt5Pas.so on Haiku x86. https://bugs.freepascal.org/view.php?id=37288 ---------------------------------------------------------------------- AlexTP · 2020-07-01 14:53 fpcupdeluxe on Haiku - all OK now. Thanks. ---------------------------------------------------------------------- jma_sp · 2020-07-05 09:18 Thanks Don Alfredo for your effort, i have been testing your fpcupreleases for Haiku in the hope it will work. In Latest 1.6.8y i get this error: Could not resolv symbol _ZN13QJsonDocument4swapERS_ libQt5Pas.so.1:Troubles relocating: symbol not found. This error is in 32 bits, i havent test in 64. In other releases for Haiku it give me errors with LCL_LOCATE (Im using Haiku in spanish). I also tried to compile latest Lazarus snapshot with make clean all LCL_PLATFORM=qt5 but ever finalize with errors. I was hopping Lazarus team announces a release for Haiku now that fpcworks for x86 & 64 but not happens. Thanks also Alex for triying to port cudatext. Best Regards. ---------------------------------------------------------------------- AlexTP · 2020-07-05 09:31 Did you instal LAST libqt5pas? you must copy .so files to where Don pointed it. ---------------------------------------------------------------------- DonAlfredo · 2020-07-05 09:50 QuoteCould not resolv symbol _ZN13QJsonDocument4swapERS_This function should be available in Qt5.10 and higher. Please check your Qt5 version. ---------------------------------------------------------------------- jma_sp · 2020-07-05 11:11 Only decompress all files containing in fpcupdeluxe zip and chmode +x to.executable. In some releases of fpcupdeluxe for Haiku it give me other errors related to libqtxpas in other not. For previous releases i installed a Linux and downloaded all necessary for crosscompiling and copy to other directory these libraries. ---------------------------------------------------------------------- AlexTP · 2020-07-05 11:21 You must copy .so files to Haiku special folder, Don has written this info on forum ---------------------------------------------------------------------- DonAlfredo · 2020-07-05 11:26 I have compiled a new version of libQt5Pas.so and a new fpcupdeluxe for Haiku x86. Please delete all references to libQt5Pas and use the libs included in this new release. These might work for you as the reference towards ZN13QJsonDocument is gone (I hope). https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/1.6.8z https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.6. 8z/fpcupdeluxe-i386-haiku-qt5.zip