Difference between revisions of "Installing Lazarus on Haiku"
Line 12: | Line 12: | ||
Download the source from [http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html]. The current binding is "V2.1 (Qt 4.5.X, compatible with Qt 4.6.X)". Choose the entry "Library source" under the Linux X11. | Download the source from [http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html]. The current binding is "V2.1 (Qt 4.5.X, compatible with Qt 4.6.X)". Choose the entry "Library source" under the Linux X11. | ||
+ | |||
+ | Haiku is not supported by default. Here are the little things to change before compiling it under Haiku. | ||
+ | |||
+ | In Qt4Pas.pro, change the supported version according to the version of Qt you have downloaded. | ||
+ | |||
+ | Then, add ":!Haiku" at line 50 inside Qt4Pas.pro : | ||
+ | |||
+ | unix:!embedded:!mac''':!haiku''':PLATFORM = BINUX | ||
+ | |||
+ | Finally, run : | ||
+ | qmake | ||
+ | make | ||
+ | make install | ||
+ | |||
+ | You should have libQt4Pas.so in /boot/common/lib/. | ||
More informations about this binding are available here : [[Qt4 binding]] | More informations about this binding are available here : [[Qt4 binding]] |
Revision as of 22:58, 12 February 2011
Installing from sources
Work in progress...
Building Qt under Haiku
Instructions are available there : http://qt-haiku.ru/index.php?option=com_content&view=article&id=53&Itemid=67
Building Qt is not required. You can just download lastest binaries at [1] and uncompress it to /boot/.
In order to compile the Qt4 binding below, you should get the development package.
Building Qt4 binding for FreePascal under Haiku
Download the source from [2]. The current binding is "V2.1 (Qt 4.5.X, compatible with Qt 4.6.X)". Choose the entry "Library source" under the Linux X11.
Haiku is not supported by default. Here are the little things to change before compiling it under Haiku.
In Qt4Pas.pro, change the supported version according to the version of Qt you have downloaded.
Then, add ":!Haiku" at line 50 inside Qt4Pas.pro :
unix:!embedded:!mac:!haiku:PLATFORM = BINUX
Finally, run : qmake make make install
You should have libQt4Pas.so in /boot/common/lib/.
More informations about this binding are available here : Qt4 binding
Building Lazarus under Haiku
Required tools
fpc 2.4.0 for Haiku is not suitable to build Lazarus. Some bugs were fixed while porting Lazarus to Haiku.
The 2.4 fix branch or trunk should compile Lazarus.
Getting sources
As usual :
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
Compiling Lazarus
Once you have a good enough compiler and the source tree, just run at the root of the source tree
Make sure gcc 4 is the default compiler under Haiku using :
setgcc gcc4
then :
make LCL_PLATFORM=qt