summaryrefslogtreecommitdiff
path: root/tests/CMingw-cross-env.cmake
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-12 07:07:54 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-12 07:07:54 (GMT)
commitc1b1d0992f78ecafb4212994207ee7cc7cbb6b39 (patch)
tree944f42e49fb11d31dfdcb3c9763b5ce713aaa84b /tests/CMingw-cross-env.cmake
parent14c45da1f3544d6f0270a0ea6ba573fc06cf2127 (diff)
tweaks to get tests working on a cross-compile under Wine
Diffstat (limited to 'tests/CMingw-cross-env.cmake')
-rw-r--r--tests/CMingw-cross-env.cmake27
1 files changed, 18 insertions, 9 deletions
diff --git a/tests/CMingw-cross-env.cmake b/tests/CMingw-cross-env.cmake
index 7063be4..1091085 100644
--- a/tests/CMingw-cross-env.cmake
+++ b/tests/CMingw-cross-env.cmake
@@ -2,19 +2,27 @@
# CMake Toolchain file for cross compiling OpenSCAD tests linux->mingw-win32
# --------------------------------------------------------------------------
#
+# This will only work under linux using 'wine'. It has not been tested under
+# mingw32 nor MSVC
+#
# Prerequisites: mingw-cross-env, ImageMagick 6.5.9.3 or newer, wine
#
# Usage:
#
-# - follow Brad Pitcher's mingw-cross-env for OpenSCAD setup:
-# http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Cross-compiling_for_Windows_on_Linux_or_Mac_OS_X
-# - cross-compile openscad.exe, to verify your installation works properly.
-# - cd openscad/tests && mkdir build-mingw32 && cd build-mingw32
-# - cmake .. -DCMAKE_TOOLCHAIN_FILE=../CMingw-cross-env.cmake \
-# -DMINGW_CROSS_ENV_DIR=<where mingw-cross-env is installed>
-# - make should proceed as normal.
-# - now run 'ctest' on your *nix machine.
-# The test .exe programs should run under Wine.
+# follow the README.md to do a mingw-cross build of openscad.exe
+# the setenv-mingw-xbuild.sh script will set MXEDIR
+# cd openscad/tests && mkdir build-mingw32 && cd build-mingw32
+# # set env variables:
+# PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$MXEDIR/usr/i686-pc-mingw32/qt/lib/pkgconfig
+# OPENSCADPATH=../../libraries # (to find MCAD for some tests)
+# cmake .. -DCMAKE_TOOLCHAIN_FILE=../CMingw-cross-env.cmake \
+# -DMINGW_CROSS_ENV_DIR=$MXEDIR
+# make # (should proceed as normal.)
+# now run 'ctest' on your *nix machine.
+# The test .exe programs should run under Wine.
+# imagemagick's "convert" comparer will be your actual linux version.
+# The pretty printer won't automatically work after the tests. You have to run
+# it manually by typing 'wine test_pretty_print.exe'
#
# See also:
#
@@ -31,6 +39,7 @@
# cmake's FindQt4.cmake & Qt4ConfigDependentSettings.cmake files
# mingw-cross-env's qmake.conf and *.prl files
# mingw-cross-env's pkg-config files in usr/i686-pc-mingw32/lib/pkgconfig
+# (may have to add to env var PKG_CONFIG_PATH to find qt .pc files)
# http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries
#
contact: Jan Huwald // Impressum