# HG changeset patch
# User Volker Grabsch
export PKG_CONFIG_PATH="entries for native builds"-
export PKG_CONFIG_PATH_i686_pc_mingw32="entries for MXE builds"
+ export PKG_CONFIG_PATH_i686_pc_mingw32="entries for MXE builds"
- Remember to use i686-pc-mingw32-pkg-config + Remember to use i686-pc-mingw32-pkg-config instead of pkg-config for cross builds. The Autotools do that automatically for you.
@@ -328,13 +328,13 @@ Autotools, all you have to do is: -./configure --host=i686-pc-mingw32 +./configure --host=i686-pc-mingw32 makeIf you build a library, you might also want to enforce a static build:
-./configure --host=i686-pc-mingw32 --enable-static --disable-shared +./configure --host=i686-pc-mingw32 --enable-static --disable-shared make@@ -353,7 +353,7 @@ CMake project, you can use the provided toolchain file:
-cmake ... -DCMAKE_TOOLCHAIN_FILE=/where MXE is installed/usr/i686-pc-mingw32/share/cmake/mingw-cross-env-conf.cmake
+cmake ... -DCMAKE_TOOLCHAIN_FILE=/where MXE is installed/usr/i686-pc-mingw32/share/cmake/mingw-cross-env-conf.cmakeStep 5c: Cross compile your Project (Qt)
@@ -362,7 +362,7 @@ Qt application, all you have to do is: -i686-pc-mingw32-qmake +i686-pc-mingw32-qmake makeIf you are using Qt plugins @@ -393,7 +393,7 @@
Then, all you have to do is:
-make CROSS=i686-pc-mingw32-
+make CROSS=i686-pc-mingw32-That's it!