Recent

Author Topic: [Solved] "ld" error on making Lazarus on Haiku x86  (Read 3315 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
[Solved] "ld" error on making Lazarus on Haiku x86
« 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?
« Last Edit: July 01, 2020, 04:53:31 pm by Alextp »

Zvoni

  • Hero Member
  • *****
  • Posts: 2319
Re: "ld" error on making Lazarus on Haiku x86
« Reply #1 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
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: "ld" error on making Lazarus on Haiku x86
« Reply #2 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

Zvoni

  • Hero Member
  • *****
  • Posts: 2319
Re: "ld" error on making Lazarus on Haiku x86
« Reply #3 on: June 29, 2020, 12:38:57 pm »
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: "ld" error on making Lazarus on Haiku x86
« Reply #4 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)

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: "ld" error on making Lazarus on Haiku x86
« Reply #5 on: June 29, 2020, 01:32:23 pm »
Don,
I wrote about x86 OS. Could you test on it please?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: "ld" error on making Lazarus on Haiku x86
« Reply #6 on: June 29, 2020, 09:51:19 pm »
Well. FPC and Lazarus up and running on Haiku x86. See included screenshot. Details later.

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: "ld" error on making Lazarus on Haiku x86
« Reply #7 on: June 30, 2020, 12:03:09 am »
Good, waiting for fixes...

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: "ld" error on making Lazarus on Haiku x86
« Reply #8 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.

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: "ld" error on making Lazarus on Haiku x86
« Reply #9 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)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: "ld" error on making Lazarus on Haiku x86
« Reply #10 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 ...  ;)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: "ld" error on making Lazarus on Haiku x86
« Reply #11 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

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: "ld" error on making Lazarus on Haiku x86
« Reply #12 on: July 01, 2020, 04:53:13 pm »
fpcupdeluxe on Haiku - all OK now. Thanks.

jma_sp

  • Full Member
  • ***
  • Posts: 150
  • El conocimiento si ocupa lugar.
Re: [Solved] "ld" error on making Lazarus on Haiku x86
« Reply #13 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.
« Last Edit: July 05, 2020, 11:20:47 am by jma_sp »
Devuan Beowulf 3.0( JWM/ROX/iDesk) - Puppy Linux,  Haiku OS,.ReactOS 0.4.xx  - FreeDos .

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: [Solved] "ld" error on making Lazarus on Haiku x86
« Reply #14 on: July 05, 2020, 11:31:52 am »
Did you instal LAST libqt5pas? you must copy .so files to where Don pointed it.

 

TinyPortal © 2005-2018