Compile libsigrok and pulseview in windows by msys2

Compile libsigrok and pulseview in windows by msys2

2022/02/06 Computer Engineering 0

This is the tutorial to build libsigrok and pulseview in windows

  1. Download msys https://www.msys2.org/
  2. Open “MSYS2 MinGW x64”, don’t use “MSYS2 MSYS”

3. git clone https://github.com/sigrokproject/sigrok-util.git

4. cd sigrok-utils/cross-compile/msys2

5. ./sigrok-native-msys2 prepare , it will auto install all necessary packages

Compile libsigrok

6. git clone https://gitlab.com/quantr/toolchain/libsigrok.git

7. cd libsigrok

8. ./autogen.sh

9. vi configure and comment out these lines, since the event-abstraction branhc of libusb is not available anymore

10. ./configure –disable-python

11. make

12. make install , if this step success, you got libsigrok, now you can compile libsigrokdecode and pulseview

Compile libsigrokdecode

13. git clone https://github.com/sigrokproject/libsigrokdecode.git

14. ./autogen.sh

15. make

16. make install

Compile pulseview

1. git clone https://github.com/sigrokproject/pulseview.git

2. pacman -S ninja

3. pacman -S mingw-w64-x86_64-qt5

4. cmake -D CMAKE_C_COMPILER=/mingw64/bin/gcc.exe -D CMAKE_CXX_COMPILER=/mingw64/bin/g++.exe .

5.

Leave a Reply

Your email address will not be published.