Difference between revisions of "Getting Started/Build/Windows/Building DBus"

Jump to: navigation, search
m (moved Getting Started/Build/KDE4/Windows/Building DBus to Getting Started/Build/Windows/Building DBus: Reorg, we only have KDE4 now so it's redundant)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
First, be sure you have installed [[#win32libs|win32libs]]!
+
First, be sure you have installed [http://techbase.kde.org/Getting_Started/Build/KDE4/Windows/3rd-party_libraries win32libs].
  
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].
+
Instructions below apply to msvc and mingw.
 +
 
 +
'''msvc and mingw:''' Either
 +
*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]; in this case use<br/><tt><nowiki>svn co https://windbus.svn.sourceforge.net/svnroot/windbus/trunk windbus</nowiki></tt>
 +
 
 +
'''msvc and mingw:''' Creating the build dir. Once you have the source code,
 
<pre>
 
<pre>
 
cd c:\svn\windbus
 
cd c:\svn\windbus
Line 10: Line 16:
 
cmake -G "Visual Studio 8 2005" ..\windbus\cmake\
 
cmake -G "Visual Studio 8 2005" ..\windbus\cmake\
 
</pre>
 
</pre>
(use <tt>-G "Visual Studio 7 .NET 2003"</tt> for the older compiler)
+
(use <tt>-G "MinGW Makefiles"</tt> for the mingw 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  
+
'''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  
 
<tt>Build -> Configuration Manager</tt> menu.
 
<tt>Build -> Configuration Manager</tt> menu.
  
'''Tip:''' to perform compilation and installation from the command line, type:
+
'''msvc tip:''' to perform compilation and installation from the command line, type:
 
  devenv /build Debug /project INSTALL dbus.sln
 
  devenv /build Debug /project INSTALL dbus.sln
 
  devenv /build Release /project INSTALL dbus.sln
 
  devenv /build Release /project INSTALL dbus.sln
 +
 +
'''msvc:''' then use<pre>
 +
nmake
 +
nmake install
 +
</pre>
 +
(in the build directory)
 +
 +
'''mingw:''' then use<pre>
 +
mingw32-make
 +
mingw32-make install
 +
</pre>
 +
(in the build directory)
  
 
Default target for the installation is <tt>%PROGRAMFILES%\dbus</tt>.
 
Default target for the installation is <tt>%PROGRAMFILES%\dbus</tt>.

Latest revision as of 11:46, 3 March 2011

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.


This page was last modified on 3 March 2011, at 11:46. This page has been accessed 9,915 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal