Windows/Build/Building DBus: Difference between revisions

From KDE Community Wiki
< Windows‎ | Build
No edit summary
Line 1: Line 1:
Be sure you've installed [[#win32libs|win32libs]]!
First, be sure you have installed [[#win32libs|win32libs]]!


Download the latest [http://sourceforge.net/project/showfiles.php?group_id=171968 winDBus sources] (which are already patched) and extract them into "C:\svn\windbus" or get the latest [http://sourceforge.net/svn/?group_id=171968 svn sources].
Download the latest [http://sourceforge.net/project/showfiles.php?group_id=171968 winDBus sources] (which are already patched) and extract them into place like <tt>C:\svn\windbus</tt> or get the latest [http://sourceforge.net/svn/?group_id=171968 svn sources].
<pre>
<pre>
cd c:\svn\windbus
cd c:\svn\windbus
Line 10: Line 10:
cmake -G "Visual Studio 8 2005" ..\windbus\cmake\
cmake -G "Visual Studio 8 2005" ..\windbus\cmake\
</pre>
</pre>
(use -G "Visual Studio 7 .NET 2003" for the older compiler)
(use <tt>-G "Visual Studio 7 .NET 2003"</tt> for the older compiler)


<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  
<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 18:01, 19 July 2007

First, be sure you have installed win32libs!

Download the latest winDBus sources (which are already patched) and extract them into place like C:\svn\windbus or get the latest svn sources.

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 "Visual Studio 7 .NET 2003" for the older compiler)

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.

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

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