X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fmingw%2Fsigrok-cross-mingw;h=6bf521c5804c163b382055fe90791d4ae942f9f1;hp=74ad43bfd76a326c5296bf6f8860364bbcea3cff;hb=7eaac9545b57fe99e958b4ad4983abc23d41c143;hpb=2c1ce0e40366d80f00a76824caefb640bd489338 diff --git a/cross-compile/mingw/sigrok-cross-mingw b/cross-compile/mingw/sigrok-cross-mingw index 74ad43b..6bf521c 100755 --- a/cross-compile/mingw/sigrok-cross-mingw +++ b/cross-compile/mingw/sigrok-cross-mingw @@ -50,7 +50,7 @@ GIT_CLONE="git clone --depth=1" # We need to find tools in the toolchain. export PATH=$MXE/usr/bin:$PATH -TOOLCHAIN_TRIPLET="i686-pc-mingw32.static" +TOOLCHAIN_TRIPLET="i686-w64-mingw32.static" P="$PREFIX/lib/pkgconfig" P2="$MXE/usr/$TOOLCHAIN_TRIPLET/lib/pkgconfig" @@ -59,6 +59,8 @@ CM="-DCMAKE_TOOLCHAIN_FILE=$MXE/usr/$TOOLCHAIN_TRIPLET/share/cmake/mxe-conf.cmak L="--disable-shared --enable-static" DDK="$MXE/usr/$TOOLCHAIN_TRIPLET/include/ddk" +export PKG_CONFIG_PATH_i686_w64_mingw32_static="$P:$P2" + # Remove build directory contents (if any) and create a new build dir. rm -rf $BUILDDIR mkdir $BUILDDIR @@ -116,7 +118,7 @@ cp -f zadig.exe zadig_xp.exe $PREFIX $GIT_CLONE git://sigrok.org/libserialport cd libserialport ./autogen.sh -PKG_CONFIG_PATH_i686_pc_mingw32_static=$P CFLAGS="-I$DDK" ./configure $C $L +CFLAGS="-I$DDK" ./configure $C $L make $PARALLEL V=1 make install cd .. @@ -126,7 +128,7 @@ $GIT_CLONE git://sigrok.org/libsigrok cd libsigrok patch -p1 < ../../libsigrok_firmwaredir.patch ./autogen.sh -PKG_CONFIG_PATH_i686_pc_mingw32_static=$P ./configure $C $L +./configure $C $L make $PARALLEL V=1 make install cd .. @@ -136,7 +138,7 @@ $GIT_CLONE git://sigrok.org/libsigrokdecode cd libsigrokdecode ./autogen.sh patch -p1 < ../../srd_decodersdir.patch -PKG_CONFIG_PATH_i686_pc_mingw32_static=$P ./configure $C $L +./configure $C $L make $PARALLEL V=1 make install cd .. @@ -170,7 +172,7 @@ cd .. $GIT_CLONE git://sigrok.org/sigrok-cli cd sigrok-cli ./autogen.sh -PKG_CONFIG_PATH_i686_pc_mingw32_static=$P:$P2 ./configure $C +./configure $C make $PARALLEL V=1 make install makensis -DHOME=$HOME contrib/sigrok-cli_cross.nsi @@ -179,7 +181,7 @@ cd .. # PulseView $GIT_CLONE git://sigrok.org/pulseview cd pulseview -PKG_CONFIG_PATH_i686_pc_mingw32_static=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y . +cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y . make $PARALLEL VERBOSE=1 make install makensis -DHOME=$HOME contrib/pulseview_cross.nsi