Difference between revisions of "Getting Started/Build/Windows/Building KDESupport Libraries"

Jump to: navigation, search
 
(16 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
  -G"Visual Studio 8 2005" ..\kdewin32
 
  -G"Visual Studio 8 2005" ..\kdewin32
 
</pre>
 
</pre>
(use -G"Visual Studio 7 .NET 2003" for the older compiler, and replace Debug by Release for release build)
+
(use -G "Visual Studio 7 .NET 2003" for the older msvc compiler, -G "MinGW Makefiles for the MinGW Compiler and replace Debug by Release for release build)
  
<tt>kdewin32.sln</tt> solution file will be created. Build and '''install''' the Debug and Release builds with the IDE. '''Tip:'' to do this from command line, type:
+
msvc:
 +
The <tt>kdewin32.sln</tt> solution file will be created. Build and '''install''' the Debug and Release builds with the IDE. '''Tip:'' to do this from command line, type:
  
 
  devenv /build Debug /project INSTALL kdewin32.sln
 
  devenv /build Debug /project INSTALL kdewin32.sln
 
  devenv /build Release /project INSTALL kdewin32.sln
 
  devenv /build Release /project INSTALL kdewin32.sln
 +
 +
MinGW:
 +
A standard <tt>Makefile</tt> will be created. Build and '''install''' with the following commands:<pre>
 +
mingw32-make
 +
mingw32-make install
 +
</pre>
  
 
'''Note:''' Whenever you update your checkout '''don't forget''' to rebuild and '''reinstall''' kdewin32.
 
'''Note:''' Whenever you update your checkout '''don't forget''' to rebuild and '''reinstall''' kdewin32.
  
 
==== strigi ====
 
==== strigi ====
strigi is required by kdelibs:
+
Strigi is required by kdelibs.
 
<pre>
 
<pre>
 
cd kdesupport
 
cd kdesupport
Line 38: Line 45:
 
cd strigi-build
 
cd strigi-build
 
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
  -G"NMake Makefiles" ..\strigi
+
  -G "NMake Makefiles" ..\strigi
 
nmake
 
nmake
 
nmake install
 
nmake install
Line 45: Line 52:
 
==== soprano ====
 
==== soprano ====
 
Soprano is also needed, it depends on 'redland' library which is available through the kdewin installer. Development versions of KDElibs now require soprano both in release and debug versions, so we're using two build directories: soprano-build and soprano-build-rel.
 
Soprano is also needed, it depends on 'redland' library which is available through the kdewin installer. Development versions of KDElibs now require soprano both in release and debug versions, so we're using two build directories: soprano-build and soprano-build-rel.
 +
 +
The current dependency is glib2 ([http://www.gimp.org/~tml/gimp/win32/downloads.html download glib and glib-devel]).
 
<pre>
 
<pre>
 
cd kdesupport
 
cd kdesupport
Line 51: Line 60:
 
cd soprano-build
 
cd soprano-build
 
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
  -G"NMake Makefiles" ..\soprano
+
  -G "NMake Makefiles" ..\soprano
 
nmake
 
nmake
 
nmake install
 
nmake install
Line 58: Line 67:
 
cd soprano-build-rel
 
cd soprano-build-rel
 
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Release\
 
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Release\
  -G"NMake Makefiles" ..\soprano
+
  -G "NMake Makefiles" ..\soprano
 
nmake
 
nmake
 
nmake install
 
nmake install
 
</pre>
 
</pre>
 +
 +
{{ReplaceNMake}}
 +
 
==== qca ====
 
==== qca ====
qca2 is needed to compile some apps (e.g. Kopete)
+
qca2 is needed to compile some apps (e.g. Kopete).
 
<pre>
 
<pre>
cd qca2
+
cd kdesupport
svn up qca2
+
svn up qcad2
 
mkdir qca2-build
 
mkdir qca2-build
 
cd qca2-build
 
cd qca2-build
 
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
  -G"NMake Makefiles" ..\qca2
+
  -G "NMake Makefiles" ..\qca2
 
nmake
 
nmake
 
nmake install
 
nmake install
 
</pre>
 
</pre>
 +
 +
{{ReplaceNMake}}
 +
 +
===qimageblitz===
 +
qimageblitz is needed to compile kdebase.
 +
<pre>
 +
cd kdesupport
 +
svn up qimageblitz
 +
mkdir qimageblitz-build
 +
cd qimageblitz-build
 +
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 +
-G "NMake Makefiles" ..\qimageblitz
 +
nmake
 +
nmake install
 +
</pre>
 +
 +
{{ReplaceNMake}}
 +
 +
[[Category:MS Windows]]

Latest revision as of 11:46, 3 March 2011

You'll need some libs which are located in http://websvn.kde.org/trunk/kdesupport/. They are all compilable with cmake.

Contents

[edit] kdewin32

kdewin32 is a support library required specifically for Windows in order to be able to build KDElibs.

We will refer to {KDE_SOURCE_DIR} as to a directory of your choice where you want to keep KDE source code and its "build" directories. You need enough of disk space for this. Do not use paths with spaces to avoid potential problems.

cd {KDE_SOURCE_DIR}
svn co -N svn://anonsvn.kde.org/home/kde/trunk

Note: if you want to use your KDE SVN account with write access type this instead: svn --username={yourname} co -N https://svn.kde.org/home/kde/trunk. Use the --username and https address for every command mentioned below too.

cd trunk
svn up -N kdesupport
cd kdesupport
svn up kdewin32
mkdir kdewin32-build
cd kdewin32-build
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 -G"Visual Studio 8 2005" ..\kdewin32

(use -G "Visual Studio 7 .NET 2003" for the older msvc compiler, -G "MinGW Makefiles for the MinGW Compiler and replace Debug by Release for release build)

msvc: The kdewin32.sln solution file will be created. Build and install' the Debug and Release builds with the IDE. Tip: to do this from command line, type:

devenv /build Debug /project INSTALL kdewin32.sln
devenv /build Release /project INSTALL kdewin32.sln

MinGW:

A standard Makefile will be created. Build and install with the following commands:
mingw32-make
mingw32-make install

Note: Whenever you update your checkout don't forget to rebuild and reinstall kdewin32.

[edit] strigi

Strigi is required by kdelibs.

cd kdesupport
svn up strigi
mkdir strigi-build
cd strigi-build
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 -G "NMake Makefiles" ..\strigi
nmake
nmake install

[edit] soprano

Soprano is also needed, it depends on 'redland' library which is available through the kdewin installer. Development versions of KDElibs now require soprano both in release and debug versions, so we're using two build directories: soprano-build and soprano-build-rel.

The current dependency is glib2 (download glib and glib-devel).

cd kdesupport
svn up soprano
mkdir soprano-build
cd soprano-build
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 -G "NMake Makefiles" ..\soprano
nmake
nmake install
cd ..
mkdir soprano-build-rel
cd soprano-build-rel
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Release\
 -G "NMake Makefiles" ..\soprano
nmake
nmake install

For MinGW builds replace -G"NMake Makefiles" with -G "MinGW Makefiles" and nmake with mingw32-make.


[edit] qca

qca2 is needed to compile some apps (e.g. Kopete).

cd kdesupport
svn up qcad2
mkdir qca2-build
cd qca2-build
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 -G "NMake Makefiles" ..\qca2
nmake
nmake install

For MinGW builds replace -G"NMake Makefiles" with -G "MinGW Makefiles" and nmake with mingw32-make.


[edit] qimageblitz

qimageblitz is needed to compile kdebase.

cd kdesupport
svn up qimageblitz
mkdir qimageblitz-build
cd qimageblitz-build
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
 -G "NMake Makefiles" ..\qimageblitz
nmake
nmake install

For MinGW builds replace -G"NMake Makefiles" with -G "MinGW Makefiles" and nmake with mingw32-make.


This page was last modified on 3 March 2011, at 11:46. This page has been accessed 8,971 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