aheinecke@3: #!/bin/bash aheinecke@3: aheinecke@3: # This script is currently a dummy to take down some notes on building. aheinecke@3: # It is not meant to be a general purpose build script. aheinecke@3: aheinecke@3: set -e aheinecke@3: aheinecke@3: cd `dirname $0` aheinecke@3: aheinecke@3: mkdir -p build-linux aheinecke@3: cd build-linux aheinecke@3: cmake .. -DCMAKE_VERBOSE_MAKEFILE=True -DCMAKE_PREFIX_PATH=~/wheezy aheinecke@3: nice make -j8 aheinecke@3: cd .. aheinecke@3: mkdir -p build-windows aheinecke@3: cd build-windows aheinecke@3: cmake .. -DCMAKE_PREFIX_PATH=~/wheezy/src/mxe/usr/i686-w64-mingw32/qt5 \ aheinecke@4: -DCMAKE_TOOLCHAIN_FILE='~/wheezy/src/mxe/usr/i686-w64-mingw32/share/cmake/mxe-conf.cmake' \ aheinecke@4: -DCMAKE_VERBOSE_MAKEFILE=True aheinecke@3: nice make -j8 aheinecke@3: cd .. aheinecke@3: aheinecke@3: # Note: qt5 plugins have .lib suffix aheinecke@3: # find ~/wheezy/src/mxe/usr/i686-w64-mingw32/qt5/lib/cmake -name \*.cmake | xargs sed -i 's/\.lib/\.a//g' aheinecke@3: # Also they need to have a lib prefixed... aheinecke@3: # Then there is a bogous call _qt5gui_find_extra_libs(OPENGL "glu32;opengl32;gdi32;user32" "" "") aheinecke@3: # where the second "" has to be replaced by your windows prefix. e.g. /home/andre/wheezy/src/mxe/usr/i686-w64-mingw32/lib