Projects/KDE on Windows/Compiling Applications: Difference between revisions

From KDE TechBase
(Start writing up instructions for compiling third-party apps using a KDE installation from packages)
 
(Replaced content with "{{Moved To Community|Windows/Imported From TechBase/{{#titleparts:{{PAGENAME}}||3}}}}")
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= Compiling (third-party) applications for KDE on Windows =
{{Moved To Community|Windows/Imported From TechBase/{{#titleparts:{{PAGENAME}}||3}}}}
This page gives instructions on how to build a KDE based application on Windows. It is mostly targeted at developers / power users of KDE applications which are not regularly included in the KDE on Windows installer. This typically applies to third-party applications, but may be of interest to developers of applications inside the KDE software collection / repository as well.
 
Note however that in many cases using emerge may be a better alternative, esp. if you want to compile your application against the most recent development version of KDE.
 
== Requirements ==
 
* Naturally, you need an installation of KDE. You the KDE on Windows installer to install it.
** On the third page of the installer, select "Package Manager mode", and be sure to pick the compiler that you intend to use. For simplicity, we will assume you use "MinGW4" (32bit).
** Be sure to install at least the following packages:
*** cmake (Bin)
*** automoc (Bin)
*** kdebase-runtime-mingw4 (Bin)
*** kdebase-workspace-mingw4 (Bin)
*** kdelibs-mingw4 (Bin, Devel)
*** qt-mingw4 (Bin, Devel)
*** phonon-mingw4 (Bin, Devel)
*** soprano-mingw4 (Bin, Devel)
*** Many more needed dependencies will be included automatically
*** Depending on the application you may need to select additional packages, such as e.g. kdepimlibs (Bin, Devel)
** '''NOTE''' Package "automoc" is not included in the 4.4.4-release, at the time of this writing. You can download [http://www.winkde.org/pub/kde/ports/win32/repository-4.3/kde/automoc-mingw4-4.3.2-bin.tar.bz2 the 4.3.2-version], and unpack this to you KDE installation root.
* Install MinGW4. These days MinGW has a relatively simple installer. See [http://www.mingw.org/wiki/InstallationHOWTOforMinGW] for further info. Be sure to install at least the C++ compiler.
* You need perl. E.g. from [http://strawberryperl.com/] . TODO: check whether perl is available from the installer.
 
== Procedure ==

Latest revision as of 14:12, 11 March 2016

This page is now on the community wiki.