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