X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=cross-compile%2Fmingw%2Fsigrok-cross-mingw;h=813424926e73bc8ea89e2592269c3019d8c28149;hb=dd64ca23ef401e81d9d46f09b442dcc0deace596;hp=521f754288d8b018fea7a2992757989fcc61a781;hpb=cacb70bdc43d546f23d6bcea042ebc71f7011c85;p=sigrok-util.git diff --git a/cross-compile/mingw/sigrok-cross-mingw b/cross-compile/mingw/sigrok-cross-mingw index 521f754..8134249 100755 --- a/cross-compile/mingw/sigrok-cross-mingw +++ b/cross-compile/mingw/sigrok-cross-mingw @@ -32,12 +32,6 @@ BUILDDIR=./sr_mingw_build # ----------------------------------------------------------------------------- -VER_LIBUSB_1_0=1.0.9 - -SF_MIRROR=switch.dl.sourceforge.net - -# ----------------------------------------------------------------------------- - # We need to find tools in the toolchain and in the install directory. export PATH=$PREFIX/bin:$MXE/usr/bin:$PATH @@ -54,13 +48,6 @@ cd $BUILDDIR # ----------------------------------------------------------------------------- -# libusb-1.0 -wget http://$SF_MIRROR/project/libusb/libusb-1.0/libusb-$VER_LIBUSB_1_0/libusb-$VER_LIBUSB_1_0.tar.bz2 -tar xfj libusb-$VER_LIBUSB_1_0.tar.bz2 -cd libusb-$VER_LIBUSB_1_0 -./configure $C $L && make install -cd .. - # Python3 # Cross-compiling Python is highly non-trivial, so we avoid it for now. # The download below is a repackaged tarball of the official Python 3.2.3 MSI @@ -88,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 @@ -107,6 +98,7 @@ 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. @@ -118,16 +110,19 @@ cd .. ## # 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 .. +# # 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 -LDFLAGS="-llzma -llcms" PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y . && make install +# Temporary workaround: append (not prepend) "-llzma -llcms2" to the linker. +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 ..