Sign in Join
Wiki copytemporary

Installing Lazarus on Haiku: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11> **Warning:** Work in progress ...
22
33Lazarus requires Qt under Haiku. Qt is not installed by default under Haiku. You need to install package available from [this site](http://qt-haiku.ru/). Currently, there is no binary package to install Lazarus. You will have to compile Lazarus from sources.
44
55## Installing from sources
66
77### Building Qt under Haiku
88
99Instructions are available there : <http://qt-haiku.ru/index.php?option=com_content&view=article&id=53&Itemid=67>
1010
1111Building Qt is not required. You can just download lastest binaries at <http://www.qt-haiku.ru/index.php?option=com_rokdownloads&view=folder&Itemid=60> and uncompress them to /boot/.
1212
1313In order to compile the Qt4 binding below, you should get the development package.
1414
1515### Building Qt4 binding for Free Pascal under Haiku
1616
1717Download the source from <http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html>. The current binding is "V2.5 (Qt 4.5.X, compatible till Qt 4.8.X)". Choose the entry "Library source" under Linux X11.
1818
1919You need to add QMAKE_CXXFLAGS to Qt4Pas.pro before build libQt4Pas:
2020
2121QMAKE_CXXFLAGS += -mstackrealign -mincoming-stack-boundary=2
2222
2323On previous versions (at least 2.1), it was necessary to edit some files before compiling the package under Haiku :
2424
25-`In Qt4Pas.pro, change the supported version according to the version of Qt you have downloaded (It also works with Qt 4.8.0).`\
26-`Then, add ":!Haiku" at line 50 inside Qt4Pas.pro :`\
27-` unix:!embedded:!mac`**`:!haiku`**`:PLATFORM = BINUX`
25+```text
26+In Qt4Pas.pro, change the supported version according to the version of Qt you have downloaded (It also works with Qt 4.8.0).
27+Then, add ":!Haiku" at line 50 inside Qt4Pas.pro :
28+ unix:!embedded:!mac:!haiku:PLATFORM = BINUX
29+```
2830
2931Finally, run :
3032
31-`qmake`\
32-`make`\
33-`make install`
33+```text
34+qmake
35+make
36+make install
37+```
3438
3539You should have libQt4Pas.so in /boot/common/lib/. The last step is to add a link to this library in /boot/develop/abi/c86/gcc4/lib.
3640
3741More information about this binding is available here : [[Qt4 binding]]
3842
3943### Building Lazarus under Haiku
4044
4145#### Required tools
4246
4347fpc 2.4.0 for Haiku is not suitable to build Lazarus. Some bugs were fixed while porting Lazarus to Haiku.
4448
4549The 2.4 fix branch or trunk should compile Lazarus.
4650
4751Current official version (2.6.0) is able to compile Lazarus. Binaries for Haiku are available at : <http://freepascal.org/down/i386/haiku.var>.
4852
4953#### Getting sources
5054
5155As usual :
5256
53-`svn co `[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)` lazarus`
57+```text
58+svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
59+```
5460
5561#### Compiling Lazarus
5662
5763Once you have a good enough compiler and the source tree, just run at the root of the source tree
5864
5965Make sure gcc 4 is the default compiler.
6066
6167Under Haiku with package management :
6268
63-`setarch x86`
69+```text
70+setarch x86
71+```
6472
6573On older versions of Haiku, use :
6674
67-` setgcc gcc4`
75+```text
76+ setgcc gcc4
77+```
6878
6979then :
7080
71-`make LCL_PLATFORM=qt`
81+```text
82+make LCL_PLATFORM=qt
83+```
7284
7385---
7486*From the Free Pascal wiki, page "Installing Lazarus on Haiku", as it stood on 2020-07-02 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history