Jump to content

Windows/Build/Building DBus: Difference between revisions

From KDE Community Wiki
Jstaniek (talk | contribs)
No edit summary
Jstaniek (talk | contribs)
mNo edit summary
Line 18: Line 18:
(use <tt>-G "MinGW Makefiles"</tt> for the mingw compiler)
(use <tt>-G "MinGW Makefiles"</tt> for the mingw compiler)


'''msvc and mingw:''' for debug builds, add -DCMAKE_BUILD_TYPE=Debug before "-G".
'''msvc and mingw:''' for debug build, add -DCMAKE_BUILD_TYPE=Debug before "-G".


'''msvc:''' <tt>dbus.sln</tt> solution file will be created. Build and '''install''' the Debug and Release builds with the IDE. You can switch between the Debug and Release configuration in the  
'''msvc:''' <tt>dbus.sln</tt> solution file will be created. Build and '''install''' the Debug and Release builds with the IDE. You can switch between the Debug and Release configuration in the  

Revision as of 09:25, 2 July 2008

First, be sure you have installed win32libs.

Instructions below apply to msvc and mingw.

msvc and mingw: Either

  • Download the latest winDBus sources (which are already patched) and extract them into place like C:\svn\windbus, or
  • Get the latest svn sources; in this case use
    svn co https://windbus.svn.sourceforge.net/svnroot/windbus/trunk windbus

msvc and mingw: Creating the build dir. Once you have the source code,

cd c:\svn\windbus
patch -p0 < DBus-win32.patch
cd ..
mkdir windbus-build
cd windbus-build
cmake -G "Visual Studio 8 2005" ..\windbus\cmake\

(use -G "MinGW Makefiles" for the mingw compiler)

msvc and mingw: for debug build, add -DCMAKE_BUILD_TYPE=Debug before "-G".

msvc: dbus.sln solution file will be created. Build and install the Debug and Release builds with the IDE. You can switch between the Debug and Release configuration in the Build -> Configuration Manager menu.

msvc tip: to perform compilation and installation from the command line, type:

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

msvc: then use

nmake
nmake install

(in the build directory)

mingw: then use

mingw32-make
mingw32-make install

(in the build directory)

Default target for the installation is %PROGRAMFILES%\dbus.