From 015ecf15dd39cfe4f74d46e7848cc0651f298810 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 12 Mar 2019 12:23:49 +0100 Subject: README.cmake: Add cross building for Windows --- README.cmake | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'README.cmake') diff --git a/README.cmake b/README.cmake index 7ca8c0f5..15f1e79d 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 -- cgit v1.2.1