Difference between revisions of "Getting Started/Build/Distributions/Linux From Scratch"

Jump to: navigation, search
(GMM)
(better kdesvn-build link)
Line 11: Line 11:
 
next=[[Getting_Started/Build/KDE4|Build KDE 4]]|
 
next=[[Getting_Started/Build/KDE4|Build KDE 4]]|
  
reading=[[../kdesvn-build|kdesvn-build: The KDE From Subversion Build Tool]]<br>[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]<br>[[Development/Tutorials/CMake |Introduction to CMake]]|
+
reading=[[Getting_Started/Build/kdesvn-build|kdesvn-build: The KDE From Subversion Build Tool]]<br>[[../../Increased_Productivity_in_KDE4_with_Scripts|Increased Productivity in KDE4 with Scripts]]<br>[[Development/Tutorials/CMake |Introduction to CMake]]|
 
}}
 
}}
  

Revision as of 10:49, 9 April 2009


Contents

Getting_Started/Build/KDE4/LFS


Building KDE4 From Source (LFS or to build from sources)
Tutorial Series   Getting Started
Previous   Build KDE 4
What's Next   Build KDE 4
Further Reading   kdesvn-build: The KDE From Subversion Build Tool
Increased Productivity in KDE4 with Scripts
Introduction to CMake

CMake

KDE-4 and many supporting libraries use CMake.

Install the latest version from cmake.org

Library Requirements

DBus

Install the latest version from freedesktop.org

Qt

Use Qt-Copy from KDE's SVN for TRUNK

Use 4.4.3 for 4.2 BRANCH

Use 4.4.x for 4.1 BRANCH

Use 4.3.4 for the 4.0 BRANCH.

QCA-2.0.0 (crypto add on for Qt)

svn co svn://anonsvn.kde.org/home/kde/tags/qca/2.0.0

Do not use the one in KDESupport.

GMM

For 4.1, 4.2 & TRUNK only

If you don't have Getfem++ installed, get the current release of GMM from:

http://home.gna.org/getfem/download.html

KDESupport

If building individually, install in this order:
automoc
akonadi
eigen
eigen2
taglib
soprano
strigi
qimageblitz
phonon
cpptoxml

For TRUNK, use SVN:

svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport

You may need to add variables to the CMake command:

-DENABLE_FAM:BOOL=ON
-DENABLE_EXPAT:BOOL=ON
-DENABLE_INOTIFY:BOOL=ON
-DGAIM_LIBS:STRING=<path>/lib
-DGAMIN_LIBARIES:STRING=<path>/lib
-DGAMIN_LIBRARIES:STRING=<path>/lib

Note the bug caused by misspelling which might be fixed.

For 4.1 BRANCH you need:

Akonadi

svn co svn://anonsvn.kde.org/home/kde/branches/akonadi/1.0

Eigen

Get the current 1.0.x release from:

http://eigen.tuxfamily.org/1

Eigen2

Get the current 2.0.x release from:

http://eigen.tuxfamily.org

Phonon

svn co svn://anonsvn.kde.org/home/kde/branches/phonon/4.2

Soprano

svn co svn://anonsvn.kde.org/home/kde/branches/soprano/2.1

Strigi

Get the current 0.5.x release from:

http://strigi.sourceforge.net/

Or, use SVN:

svn co svn://anonsvn.kde.org/home/kde/branches/strigi/0.5

You may need to add variables to the CMake command:

-DENABLE_FAM:BOOL=ON
-DENABLE_EXPAT:BOOL=ON
-DENABLE_INOTIFY:BOOL=ON
-DGAIM_LIBS:STRING=<path>/lib
-DGAMIN_LIBARIES:STRING=<path>/lib
-DGAMIN_LIBRARIES:STRING=<path>/lib

Note the bug caused by misspelling which might be fixed.

Automoc, QImageBlitz, & CPPtoXML

I am currently using KDESupport TRUNK for these three which do not have releases yet.

Note that you can check out an individual package in the KDESupport module from TRUNK:
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/<package>
and build it separately without checking out all of KDESupport.

For 4.0 BRANCH you need:

Soprano

svn co svn://anonsvn.kde.org/home/kde/branches/soprano/2.0

Strigi

svn co svn://anonsvn.kde.org/home/kde/tags/strigi/strigi/0.5.8

You may need to add variables to the CMake command:

-DENABLE_FAM:BOOL=ON
-DENABLE_EXPAT:BOOL=ON
-DENABLE_INOTIFY:BOOL=ON
-DGAIM_LIBS:STRING=<path>/lib
-DGAMIN_LIBARIES:STRING=<path>/lib
-DGAMIN_LIBRARIES:STRING=<path>/lib

Note the bug caused by misspelling which might be fixed.

TagLib

svn co svn://anonsvn.kde.org/home/kde/branches/taglib/1.5/taglib

QImageBlitz

Get qimageblitz-0.0.4 from:

http://sourceforge.net/projects/qimageblitz

Eigen

Get the current release from:

http://eigen.tuxfamily.org/1

Other Useful Libraries

shared-mime-info

Get the current release from:

http://www.freedesktop.org/wiki/Software/shared-mime-info

I found that I had to install this with the same prefix as KDE4 to eliminate missing MIME type errors.

Boost C++ Libraries

Get the current release from:

http://sourceforge.net/project/showfiles.php?group_id=7586

If you install this from source, you need to make some slight modifications:

You will not have the needed "*.so" links. You will have links of the form:

libboost_<library_name>-gcc<version>-mt.so

and you need it without the GCC version:

libboost_<library_name>-gcc-mt.so

The default install directory for the Boost libraries is: "/usr/local/lib". So, what I did was to link all of these links to "/usr/lib" by drag 'n' drop and then rename the links in "/usr/lib" with KRename. It is better to have the links in "/usr/lib" because that is the first place CMake looks for them.

The default install directory for the Boost headers is:

/usr/local/include/boost-<version>/boost

and you need to make links from:

/usr/local/include/boost

and

/usr/include/boost

to there so that they will be found.

{More to be added}

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal