I was able to successfully build KDE4 on OSX!<br>Screenshot: <a href="http://flickr.com/photos/manish_chaks/2572097497/">http://flickr.com/photos/manish_chaks/2572097497/</a><br><br>BUILD RECIPIE:<br><div class="gmail_quote">
It's pretty simple:<br><br><h3> 1) Get required packages from MacPorts: </h3><br> ▪ AGG<br> ▪ bzip2<br> ▪ giflib or libungif<br> ▪ libart_lgpl<br>
▪ libidn<br> ▪ libjpeg<br> ▪ libmng<br> ▪ libpng<br> ▪ libxml2<br> ▪ libxslt<br> ▪ libusb<br> ▪ OpenEXR<br> ▪ PCRE<br> ▪ Strigi<br> ▪ shared-mime-info<br>
▪ pkgconfig<br> ▪ boost<br> ▪ gpgme<br> ▪ dbus<br><br><br><h3> 2. Setup build env </h3><br><br>I created a dir called "kde.build" in my home dir<br>Put the following enviroment script there:<br>
<br>export PATH=/opt/qt4/bin:/opt/local/bin:$PATH<br>export CMAKE_INCLUDE_PATH=/opt/local/include<br>export CMAKE_LIBRARY_PATH=/opt/local/lib<br>export PKG_CONFIG_PATH="/opt/qt4/lib:/opt/local/lib"<br>alias cmakekde="cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/local"<br>
<br>As you can , our KDE installation will be sandboxed into /opt/local.<br><br><h3> 3. Install Qt <h3><br><br>Source the env: source ~/kde.build/kdebuildenv.sh<br>cd ~/kde.build<br>svn co svn://<a href="http://anonsvn.kde.org/home/kde/trunk/qt-copy" target="_blank">anonsvn.kde.org/home/kde/trunk/qt-copy</a><br>
./apply patches<br><br>Put the following in a shell script ( I call it configure-qt.sh)<br><br>#####################################################<br>#!/bin/sh -e<br><br>MYDIR=`dirname $0`<br>ME=`cd $MYDIR; pwd`<br><br>
QTPATH=/Users/mchakra/kde.build/qt-copy ##REPLACE THIS WITH YOUR_HOME_DIR/kde.build/qt-copy<br>#if [ -n "$1" ] && [ -x "$1" ]; then<br> #QTPATH="$1"<br>#else<br> #QTPATH="$ME/../../source.build/qt-copy"<br>
#fi<br><br>INCLUDE_PATHS="-I `pwd`/include -I $ME/include"<br>if [ `grep -c -- -isystem "$QTPATH/configure"` -gt 0 ]; then<br> INCLUDE_PATHS="$INCLUDE_PATHS -isystem /opt/local/include"<br>
else<br> INCLUDE_PATHS="$INCLUDE_PATHS -I /opt/local/include"<br>fi<br><br><br>$QTPATH/configure \<br> -prefix /opt/qt4 \<br> $INCLUDE_PATHS \<br> -L `pwd`/lib \<br> -L $ME/lib \<br> -L /usr/lib \<br>
-L /opt/local/lib \<br> -confirm-license \<br> -dbus-linked \<br> -debug-and-release \<br> -exceptions \<br> -fast \<br> -framework \<br> -no-sql-ibase \<br> -no-sql-mysql \<br> -no-sql-odbc \<br>
-no-sql-psql \<br> -no-sql-sqlite2 \<br> -openssl \<br> -optimized-qmake \<br> -pch \<br> -plugin-sql-sqlite \<br> -qt-gif \<br> -sdk /Developer/SDKs/MacOSX10.5.sdk \<br> -stl \<br> -system-libjpeg \<br>
-system-libmng \<br> -system-libpng \<br> -system-libtiff \<br> -system-zlib \<br> "$@"<br>###############################<br>after this gets done issue a "make; sudo make install" and qt is done :)<br>
<br><h3> Build KDE4 /h><br><br>Now that all dependencies are built; we can go onto building KDE4<br><br><b>kdelibs</b><br>$ source ~/kde.build/kdebuildenv.sh<br>$ cd ~/kde.build<br>$ svn co svn://<a href="http://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs" target="_blank">anonsvn.kde.org/home/kde/trunk/KDE/kdelibs</a><br>
$ export PATH="/opt/qt4/bin:/opt/kde4/bin:/opt/kde4-deps/bin:$PATH"<br>$ export PKG_CONFIG_PATH="/opt/qt4/lib:/opt/local/lib"<br>$ cd kdelibs<br>$ mkdir build<br>$ cd build<br>$ cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/kde4<br>
$ make<br>$ sudo make install<br><br><b>kdepimlibs</b> (required for KDE4)<br>$ source ~/kde.build/kdebuildenv.sh<br>$ cd ~/kde.build<br>$ svn co svn://<a href="http://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlib" target="_blank">anonsvn.kde.org/home/kde/trunk/KDE/kdepimlib</a><br>
$ cd kdepimlib<br>$ mkdir build<br>$ cd build<br>$ cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/kde4<br>$ make<br>$ sudo make install<br><br><b>kdebase</b><br>$ source ~/kde.build/kdebuildenv.sh<br>$ cd ~/kde.build<br>
$ svn co svn://<a href="http://anonsvn.kde.org/home/kde/trunk/KDE/kdebase" target="_blank">anonsvn.kde.org/home/kde/trunk/KDE/kdebase</a><br>$ cd kdesdk<br>$ mkdir build<br>$ cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/kde4<br>
$ cd umbrello<br>
$ make<br>$ sudo make install<br><br><br>VOIA! you're done! you can now go on to build any additional modules for KDE4 ( eg kdesdk for all the dev/ UML tools )<br><br><br>
</div><br><br clear="all"><br>-- <br>Manish Chakravarty<br><a href="http://manish-chaks.livejournal.com/">http://manish-chaks.livejournal.com/</a><br>