Lazarus

Free Pascal => FPC development => Topic started by: Lorglas on March 26, 2021, 10:16:13 pm

Title: Freepascal 3.0.4 port to Haiku 64bit
Post by: Lorglas on March 26, 2021, 10:16:13 pm
Can one port Freepasval 3.0.4 to Haiku 64Bit.

32Bit is available.
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: sstvmaster on March 26, 2021, 11:22:31 pm
Or you use fpcupdeluxe: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: marcov on March 26, 2021, 11:23:38 pm
The FPC 3.0.x branch has been retired with the FPC 3.2.0 release last summer.
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: PascalDragon on March 27, 2021, 11:01:09 am
And 3.2.0 does support Haiku on x86_64 already. See here (https://sourceforge.net/projects/freepascal/files/Haiku/3.2.0/).
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: ASBzone on March 31, 2021, 08:47:54 pm
Can one port Freepasval 3.0.4 to Haiku 64Bit.

32Bit is available.

Is your goal specifically FPC 3.0.4?  Because FPC 3.2.0 is available for Haiku 64-bit.
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on July 24, 2021, 10:21:15 am
Hello, at the moment Haiku has both 32bit and 64bit (FPC 3.2.2) packages (and FPC_source) package available that can be installed through our packagemanager.
I've been playing around a bit with it, also added a package for libQt5Pas (1.2.9) for Haiku.

I am able to build Lazarus on both arch's and on 64bit it launches fine, on 32bit it fails to launch as it can't find libstdc++.r4.so (which is gcc2*), I suspect that the 32bit package somehow links to it? I've build it with gcc8* compiler so can't figure out why it still insist on using the mentioned library

Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: jma_sp on November 14, 2021, 09:31:41 pm
Thanks Begasus.
I have tried to compile Lazarus under Haiku in 64 bit mode with fpc 3.2.0 and latest trunk Lazarus sources. It finalize with errors.
I compiled with make bigide LCL_PLATTFORM=qt5
It compile most of the source code  but not all.
So compile before  qt5 cbindings qmake -- make -- make install fails because destination directory is write protected so i copied it manually to nonpackaged -- lib
Actual qt5pas is for qt 5.6.1 Haiku Qt version 5.15 and have available qt 6 base in its depot.
It is a pitty that bepascal/befpc was discontinued and not have a Haiku native widgetset with Lazarus.
Fpcupdeluxe fail to install both freepascal and lazarus, i have tried with stable, trunk,....
In the other hand freepascal install ok  in 64 bits but when moving mouse in fp ide it send strange code to screen edition as it where typed by keyboard.

Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on November 15, 2021, 07:30:24 pm
Has been a while since I last checked, I have a script to make the build complete, haven't checked a Qt6 build for either lazarus/libQt5(?).pas if it works, would be nice if the build for fpc could be provided as a build against gcc11 for Haiku ...
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: DonAlfredo on November 17, 2021, 11:33:15 am
I have tweaked fpcupdeluxe to solve some issues on Haiku i386 and x86_64.
See screenshot of Lazarus on i386.
This new version will be released soon.
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on November 17, 2021, 07:35:14 pm
Great work!
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: jma_sp on November 17, 2021, 10:08:04 pm
Thanks  O:-)

Then which option combination should be best to create the compilation by example version of Freepascal + Lazarus or directly trunk button?
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: jma_sp on November 21, 2021, 12:54:17 pm
Can you DonAlfredo make a check for additional neccesary packages to install Lazarus?
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on November 21, 2021, 03:41:15 pm
If there is something we could check out on Haiku side could you give a notice? Quite a lot of people are interested into a port for this ;)
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on December 19, 2021, 06:26:32 pm
Sorry for not replying earlier, I've been able to build fpc/lazarus with fpcupdeluxe a while ago, even created a wip recipe for it at haikuports, so far it's looking good :)

Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on December 19, 2021, 06:28:34 pm
Building one of the examples works ok too ;)

Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: AlexTP on December 19, 2021, 08:19:21 pm
Good that Haiku has the package!
Is the IDE supporting the debugging while I run an app in the IDE?
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on December 20, 2021, 07:49:10 am
Haiku still hasn't got the package, fpc can be installed through our package manager, Lazarus still doesn't builld with a (wip) recipe I'm using (builds ok from Terminal though).
But FPCUPdeluxe can be downloaded and every one should be able to build both source with that one.  ;D

Running with debugging is still a no go :(
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on December 22, 2021, 01:29:15 pm
OK, FPCUPdeluxe 2.2.0e has made it into haikuports for both 32bit and 64bit, thanks for all the efforts here!

On a note, I was able to build CudaText with it ;)

Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: jma_sp on January 06, 2022, 10:54:32 am
Good news then.

I hope 2022 get us best support for Haiku operating system now that also fpcupdeluxe is in depot.

Im glad to see cudatext compiled for it.

There is things to fix as in fp IDE under Haiku generate codes in editor when mouse move instead of only moving cursor.

Happy new year to all.

Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: Begasus on August 30, 2022, 03:08:46 pm
Hello, I'm using fpcupdeluxe to build Lazarus on Haiku, got a question, is it possible to seperate the downloaded source from the actual install path?
Title: Re: Freepascal 3.0.4 port to Haiku 64bit
Post by: jma_sp on January 28, 2024, 11:56:18 am
Good news then.

I hope 2022 get us best support for Haiku operating system now that also fpcupdeluxe is in depot.

Im glad to see cudatext compiled for it.

There is things to fix as in fp IDE under Haiku generate codes in editor when mouse move instead of only moving cursor.

Happy new year to all.

It is working correctly actually, i dont know what was the fix.

Somethings are being enhanced, by example i was able to finaly generate a functional Lazarus IDE using a recent fpcupdeluxe version, i dont remember what but newly fail to get it in latest.
TinyPortal © 2005-2018