From: Ralf Habacker Date: Tue, 12 Mar 2019 11:23:49 +0000 (+0100) Subject: README.cmake: Add cross building for Windows X-Git-Tag: dbus-1.13.10~16^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=015ecf15dd39cfe4f74d46e7848cc0651f298810;p=thirdparty%2Fdbus.git README.cmake: Add cross building for Windows --- diff --git a/README.cmake b/README.cmake index 7ca8c0f50..15f1e79d6 100644 --- a/README.cmake +++ b/README.cmake @@ -25,7 +25,23 @@ Win32 MinGW-w64|32 mingw32-make mingw32-make install -Win32 Microsoft nmake +Mingw32 cross compile on Linux +2. install cmake, libexpat and optional xsltproc and docbook dtd and stylesheets + e.g on openSUSE Leap 15.0: + sudo zypper ar -f https://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_15.0/ + sudo zypper install mingw32-cross-gcc-c++ mingw32-libexpat-devel libxslt-tools mingw32-docbook_4 mingw32-docbool-xsl-stylesheets +2. get dbus sources +3. unpack dbus sources into a sub directory (referred as later) +4. mkdir dbus-build +5. cd dbus-build +6. run + cmake -DCMAKE_TOOLCHAIN_FILE=/cmake/i686-w64-mingw32.cmake \ + -DCMAKE_FIND_ROOT_PATH=/usr/i686-w64-mingw32/sysroot/i686-w64-mingw32 \ + [] + make + make install + + Win32 Microsoft nmake 1. install MSVC 2010 Express Version from http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express 2. install cmake, libexpat and optional xsltproc and docbook dtd and stylesheets 3. get dbus sources