EnvironmentSetup/HaikuOS

From Wiki.ooo4kids.org

Jump to: navigation, search

Contents

Prerequisites

Getting sources

svn co svn://svn.adullact.net/svnroot/ooo4kids1/trunk OOo4Kids

Please do not checkout a revision between 1217 and 1250 (included), because the build was broken in meantime in sysui, hunspell, and lingucomponent (ask ericb2 on IRC for further information)

Setup prerequisites

With the above dependencies installed, you should be able to run the configure script

Configure the build system

It may be necessary to run autoconf at the root of the source repository until the next configure rebuild.

 ./configure --with-use-shell-bash --disable-odk --disable-mozilla --disable-binfilter --with-OOo4Kids --with-java=no \
             --disable-gtk --disable-randr-link --disable-gconf --disable-gnome-vfs --with-system-libxml \
             --with-system-icu --with-system-openssl --with-system-python --with-system-curl \
             --with-system-neon

(in one line !)

Bootstrapping

Preparing build

* ./configure --prefix=/boot/common
* make
* make install

Workaround

I suppose there is a bug (or at least a different behavior under Haiku) regarding alias handling in the system() call (see http://dev.haiku-os.org/ticket/7922).

It prevent build.pl to run some aliased commands out of the box.

First, i prefix $job_to_do with the complete path to the solenv/bin directory.

Index: bin/build.pl
===================================================================
--- bin/build.pl	(revision 1239)
+++ bin/build.pl	(working copy)
@@ -1768,7 +1768,8 @@
             system("cat $log_file");
         };
     } else {
-        $error_code = system ("$job_to_do");
+    	# Haiku workaround
+        $error_code = system ("/boot/src/OOo4Kids/OOo4Kids/solenv/bin/$job_to_do");
     };
     return $error_code;
 };

Then, i create a symlink to solenv/bin/mkout.pl and solenv/bin/zipdel.pl in /boot/home/config/bin/.

Due to the hardcoded path, you will have to add dmake in solenv/bin so build.pl could launch it.

Building OOo4Kids

/boot/src/OOo4Kids/OOo4Kids/cppu/haiku.pro/lib:/boot/src/OOo4Kids/OOo4Kids/sax/haiku.pro/lib" to fix linking with some libraries during the build (Haiku use some non standard places by default)

The build should start and stop on the next error to fix

To be continued...

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox