Projects/KDE on Mac OS X/Tips On Building

Jump to: navigation, search

Check out the KDE-Mac build tools

The tools I created to auto-build packages are at Google Code. You can check it out with:

 svn checkout http://kdemac.googlecode.com/svn/trunk kde-mac

Install Build Prerequisites

The Qt and kdesupport packages (from here) should be enough to get you able to bootstrap a KDE build.

You will also need CMake from the CMake download page, as well as Subversion to check out KDE sources.

If you want to build qt-copy yourself (it now contains Qt/Mac!), use the configure-qt.sh script available in SVN:

 cd source.build
 svn co svn://anonsvn.kde.org/home/kde/trunk/qt-copy
 cd qt-copy 
 ./apply_patches
 cd ../../compile.build
 mkdir qt-copy
 cd qt-copy
 ../../qt/resources/configure-qt.sh
 make
 make install

Build a Distribution

 make dist

There are also a number of tools that do specific things (which make dist calls).

The actual build portion is done by the
make-packages.sh
script.
 $ ./make-packages.sh -h
 usage: ./make-packages.sh [-h] [-c] [-n] [-r] [-s]
 
       -h|--help        this help
 
       -c|--clean       do a clean build (erase compiledir before building)
       -n|--no-package  don't erase packages/* and create new packages
       -r|--revision    check out a specific revision
       -s|--skip-update don't do an 'svn up'

If you want to pass these to a "make dist", you use the DIST_ARGS option:

 make dist DIST_ARGS="-r 641586"

If compiling on Leopard, you may get an error when building due to missing library symlinks. Some users have reported that the the following commands will allow the build process to continue successfully:

cd /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
sudo ln -s dylib1.o dylib1.10.5.o
sudo ln -s crt1.o crt1.10.5.o
There may also be a problem when compiling kdelibs in which an error is displayed about missing architecture. This seems to be a problem with the openexr libraries that do not by default build universal binary versions. One way to allow the build process to continue is to edit the file ./compile.build/kdelibs/CMakeCache.txt and change the line that reads
WITH_OpenEXR:BOOL=ON
to
WITH_OpenEXR:BOOL=OFF

This page was last modified on 29 June 2011, at 21:57. This page has been accessed 4,470 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal