Hello everyone! I am experiencing problems with sigrok on Windows, and
i decided to fix them myself. I am using MSYS2, this is my first patch.
I made the build script working.
The only thing left is that somehow dynamic gobject and glib DLLs are
pulled in. For my current development needs i get by with a small
workaround in pulseview CMakeLists.txt. If you're interested, i can
share the WA, or maybe i can dig into this later, after i fix major
problems.
The big problem i am experiencing is that "Save" function doesn't
work. I'll provide more details later.
Kind regards.
From 89fdc89aeb0b8b9f2b3ad775c8475d0dfb7a1c25 Mon Sep 17 00:00:00 2001
From: Pavel Fedin <pavel_fe...@mail.ru>
Date: Thu, 26 Oct 2023 23:52:50 +0300
Subject: [PATCH] cross-compile/msys2: Update script
- libusb "event-abstraction-v4" branch doesn't exist any more, use upstream
master.
- Since we don't have static python, disable libsigrokdecode. For developing
other components this is better than nothing at all.
Signed-off-by: Pavel Fedin <pavel_fe...@mail.ru>
---
cross-compile/msys2/sigrok-native-msys2 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/cross-compile/msys2/sigrok-native-msys2
b/cross-compile/msys2/sigrok-native-msys2
index bb692db..d525727 100755
--- a/cross-compile/msys2/sigrok-native-msys2
+++ b/cross-compile/msys2/sigrok-native-msys2
@@ -117,7 +117,7 @@ fi
# -----------------------------------------------------------------------------
# libusb
-$GIT_CLONE git://github.com/dickens/libusb -b event-abstraction-v4
+$GIT_CLONE g...@github.com:libusb/libusb.git
cd libusb
./bootstrap.sh
./configure $C $L
@@ -191,7 +191,7 @@ cd ..
# # makensis -DHOME=$HOME contrib/sigrok-cli_cross.nsi # TODO
# cd ../..
-# TODO: Doesn't build, various linking errors.
+# TODO: sigrokdecode requires python
# PulseView
$GIT_CLONE $REPO_BASE/pulseview
cd pulseview
@@ -203,6 +203,7 @@ PKG_CONFIG_PATH=$P $SB cmake \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DDISABLE_WERROR=y \
-DENABLE_TESTS=n \
+ -DENABLE_DECODE=n \
..
$SB make $PARALLEL $V
make install $V
--
2.42.0.windows.2
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel