Lazarus

Installation => General => Topic started by: ecalogiuri on March 04, 2010, 09:35:51 am

Title: Haiku Os
Post by: ecalogiuri on March 04, 2010, 09:35:51 am
hi boys...
I just noticed that fpc was released for Haiku  >:D >:D
I want to know if i can compile Lazarus source code for this OS...

Thanks to all...
Title: Re: Haiku Os
Post by: skalogryz on March 04, 2010, 09:38:14 am
if you're using svn version, then you can: http://bugs.freepascal.org/view.php?id=15519
Title: Re: Haiku Os
Post by: ecalogiuri on March 04, 2010, 11:09:59 am
G R E A T !!!!

but sorry for my ignorance, How can I apply the patch? Only in linux?
Title: Re: Haiku Os
Post by: skalogryz on March 04, 2010, 01:50:48 pm
Why don't you just check out Lazarus svn version?
http://wiki.freepascal.org/Creating_A_Patch#Applying_a_patch
Patches can be applied in any OS. 
You can even apply the patch manually, the patch syntax is quite simple.

are you using Haiku OS natively or via any VM?
Title: Re: Haiku Os
Post by: ecalogiuri on March 05, 2010, 08:04:57 am
Via virtualbox, for now... Thanks for the tip.
Title: Re: Haiku Os
Post by: SunyD on March 06, 2010, 07:23:24 am
I compiled one example from befpc with fpc 2.4.0 last week.
befpc: http://sourceforge.net/projects/befpc/
Befpc is native haiku-gui. Maybe it can be used for lazarus. Here is some screenshots:
Title: Re: Haiku Os
Post by: marcov on March 06, 2010, 11:56:15 am
Contact Olivier, he showed me a Lazarus under Haiku on FOSDEM.  (gtk2 or QT based, can't remember)
Title: Re: Haiku Os
Post by: ecalogiuri on March 08, 2010, 09:45:29 am
Thanks to all, in a few days I will try to compile lazarus and a my program. We'll let you know if everything is ok.
Title: Re: Haiku Os
Post by: ecalogiuri on March 10, 2010, 11:10:23 am
Well, i have installed fpc in Haiku and all work fine. But when compiling the sources of lazarus (get via svn and modified width patch for haiku) i have this messages:

dialogs.pp(541,2) Error: Resource file are not supported for this target
dialogs.pp(542,2) Error: Resource file are not supported for this target
Compiling ./widgetset/wsdialogs.pp
wsdialogs.pp(115,1) Fatal: There where 2 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directyory '/boot/home/Desktop/lazarus/lcl'
make: *** [lcl] Error 2

can someone help me?

Thanks to all.
Title: Re: Haiku Os
Post by: marcov on March 11, 2010, 10:17:38 am
Well, i have installed fpc in Haiku and all work fine. But when compiling the sources of lazarus (get via svn and modified width patch for haiku) i have this messages:

dialogs.pp(541,2) Error: Resource file are not supported for this target
dialogs.pp(542,2) Error: Resource file are not supported for this target
Compiling ./widgetset/wsdialogs.pp
wsdialogs.pp(115,1) Fatal: There where 2 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directyory '/boot/home/Desktop/lazarus/lcl'
make: *** [lcl] Error 2

can someone help me?

Thanks to all.

Afaik I've seem commits relating to Haiku resource support. It is probably fixed post 2.4.0
Title: Re: Haiku Os
Post by: CaptBill on August 12, 2012, 06:46:15 am
I am attempting to compile the svn/fpcbuild on Haiku and have hit a snag. I am getting a "iVSPTPSOTO: command not found". I suspect I am not specifying the target correctly or not sending all the needed variables, etc. The WIKI has been down for hours unfortunately.

This is an old thread and Haiku has since updated to GCC4 and I wonder of the implications for installing Lazarus/FPC. Do the patches still apply? I do know that some improving is going on for Haiku (implements the changes the wiki says you must do). Anyone know where Haiku stands today?

I tried these make commands:

make TARGET=i386-linux
make install TARGET=i386-linux
make clean all
make
make all
etc...

Thanks

Title: Re: Haiku Os
Post by: Leledumbo on August 12, 2012, 09:52:24 am
Quote
I am getting a "iVSPTPSOTO: command not found"
The makefile can't find the compiler somehow, either try explicitly providing it via PPC=<path/to/fpc/or/ppcxxx> when calling make or ensure it exists in PATH.
Title: Re: Haiku Os
Post by: CaptBill on August 12, 2012, 06:11:44 pm
Yep, I checked and compiler is there but apparently didn't check for FPC path too. :-[

Thanks Leledumbo.
Title: Re: Haiku Os
Post by: tatamata on December 31, 2012, 12:24:06 pm
Hello. I have tried to install Lazarus in the last Haiku OS. Everything done according to http://wiki.freepascal.org/Installing_Lazarus_on_Haiku,
But, when execute "make LCL_PLATFORM=qt", I get the error:
Code: [Select]
Compiling lazarus.pp
Compiling resource ../units/i386-haiku/qt/lazarus.or
Linking ../lazarus
/boot/develop/tools/gnupro/bin/ld: cannot find -llocale
lazarus.pp(133,1) Error: Error while linking
lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory `/boot/home/apps/lazarus/ide'
make[1]: *** [ide] Error 2
make[1]: Leaving directory `/boot/home/apps/lazarus/ide'
make: *** [ide] Error 2
~/apps/lazarus> /code]

How to solve this?
Title: Re: Haiku Os
Post by: tatamata on December 31, 2012, 06:05:34 pm
OK, I have found a dirty solution.
It seems that "/boot/develop/tools/gnupro/bin/ld: cannot find -llocale" is due to missing liblocale.so library.
There is however /boot/system/lib/libbe.so library, so I simlinked /boot/system/lib/libbe.so as "liblocale.so" wherever there was normal simlink as "libbe.so".
This enabled normal lazarus installation.
Title: Re: Haiku Os
Post by: tatamata on December 31, 2012, 07:32:51 pm
Hm...sqldb database connections do not work for Haiku?
It seems that zeosdbo package also can't be installed?