Recent

Author Topic: Haiku Os  (Read 16585 times)

ecalogiuri

  • New Member
  • *
  • Posts: 47
Haiku Os
« 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...

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
    • havefunsoft.com
Re: Haiku Os
« Reply #1 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
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

ecalogiuri

  • New Member
  • *
  • Posts: 47
Re: Haiku Os
« Reply #2 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?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
    • havefunsoft.com
Re: Haiku Os
« Reply #3 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?
« Last Edit: March 04, 2010, 01:54:08 pm by skalogryz »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

ecalogiuri

  • New Member
  • *
  • Posts: 47
Re: Haiku Os
« Reply #4 on: March 05, 2010, 08:04:57 am »
Via virtualbox, for now... Thanks for the tip.
« Last Edit: March 05, 2010, 08:14:05 am by ecalogiuri »

SunyD

  • Guest
Re: Haiku Os
« Reply #5 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:

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7619
Re: Haiku Os
« Reply #6 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)

ecalogiuri

  • New Member
  • *
  • Posts: 47
Re: Haiku Os
« Reply #7 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.

ecalogiuri

  • New Member
  • *
  • Posts: 47
Re: Haiku Os
« Reply #8 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.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7619
Re: Haiku Os
« Reply #9 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

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: Haiku Os
« Reply #10 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


Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Haiku Os
« Reply #11 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.

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: Haiku Os
« Reply #12 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.

tatamata

  • Hero Member
  • *****
  • Posts: 693
    • ZMSQL - SQL enhanced in-memory database
Re: Haiku Os
« Reply #13 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?

tatamata

  • Hero Member
  • *****
  • Posts: 693
    • ZMSQL - SQL enhanced in-memory database
Re: Haiku Os
« Reply #14 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.