Lazarus

Free Pascal => General => Topic started by: Alextp on June 27, 2020, 09:53:21 pm

Title: [Solved] "ld" error on making Lazarus on Haiku x86
Post by: Alextp on June 27, 2020, 09:53:21 pm
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?
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: Zvoni on June 29, 2020, 09:52:16 am
IIRC, you also have to install the devel-package for libqt5pas
at least, it was on Linux for me
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: Alextp on June 29, 2020, 10:00:20 am
@Zvoni,
no, we don't have libqt5pas-devel package for Haiku, we only have normal libqt5pas package at Hakilo.ru
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: Zvoni on June 29, 2020, 12:38:57 pm
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
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: DonAlfredo on June 29, 2020, 12:48:57 pm
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)
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: Alextp on June 29, 2020, 01:32:23 pm
Don,
I wrote about x86 OS. Could you test on it please?
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: DonAlfredo on June 29, 2020, 09:51:19 pm
Well. FPC and Lazarus up and running on Haiku x86. See included screenshot. Details later.
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: Alextp on June 30, 2020, 12:03:09 am
Good, waiting for fixes...
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: DonAlfredo on June 30, 2020, 03:01:09 pm
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.
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: Alextp on June 30, 2020, 06:54:53 pm
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)
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: DonAlfredo on June 30, 2020, 07:37:55 pm
Quote
Why 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 ...  ;)
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: DonAlfredo on June 30, 2020, 07:48:26 pm
I have filed a Lazarus bugger to correct build issue of libQt5Pas.so on Haiku x86.
https://bugs.freepascal.org/view.php?id=37288
Title: Re: "ld" error on making Lazarus on Haiku x86
Post by: Alextp on July 01, 2020, 04:53:13 pm
fpcupdeluxe on Haiku - all OK now. Thanks.
Title: Re: [Solved] "ld" error on making Lazarus on Haiku x86
Post by: jma_sp on July 05, 2020, 11:18:36 am
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.
Title: Re: [Solved] "ld" error on making Lazarus on Haiku x86
Post by: Alextp on July 05, 2020, 11:31:52 am
Did you instal LAST libqt5pas? you must copy .so files to where Don pointed it.
Title: Re: [Solved] "ld" error on making Lazarus on Haiku x86
Post by: DonAlfredo on July 05, 2020, 11:50:33 am
Quote
Could not resolv symbol _ZN13QJsonDocument4swapERS_
This function should be available in Qt5.10 and higher.
Please check your Qt5 version.
Title: Re: [Solved] "ld" error on making Lazarus on Haiku x86
Post by: jma_sp on July 05, 2020, 01:11:18 pm
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.
Title: Re: [Solved] "ld" error on making Lazarus on Haiku x86
Post by: Alextp on July 05, 2020, 01:21:20 pm
You must copy .so files to Haiku special folder,
Don has written this info on forum
Title: Re: [Solved] "ld" error on making Lazarus on Haiku x86
Post by: DonAlfredo on July 05, 2020, 01:26:25 pm
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
TinyPortal © 2005-2018