Getting Started/Build/Windows/Building DBus: Difference between revisions

From KDE TechBase
No edit summary
(Replaced content with "{{Moved To Community|Windows/Imported From TechBase/Build/{{#titleparts:{{PAGENAME}}||4}}}}")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
First, be sure you have installed [http://techbase.kde.org/Getting_Started/Build/KDE4/Windows/3rd-party_libraries win32libs]!
{{Moved To Community|Windows/Imported From TechBase/Build/{{#titleparts:{{PAGENAME}}||4}}}}
 
*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>
 
Once you have the source code,
<pre>
cd c:\svn\windbus
patch -p0 < DBus-win32.patch
cd ..
mkdir windbus-build
cd windbus-build
cmake -G "Visual Studio 8 2005" ..\windbus\cmake\
</pre>
(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>Build -> Configuration Manager</tt> 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
 
For MinGW Builds please replace <tt>-G "Visual Studio 8 2005"</tt> with <tt>-G "MinGW Makefiles"</tt> and then use<pre>
mingw32-make
mingw32-make install
</pre>
(<tt>nmake</tt> instead of <tt>mingw32-make</tt> for msvc)
 
Default target for the installation is <tt>%PROGRAMFILES%\dbus</tt>.

Latest revision as of 14:08, 11 March 2016

This page is now on the community wiki.