(→Required Third Party Tools) |
(→Qt/Mac Open Source Edition) |
||
| Line 29: | Line 29: | ||
* Manual: run ''sudo gcc_select 4.0'' if you want to be compatible with the pre-made installers. | * Manual: run ''sudo gcc_select 4.0'' if you want to be compatible with the pre-made installers. | ||
== Qt/Mac Open Source Edition == | == Qt/Mac Open Source Edition == | ||
| − | Download qt-mac-opensource from http://www.trolltech.com/download/qt/mac | + | Download qt-mac-opensource from http://www.trolltech.com/download/qt/mac |
Patches are required for a successful build. Download the qt-copy patches through KDE's svn: | Patches are required for a successful build. Download the qt-copy patches through KDE's svn: | ||
| Line 40: | Line 40: | ||
<code>./configure -prefix /opt/qt4-mac -qt-gif | <code>./configure -prefix /opt/qt4-mac -qt-gif | ||
make all install</code> | make all install</code> | ||
| + | |||
== CMake == | == CMake == | ||
CMake may be downloaded from CVS: | CMake may be downloaded from CVS: | ||
| Tip |
|---|
| Note: This page is about KDE 4. It isn't applicable for KDE 3 development. |
| This section needs improvements: Please help us to
cleanup confusing sections and fix sections which contain a todo |
Contents |
The following third party tools are required for successfully building KDE on OSX.
Download qt-mac-opensource from http://www.trolltech.com/download/qt/mac
Patches are required for a successful build. Download the qt-copy patches through KDE's svn:
svn co svn://anonsvn.kde.org/home/kde/trunk/qt-copy/patches/
and apply the patches:
cd qt-mac-opensource-4*
for patch in /path/to/patches/*.diff; do patch -p0 < $patch; done
And finally, compile qt-mac:
./configure -prefix /opt/qt4-mac -qt-gif
make all install
CMake may be downloaded from CVS:
cvs -d :pserver:anonymous@www.cmake.org:/cvsroot/CMake login
Note: password is "cmake"
cvs -d :pserver:anonymous@www.cmake.org:/cvsroot/CMake co CMake
And then compiled and installed:
cd CMake
./configure --prefix=/opt/cmake
make all install
Variable must be set to build KDE successfully, and are noted below
export PATH="/opt/qt4/bin:/opt/kde4/bin:/opt/kde4-deps/bin:$PATH"
export CMAKE_LIBRARY_PATH="/opt/kde4-deps/lib"
export CMAKE_INCLUDE_PATH="/opt/kde4-deps/include"
export PKG_CONFIG_PATH="/opt/qt4/lib/"
kdelibs must be checked out of svn locally to be built:
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs
And then compiled by performing the following:
mkdir kdelibs.build
cd kdelibs.build
cmake ../kdelibs -DCMAKE_INSTALL_PREFIX=/opt/kde4
make all install
If kdelibs fails to compile successfully, check the build status for the latest Nightly Builds and Continuous Builds at http://public.kitware.com/dashboard.php?name=kde
If you're interested in just checking things out, binaries for kdelibs and parts of KDE in general are available at http://ranger.users.finkproject.org/kde/ and are generated semi-regularly.
For more general information on using CMake, see the CMake Tutorial.