X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fmingw%2Fsigrok-cross-mingw;h=aca0721ff4219118da1d56474086fc28c918180e;hp=afc49921a9e51815a76dfc9fe063dc9d172c5b8c;hb=5b9f0cfce00d2b61855827e82dd36a322a502283;hpb=99344584ff585a253127a13c422af6d185ccbef9 diff --git a/cross-compile/mingw/sigrok-cross-mingw b/cross-compile/mingw/sigrok-cross-mingw index afc4992..aca0721 100755 --- a/cross-compile/mingw/sigrok-cross-mingw +++ b/cross-compile/mingw/sigrok-cross-mingw @@ -75,6 +75,10 @@ for opt in opt_flags: EOF chmod 755 $PREFIX/bin/python3-config +# Download the Python 3.2.3 MSI installer (needed for NSIS runs). +wget -c http://python.org/ftp/python/3.2.3/python-3.2.3.msi \ + -O $PREFIX/python-3.2.3.msi + # libsigrok git clone git://sigrok.org/libsigrok cd libsigrok @@ -94,29 +98,15 @@ git clone git://sigrok.org/sigrok-cli cd sigrok-cli ./autogen.sh PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 ./configure $C && make install +makensis contrib/sigrok-cli_cross.nsi cd .. -## TODO: Doesn't fully work, yet. -## # sigrok-qt -## git clone git://sigrok.org/sigrok-qt -## cd sigrok-qt -## PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 qmake -spec win32-g++ -## make -## # TODO: make install -## cd .. - -# # sigrok-gtk -# git clone git://sigrok.org/sigrok-gtk -# cd sigrok-gtk -# ./autogen.sh -# PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 ./configure $C && make install -# cd .. - # PulseView git clone git://sigrok.org/pulseview cd pulseview # Temporary workaround: append (not prepend) "-llzma -llcms2" to the linker. -sed -i '224a \\tlist(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") # Quick hack' CMakeLists.txt +sed -i '247a \\tlist(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") # Quick hack' CMakeLists.txt PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y . && make install VERBOSE=1 +makensis contrib/pulseview_cross.nsi cd ..