(import from kdelibs.com) |
|||
| (90 intermediate revisions by 12 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{improve|''This page is outdated - please don't use it anymore unless you know exactly what you do. Use [[Getting_Started/Build/KDE4/Windows/emerge|emerge]] instead''}} | ||
{{KDE4}} | {{KDE4}} | ||
{{improve|''This page has been moved out of [http://kdelibs.com/wiki/index.php/Building_KDElibs_4_using_MS_Visual_Studio kdelibs.com] wiki page.''}} | {{improve|''This page has been moved out of [http://kdelibs.com/wiki/index.php/Building_KDElibs_4_using_MS_Visual_Studio kdelibs.com] wiki page.''}} | ||
| + | == Basic Tools == | ||
| + | === Kdewin-Installer === | ||
| + | This is a program that lets you easily install all the requirements for building kdelibs. It also has a list of tools in its list that are helpful and needed, like the mingw compiler suite, subversion clients, debugging tools and so on. | ||
| − | + | The kdewin-installer is available in a GUI and console-only form from | |
| − | + | [http://download.cegit.de/kde-windows/installer/ the kdewin-installer download page]. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | Express Edition | + | === The Compiler === |
| + | *First, uninstall previous version of Visual Studio, e.g. 2005 or 2003 if you have one. Do this to avoid problems. | ||
| + | *Now, you can use either: | ||
| + | ** [[#Visual Studio 2008 SP1|(commercial) Visual Studio 2008 SP1]], or | ||
| + | ** [[#Visual Studio 2008 SP1 Express Edition|free (as in beer) Visual Studio 2008 SP1 Express Edition]] | ||
| + | {{Note|It is recommended to install Visual studio into a path not containing spaces. To do this, change the installation path from the proposed ..\Program Files\ to something like c:\vc9.}} | ||
| − | + | {{warning|Visual Studio 2005 SP1 or free (as in beer) Express 2005 are no longer supported. Moreover the Express version is not available at microsoft.com.}} | |
| − | + | ||
| − | in | + | |
| − | + | ====Visual Studio 2008 SP1==== | |
| − | + | There is not much to do - installer of the commercial version sets up the environment. Just do not forget to run <tt>vcvarsall.bat</tt> to set your environment variables. | |
| − | + | ||
| − | </ | + | |
| − | ==== | + | ====Visual Studio 2008 SP1 Express Edition==== |
| − | + | Install it using the Web Install (downloader) at [http://www.microsoft.com/express/download/ http://www.microsoft.com/express/download]. It takes about 130 MB of download, assuming no MS SQL Server is selected. | |
| − | + | ||
| − | + | ||
| − | + | The installer also downloads the Windows SDK. It is installed into %PROGRAMFILES%\Microsoft SDKs\Windows. | |
| + | Only version 6.0a is installed by the Visual Studio 2008 Express installer, while 6.1 is required to compile KDE components. So also download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en version 6.1, i.e. Windows SDK for Windows Server 2008] by hand. See also the [http://msdn.microsoft.com/en-us/windowsserver/dd146047.aspx Which SDK is Right for Me?] document. | ||
| − | === | + | === Improve Integration with the Visual Studio Environment === |
| − | + | -> [[Development/Tutorials/Debugging/Debugging_on_MS_Windows#Enable_automatic_expanding_of_Qt_data_structures|Enable automatic expanding of Qt data structures]] | |
| − | === | + | === CMake === |
| − | + | [http://www.cmake.org CMake] is the make tool used by KDE. | |
| − | + | You can get the most recent binaries from [http://www.cmake.org/HTML/Download.html here]. Use the Win32 Installer or the zip archive. Make sure you use at least cmake 2.4.5 | |
| − | + | On Windows 2000, it's recommended to install cmake in a path without spaces to avoid troubles. | |
| − | + | ||
| − | == | + | == Compile and Install additional libraries == |
| − | + | These libraries have to be installed: | |
| − | + | === D-Bus for Windows === | |
| − | + | This library can be downloaded and installed with the installer (use the package name dbus-msvc) or you can [[Getting_Started/Build/KDE4/Windows/Building DBus|compile]] it by yourself. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | === Qt 4 === | |
| − | + | This Framework can be downloaded with the installer, or you can [[Getting_Started/Build/Windows/Building Qt 4|build it on your own]]. | |
| − | + | === KDESupport Libraries === | |
| − | + | There are several libraries which will be required for building kdelibs. [[Getting Started/Build/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) | |
| + | *strigi | ||
| + | *soprano | ||
| + | *qca2 | ||
| + | *qimageblitz | ||
| − | + | === Environment Settings === | |
| + | To set up a build environment, follow the steps over [[Getting Started/Build/Windows/Environment|here]]. '''If you have Cygwin installed, please be sure to remove Cygwin's /bin out of your path.''' | ||
| − | == | + | == Build KDElibs == |
| − | + | Check out the sources and make another build directory at the same level as kdelibs: | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
<pre> | <pre> | ||
| − | + | svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | svn co | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
cd .. | cd .. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
mkdir kdelibs-build | mkdir kdelibs-build | ||
cd kdelibs-build | cd kdelibs-build | ||
| Line 180: | Line 66: | ||
Now you have to add some paths to your PATH environment variable simliar to this: | Now you have to add some paths to your PATH environment variable simliar to this: | ||
<pre> | <pre> | ||
| − | set PATH=%QTDIR%\bin;%PATH%;% | + | set PATH=%QTDIR%\bin;%PATH%;%INSTALL_PATH%\lib; |
| − | + | ||
</pre> | </pre> | ||
Build KDE libraries with: | Build KDE libraries with: | ||
<pre> | <pre> | ||
| − | cmake -DCMAKE_INSTALL_PREFIX=% | + | cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DCMAKE_BUILD_TYPE=Debug\ |
-G"NMake Makefiles" ..\kdelibs | -G"NMake Makefiles" ..\kdelibs | ||
nmake | nmake | ||
| Line 192: | Line 77: | ||
or use the IDE: | or use the IDE: | ||
<pre> | <pre> | ||
| − | cmake -DCMAKE_INSTALL_PREFIX=% | + | cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DCMAKE_BUILD_TYPE=Debug\ |
-G "Visual Studio 8 2005" ..\kdelibs | -G "Visual Studio 8 2005" ..\kdelibs | ||
</pre> | </pre> | ||
| − | (use -G "Visual Studio 7 .NET 2003" for the older compiler) | + | (<strike>use -G "Visual Studio 7 .NET 2003" for the older compiler</strike>) |
In the latter case <tt>kdelibs.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: | In the latter case <tt>kdelibs.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: | ||
| Line 202: | Line 87: | ||
devenv /build Release /project INSTALL kdelibs.sln | devenv /build Release /project INSTALL kdelibs.sln | ||
| − | + | The devenv command is not available in the Express Edition. | |
| − | === Troubles? | + | If you use makefiles and also want to build the test programs add the option <tt>-DKDE4_BUILD_TESTS=1</tt> to the <tt>cmake</tt> command. This is not necessary for the IDE projects. |
| − | *to enable the release build add <tt>-DCMAKE_BUILD_TYPE=Release</tt> to the <tt>cmake</tt> command | + | |
| + | == Troubles? == | ||
| + | *to enable the release build (for example if you get libcmt.lib vs msvcrt.lib conflict on linking stage) add <tt>-DCMAKE_BUILD_TYPE=Release</tt> to the <tt>cmake</tt> command | ||
*when kdewin32 is not found, try adding the cmake parameter (with YOUR path)<tt>-DGNUWIN32_DIR=c:/gnuwin32</tt> | *when kdewin32 is not found, try adding the cmake parameter (with YOUR path)<tt>-DGNUWIN32_DIR=c:/gnuwin32</tt> | ||
*don't use a cygwin or mingw shell, you will get errors because these shells use UNIX path names | *don't use a cygwin or mingw shell, you will get errors because these shells use UNIX path names | ||
| Line 212: | Line 99: | ||
*ask for more help on [https://mail.kde.org/mailman/listinfo/kde-buildsystem kde-buildsystem@kde.org] mailing list | *ask for more help on [https://mail.kde.org/mailman/listinfo/kde-buildsystem kde-buildsystem@kde.org] mailing list | ||
*whenever you update your checkout DON'T forget to rebuild '''AND''' reinstall kdewin32.lib | *whenever you update your checkout DON'T forget to rebuild '''AND''' reinstall kdewin32.lib | ||
| + | *Don't use an automoc4 executable with spaces in the path, or you will get strange error messages when running nmake (seems to be a nmake bug) | ||
| − | + | == Going further: kdepimlibs == | |
'''kdepimlibs''' are needed by kdebase or other modules like koffice. | '''kdepimlibs''' are needed by kdebase or other modules like koffice. | ||
| − | + | === Requirements === | |
kdepimlibs require: | kdepimlibs require: | ||
| − | * [http://boost.org/ boost libraries]. Download the tarball. As boost is consisted of headers only, unpack the tarball and copy <tt>boost</tt> subdirectory to <tt>%KDEDIR%\include</tt>. Then add use <tt>set BOOST_ROOT=%KDEDIR%\include</tt> (you may want to add it to your <tt>environment.bat</tt> file as well). | + | *[http://boost.org/ boost libraries]. Download the tarball. As boost is consisted of headers only, unpack the tarball and copy <tt>boost</tt> subdirectory to <tt>%KDEDIR%\include</tt>. Then add use <tt>set BOOST_ROOT=%KDEDIR%\include</tt> (you may want to add it to your <tt>environment.bat</tt> file as well). |
| − | * (really optional for now) [http://www.openldap.org OpenLDAP]: LDAP (Lightweight Directory Access Protocol) libraries Needed to provide LDAP functionality in KDE | + | *[http://www.gpg4win.org/ gpgme] libraries, needed to provide GNU Privacy Guard support in KDE PIM applications |
| − | * (really optional for now) [http://asg.web.cmu.edu/sasl/sasl-library.html cyrus-sasl]: Cyrus SASL API needed to support authentication of logins | + | *(really optional for now) [http://www.openldap.org OpenLDAP]: LDAP (Lightweight Directory Access Protocol) libraries Needed to provide LDAP functionality in KDE |
| − | + | *(really optional for now) [http://asg.web.cmu.edu/sasl/sasl-library.html cyrus-sasl]: Cyrus SASL API needed to support authentication of logins | |
| + | |||
| + | === Build === | ||
Check out the sources, make another build directory and build: | Check out the sources, make another build directory and build: | ||
<pre> | <pre> | ||
| Line 227: | Line 117: | ||
mkdir kdepimlibs-build | mkdir kdepimlibs-build | ||
cd kdelibs-build | cd kdelibs-build | ||
| − | cmake -DCMAKE_INSTALL_PREFIX=% | + | cmake -DCMAKE_INSTALL_PREFIX=%KDEDIRS% -DCMAKE_BUILD_TYPE=Debug\ |
-G"NMake Makefiles" ..\kdepimlibs | -G"NMake Makefiles" ..\kdepimlibs | ||
nmake | nmake | ||
nmake install | nmake install | ||
</pre> | </pre> | ||
| + | or use Visual Studio: | ||
| + | <pre> | ||
| + | cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DCMAKE_BUILD_TYPE=Debug\ | ||
| + | -G "Visual Studio 8 2005" ..\kdepimlibs | ||
| + | </pre> | ||
| + | (use -G "Visual Studio 7 .NET 2003" for the older compiler) | ||
| + | |||
| + | In the latter case <tt>kdepimlibs.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 kdepimlibs.sln | ||
| + | devenv /build Release /project INSTALL kdepimlibs.sln | ||
| + | |||
| + | The devenv command is not available in the Express Edition. | ||
| − | + | == Going further: kofficelibs == | |
''(work in progress, to be moved to KOffice wiki)'' | ''(work in progress, to be moved to KOffice wiki)'' | ||
'''kofficelibs''' are needed for apps like KWord or Kexi. | '''kofficelibs''' are needed for apps like KWord or Kexi. | ||
| − | + | === Requirements === | |
kofficelibs require: | kofficelibs require: | ||
*[http://www.littlecms.com Little cms] library. Download the newest lcms-1.??.zip from [http://www.littlecms.com/downloads.htm] and uncompress. To build it with msvc, go to <tt>Projects</tt> subdir and choose a subdir for your compiler (i.e. Vc7 or Vc2005). | *[http://www.littlecms.com Little cms] library. Download the newest lcms-1.??.zip from [http://www.littlecms.com/downloads.htm] and uncompress. To build it with msvc, go to <tt>Projects</tt> subdir and choose a subdir for your compiler (i.e. Vc7 or Vc2005). | ||
| − | *#Then you will see <tt>lcms.sln</tt> solution file - you can click it to open in the msvc IDE. But first, you need to fix some paths in the project files. You probably have <tt>%KDEDIR%\lib\jpeg.lib</tt>, not libjpeg.lib, so edit <tt>tifficc.vcproj</tt>, <tt>tiffdiff.vcproj</tt> and <tt>jpegicc.vcproj</tt> and change libjpeg.lib to jpeg.lib in <tt>AdditionalDependencies</tt> variable. Then add full path to your <tt>%KDEDIR%\include</tt> directory (where tiffio.h resides) in AdditionalIncludeDirectories variable, (note: do it by expanding KDEDIR environment variable, i.e the result should be like: <pre>AdditionalIncludeDirectories="..\..\include;f:\kde4\include"</pre> Then add <tt>AdditionalLibraryDirectories="c:\your\path\to\kde\lib"</tt> line just after every two occurences of <tt>AdditionalIncludeDirectories=</tt>. All the changes are presented in [[Littlecms.patch|this pseudo-patch]] (change f:\ paths to your KDEDIR location!). | + | *#Then you will see <tt>lcms.sln</tt> solution file - you can click it to open in the msvc IDE. But first, you need to fix some paths in the project files. You probably have <tt>%KDEDIR%\lib\jpeg.lib</tt>, not libjpeg.lib, so edit <tt>tifficc.vcproj</tt>, <tt>tiffdiff.vcproj</tt> and <tt>jpegicc.vcproj</tt> and change libjpeg.lib to jpeg.lib in <tt>AdditionalDependencies</tt> variable. Then add full path to your <tt>%KDEDIR%\include</tt> directory (where tiffio.h resides) in AdditionalIncludeDirectories variable, (note: do it by expanding KDEDIR environment variable, i.e the result should be like: <pre>AdditionalIncludeDirectories="..\..\include;f:\kde4\include"</pre> Then add <tt>AdditionalLibraryDirectories="c:\your\path\to\kde\lib"</tt> line just after every two occurences of <tt>AdditionalIncludeDirectories=</tt>. All the changes are presented in [[Getting_Started/Build/KDE4/Windows/Littlecms.patch|this pseudo-patch]] (change f:\ paths to your KDEDIR location!). |
*#You probbaly want to skip building Python wrapper, so click on Build->Configuration Manager menu command and check off "Build" in "Python" line. | *#You probbaly want to skip building Python wrapper, so click on Build->Configuration Manager menu command and check off "Build" in "Python" line. | ||
*#Select "Build Solution" menu command. After successful build, you should notice:<tt>Build: 9 succeeded, 0 failed, 1 skipped</tt> | *#Select "Build Solution" menu command. After successful build, you should notice:<tt>Build: 9 succeeded, 0 failed, 1 skipped</tt> | ||
| Line 247: | Line 150: | ||
*#Copy lcms headers: from <tt>lcms-1.??\include</tt> copy <tt>*.h</tt> to <tt>%KDEDIR%\include</tt>. | *#Copy lcms headers: from <tt>lcms-1.??\include</tt> copy <tt>*.h</tt> to <tt>%KDEDIR%\include</tt>. | ||
*#Later when you will run cmake for kofficelibs, you get message like <tt>-- Found lcms version 1.16, F:/kde4/lib/lcms.lib</tt>. | *#Later when you will run cmake for kofficelibs, you get message like <tt>-- Found lcms version 1.16, F:/kde4/lib/lcms.lib</tt>. | ||
| + | |||
| + | |||
| + | == Building app modules using prebuilt kdelibs == | ||
| + | Install all devel packages using kdewin-installer as usual, + msvc2005. Then: | ||
| + | <pre> | ||
| + | svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk | ||
| + | mkdir kdesdk\build | ||
| + | cd kdesdk\build | ||
| + | </pre> | ||
| + | Now you have to add some paths to your PATH environment variable simliar to this: | ||
| + | <pre> | ||
| + | set PATH=%QTDIR%\bin;%PATH%;%INSTALL_PATH%\lib; | ||
| + | </pre> | ||
| + | You may need to setup msvc environment: | ||
| + | <pre> | ||
| + | call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 | ||
| + | </pre> | ||
| + | Build command: | ||
| + | <pre> | ||
| + | cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DCMAKE_BUILD_TYPE=Release -G"NMake Makefiles" .. | ||
| + | nmake | ||
| + | nmake install | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | ==Useful links== | ||
| + | *[[Getting_Started/Build/Windows/3rd-party_libraries|List of libraries that are needed to build KDE on windows]] (most of these are already installed by the kde-installer) . | ||
| + | |||
| + | |||
| + | [[Category:MS Windows]] | ||
| This section needs improvements: Please help us to
cleanup confusing sections and fix sections which contain a todo This page is outdated - please don't use it anymore unless you know exactly what you do. Use emerge instead |
| 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 |
This is a program that lets you easily install all the requirements for building kdelibs. It also has a list of tools in its list that are helpful and needed, like the mingw compiler suite, subversion clients, debugging tools and so on.
The kdewin-installer is available in a GUI and console-only form from the kdewin-installer download page.
| Note |
|---|
| It is recommended to install Visual studio into a path not containing spaces. To do this, change the installation path from the proposed ..\Program Files\ to something like c:\vc9. |
| Warning |
|---|
| Visual Studio 2005 SP1 or free (as in beer) Express 2005 are no longer supported. Moreover the Express version is not available at microsoft.com. |
There is not much to do - installer of the commercial version sets up the environment. Just do not forget to run vcvarsall.bat to set your environment variables.
Install it using the Web Install (downloader) at http://www.microsoft.com/express/download. It takes about 130 MB of download, assuming no MS SQL Server is selected.
The installer also downloads the Windows SDK. It is installed into %PROGRAMFILES%\Microsoft SDKs\Windows. Only version 6.0a is installed by the Visual Studio 2008 Express installer, while 6.1 is required to compile KDE components. So also download and install version 6.1, i.e. Windows SDK for Windows Server 2008 by hand. See also the Which SDK is Right for Me? document.
-> Enable automatic expanding of Qt data structures
CMake is the make tool used by KDE. You can get the most recent binaries from here. Use the Win32 Installer or the zip archive. Make sure you use at least cmake 2.4.5
On Windows 2000, it's recommended to install cmake in a path without spaces to avoid troubles.
These libraries have to be installed:
This library can be downloaded and installed with the installer (use the package name dbus-msvc) or you can compile it by 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:
To set up a build environment, follow the steps over here. If you have Cygwin installed, please be sure to remove Cygwin's /bin out of your path.
Check out the sources and make another build directory at the same level as kdelibs:
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs cd .. 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%;%INSTALL_PATH%\lib;
Build KDE libraries with:
cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DCMAKE_BUILD_TYPE=Debug\ -G"NMake Makefiles" ..\kdelibs nmake nmake install
or use the IDE:
cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -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
The devenv command is not available in the Express Edition.
If you use makefiles and also want to build the test programs add the option -DKDE4_BUILD_TESTS=1 to the cmake command. This is not necessary for the IDE projects.
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=%KDEDIRS% -DCMAKE_BUILD_TYPE=Debug\
-G"NMake Makefiles" ..\kdepimlibs
nmake
nmake install
or use Visual Studio:
cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DCMAKE_BUILD_TYPE=Debug\ -G "Visual Studio 8 2005" ..\kdepimlibs
(use -G "Visual Studio 7 .NET 2003" for the older compiler)
In the latter case kdepimlibs.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 kdepimlibs.sln devenv /build Release /project INSTALL kdepimlibs.sln
The devenv command is not available in the Express Edition.
(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!).
Install all devel packages using kdewin-installer as usual, + msvc2005. Then:
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk mkdir kdesdk\build cd kdesdk\build
Now you have to add some paths to your PATH environment variable simliar to this:
set PATH=%QTDIR%\bin;%PATH%;%INSTALL_PATH%\lib;
You may need to setup msvc environment:
call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86
Build command:
cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_PATH% -DCMAKE_BUILD_TYPE=Release -G"NMake Makefiles" .. nmake nmake install