SaroEngels (Talk | contribs) (→Qt 4) |
|||
| Line 7: | Line 7: | ||
* free (as in beer) [http://msdn.microsoft.com/vstudio/express/visualC/default.aspx Visual Studio 2005 Express Edition] with the [http://www.microsoft.com/downloads/details.aspx?familyid=484269E2-3B89-47E3-8EB7-1F2BE6D7123A Platfrom SDK] | * free (as in beer) [http://msdn.microsoft.com/vstudio/express/visualC/default.aspx Visual Studio 2005 Express Edition] with the [http://www.microsoft.com/downloads/details.aspx?familyid=484269E2-3B89-47E3-8EB7-1F2BE6D7123A Platfrom SDK] | ||
| − | Express Edition users: If you want to generate project files for Visual C++ then you must add the Platform | + | Express Edition users: If you want to generate project files for Visual C++ then you must add the Platform SDKkd include and library directory to the default directories of the IDE: |
<pre> | <pre> | ||
| Line 40: | Line 40: | ||
This Framework can be downloaded with the installer, or you can [http://techbase.kde.org/Getting_Started/Build/KDE4/Windows/build_qt4 build it on your own]. | This Framework can be downloaded with the installer, or you can [http://techbase.kde.org/Getting_Started/Build/KDE4/Windows/build_qt4 build it on your own]. | ||
| − | === | + | === KDESupport Libraries === |
| − | There are several | + | There are several libraries which will be required for building kdelibs. [[Getting Started/Build/KDE4/Windows/Building KDESupport Libraries|You may want to compile them yourself]] or simply download them using the KDEWin-Installer. You will need: |
| − | + | *kdewin32 (compiled with msvc) | |
| − | You will need: | + | *strigi |
| − | * kdewin32 (compiled with msvc) | + | *soprano |
| − | * strigi | + | *qca2 |
| − | * soprano | + | |
| − | * qca2 | + | |
=== shared-mime-info === | === shared-mime-info === | ||
| 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 This page has been moved out of kdelibs.com wiki page. |
Contents |
You can use either:
Express Edition users: If you want to generate project files for Visual C++ then you must add the Platform SDKkd include and library directory to the default directories of the IDE:
Open Visual C++, go to Tool->Options in "Projects and Solutions" go to "VC++ Directories" On the right add the paths to your Platform SDK files: for "Library Files": YOUR_PLATFORM_SDK_PATH\lib for "Include Files": YOUR_PLATFORM_SDK_PATH\include
CMake is the make tool used by KDE.
Install cmake in a path without spaces to avoid troubles (at least under win2k).
Perl is a script language used to generate files. Install a Perl for Windows, e.g. ActivePerl from http://www.activestate.com
win32libs contains a collection of libraries not available by default on Windows. See 3rd-party libraries required for KDElibs 4.
These libraries have to be installed.
This library shouldn't be installed with the installer, you should rather compile it yourself.
This Framework can be downloaded with the installer, or you can build it on your own.
There are several libraries which will be required for building kdelibs. You may want to compile them yourself or simply download them using the KDEWin-Installer. You will need:
The shared-mime-info package, is the freedesktop MIME standard used now by KDE. Download update-mime-database-*.*-*-bin.zip from http://82.149.170.66/kde-windows/win32libs/zip/single/ and unpack the archive to kde4/ directory to get share/mime/ directory and bin/update-mime-database.exe program.
Check out the sources and make another build directory at the same level as kdelibs:
cd {KDE_SOURCE_DIR}\trunk
svn up -N KDE
cd KDE
svn up kdelibs
mkdir kdelibs-build
cd kdelibs-build
Now you have to add some paths to your PATH environment variable simliar to this:
set PATH=%QTDIR%\bin;%PATH%;%PROGRAMFILES%\win32libs\lib;
{location of your kdewin32 libs}\kdewin32\lib
Build KDE libraries with:
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\ -G"NMake Makefiles" ..\kdelibs nmake nmake install
or use the IDE:
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\ -G "Visual Studio 8 2005" ..\kdelibs
(use -G "Visual Studio 7 .NET 2003" for the older compiler)
In the latter case kdelibs.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 kdelibs.sln devenv /build Release /project INSTALL kdelibs.sln
To also build the test programs add the option -DKDE4_BUILD_TESTS=1 to the cmake command.
kdepimlibs are needed by kdebase or other modules like koffice.
kdepimlibs require:
Check out the sources, make another build directory and build:
cd {KDE_SOURCE_DIR}\trunk\KDE
svn up kdepimlibs
mkdir kdepimlibs-build
cd kdelibs-build
cmake -DCMAKE_INSTALL_PREFIX=%KDEDIR% -DCMAKE_BUILD_TYPE=Debug\
-G"NMake Makefiles" ..\kdepimlibs
nmake
nmake install
(work in progress, to be moved to KOffice wiki)
kofficelibs are needed for apps like KWord or Kexi.
kofficelibs require:
AdditionalIncludeDirectories="..\..\include;f:\kde4\include"Then add AdditionalLibraryDirectories="c:\your\path\to\kde\lib" line just after every two occurences of AdditionalIncludeDirectories=. All the changes are presented in this pseudo-patch (change f:\ paths to your KDEDIR location!).