(→(Re)building packages for the MinGW compiler) |
Shaforostoff (Talk | contribs) (add link to static automoc) |
||
| Line 14: | Line 14: | ||
* choose the '''all''' category and select (at least) the following packages | * choose the '''all''' category and select (at least) the following packages | ||
** kdeedu bin and source package - this will also select all depending packages | ** kdeedu bin and source package - this will also select all depending packages | ||
| − | ** automoc | + | ** automoc (or use [http://www.winkde.org/pub/kde/ports/win32/repository/other/automoc4.exe static version]) |
** cmake | ** cmake | ||
** perl | ** perl | ||
| Line 54: | Line 54: | ||
* choose the '''all''' category and then select the following packages | * choose the '''all''' category and then select the following packages | ||
** the kdeedu bin and source package - this will also select all depending packages | ** the kdeedu bin and source package - this will also select all depending packages | ||
| − | ** automoc | + | ** automoc (or use [http://www.winkde.org/pub/kde/ports/win32/repository/other/automoc4.exe static version]) |
** cmake | ** cmake | ||
** gcc-mingw | ** gcc-mingw | ||
This page describes (re)building of KDE binary packages using the kdewin distribution.
Applications build in this way will not have debugging support because the packages build in release mode do not have any debug symbols. If you need debug symbols you should use the Windows emerge tool
It is assumed that KDE is installed using the KDEWin gui or console installer in %PROGRAMFILES%\kde and a developer tries to recompile the kdeedu binary package. It is also assumed that the KDE installation tree is empty or contains only packages for the related compiler.
"%PROGRAMFILES%\Microsoft Platform SDK for Windows Server 2003 R2\setenv.cmd"
set PATH=%PROGRAMFILES%\kde\bin;%PATH%
cd %PROGRAMFILES%\kde\src
mkdir kdeedu-msvc-build && cd kdeedu-msvc-build
cmake.exe -G "NMake Makefiles" ..\kdeedu-msvc-4.1.3 -DCMAKE_INCLUDE_PATH=%PROGRAMFILES%\kde\include -DCMAKE_LIBRARY_PATH=%PROGRAMFILES%\kde\lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%PROGRAMFILES%\kde
nmake
nmake install
set PATH=\Mingw\bin;%PATH%
set PATH=%PROGRAMFILES%\kde\bin;%PATH%
cd %PROGRAMFILES%\kde\src
mkdir kdeedu-mingw-build && cd kdeedu-mingw-build
cmake.exe -G "MinGW Makefiles" ..\kdeedu-mingw-4.1.3 -DCMAKE_INCLUDE_PATH=%PROGRAMFILES%\kde\include -DCMAKE_LIBRARY_PATH=%PROGRAMFILES%\kde\lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%PROGRAMFILES%\kde
mingw32-make
mingw32-make install
- name <the name of the package> - version <the package version e.g. 1.2.3 or 20090312 - type <msvc> or <mingw> depending on the type of used compiler - root <the install root where the package has been installed into> - srcroot <the root of the source package tree> - destdir <the directory where the package will be placed into>