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: bernhard@56: # build requirements need to be installed: andre@301: # polarssl, qt5, (opt) doxygen, (opt) hiawatha-webserver, (opt) libnss3-dev bernhard@56: aheinecke@3: mkdir -p build-linux aheinecke@3: cd build-linux aheinecke@37: cmake .. -DCMAKE_VERBOSE_MAKEFILE=True -DCMAKE_PREFIX_PATH=~/ubuntu aheinecke@3: nice make -j8 aheinecke@3: cd .. aheinecke@3: mkdir -p build-windows aheinecke@3: cd build-windows aheinecke@67: cmake .. \ aheinecke@69: -DCMAKE_PREFIX_PATH="~/ubuntu/src/mxe/usr/i686-w64-mingw32.static/qt5;~/ubuntu/src/mxe/usr/i686-w64-mingw32.static" \ aheinecke@67: -DCMAKE_TOOLCHAIN_FILE='~/ubuntu/src/mxe/usr/i686-w64-mingw32.static/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@77: # find ~/ubuntu/src/mxe/usr/i686-w64-mingw32.static/qt5/lib/cmake -name \*.cmake | xargs sed -i 's/\/\([a-z]*\)\.lib/\/lib\1\.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@67: # where the first "" has to be replaced by your windows prefix. e.g. aheinecke@67: # /home/andre/ubuntu/src/mxe/usr/i686-w64-mingw32.static/lib aheinecke@69: # if this does not work you can omment out the line altogether