Difference between revisions of "Windows"

From sigrok
Jump to navigation Jump to search
(Update Windows instructions.)
(→‎Status: ZEROPLUS seems to work on Windows.)
Line 23: Line 23:
|- bgcolor="#dddddd"
|- bgcolor="#dddddd"
| [[ZEROPLUS Logic Cube LAP-C]]
| [[ZEROPLUS Logic Cube LAP-C]]
| bgcolor="yellow" | Untested, but uses libusb-1.0, so there may be issues.
| bgcolor="lime" | Uses libusb-1.0, but seems to work fine.
|- bgcolor="#dddddd"
|- bgcolor="#eeeeee"
| [[Link Instruments MSO-19‎]]
| [[Link Instruments MSO-19‎]]
| bgcolor="orange" | Doesn't compile due to libudev dependency. TODO: Make libudev optional.
| bgcolor="orange" | Doesn't compile due to libudev dependency. TODO: Make libudev optional.
|- bgcolor="#eeeeee"
|- bgcolor="#dddddd"
| [[ChronoVu LA8]]
| [[ChronoVu LA8]]
| bgcolor="lime" | Works fine using libftdi + libusb-0.1-win32.
| bgcolor="lime" | Works fine using libftdi + libusb-0.1-win32.
|- bgcolor="#eeeeee"
| [[Robomotic MiniLogic]]
| bgcolor="yellow" | libusb-1.0 issues need to be sorted out.
|- bgcolor="#dddddd"
| [[Logic Shrimp]]
| bgcolor="yellow" | Serial port portability fixes required (partially implemented, but unfinished).
|- bgcolor="#eeeeee"
| [[Lcsoft Mini Board]]
| bgcolor="yellow" | libusb-1.0 issues need to be sorted out.
|- bgcolor="#dddddd"
|- bgcolor="#dddddd"
| Demo driver
| Demo driver

Revision as of 14:31, 5 February 2012

sigrok-gui on Windows

Status

We intend to fully support all major operating systems in sigrok, including Windows. However, we're not quite there, yet, various portability issues need to be addressed still. The table below lists the current Windows status of the various hardware drivers.

Logic analyzer Windows status
Saleae Logic libusb-1.0 issues need to be sorted out.
EE Electronics XLA/ESLA100 libusb-1.0 issues need to be sorted out.
ASIX SIGMA Compiles fine using libftdi + libusb-0.1-win32 (not runtime-tested, though).
Openbench Logic Sniffer Serial port portability fixes required (partially implemented, but unfinished).
ZEROPLUS Logic Cube LAP-C Uses libusb-1.0, but seems to work fine.
Link Instruments MSO-19‎ Doesn't compile due to libudev dependency. TODO: Make libudev optional.
ChronoVu LA8 Works fine using libftdi + libusb-0.1-win32.
Robomotic MiniLogic libusb-1.0 issues need to be sorted out.
Logic Shrimp Serial port portability fixes required (partially implemented, but unfinished).
Lcsoft Mini Board libusb-1.0 issues need to be sorted out.
Demo driver Works fine.

Self-extracting installer

Work in progress.

Currently only the command-line tool sigrok-cli is fully supported, but (for testing purposes) the Qt GUI and the GTK+ GUI are installed, too.

Building from source

This page describes how to build sigrok on Windows.

TortoiseGit

For checking out the sigrok source code you can use TortoiseGit on Windows.

  • Download and install the latest version (for 32bit or 64bit Windows) of TortoiseGit (just double-click the *.msi installer).
  • Download and install the latest version of the "full installer" of MSysGit (double-click the *.exe installer).

MinGW/MSYS

In order to build sigrok and various of its dependencies, we need a UNIX-like environment on Windows, which is provided by MinGW/MSYS.

  • Download the latest version of the automated MinGW installer named mingw-get-inst (double-click the installer EXE file, which will download and install all components).
    • Make sure you enable "MinGW Compiler Suite", "C++ compiler", "MSYS Basic System", and "MinGW Developer Toolkit" in the installer.
    • For simplicity it's recommended to leave the default install location of c:\MinGW unchanged.

Now open a MinGW shell via Start/Programs/MinGW/MinGW Shell and do the following:

$ mingw-get update
$ mingw-get install msys-wget msys-unzip

autotools

Installing the autotools (if not already done) is as simple as:

$ mingw-get install autoconf automake libtool

Additional files for sigrok

Unfortunately, not all binary packages needed for a sigrok build come with a pkg-config .pc file, thus we provide our own files for simplicity. Extract the following into c:\MinGW\msys\1.0\local:

libglib and pkg-config

sigrok also needs libglib >= 2.22.0, which in turn needs pkg-config (>= 0.22). Download the latest versions of the respective Windows binaries and extract them into c:\MinGW\msys\1.0\local:

Then run:

$ cd /c/MinGW/bin
$ cp libintl-8.dll intl.dll

libusb 1.0

$ git clone git://git.libusb.org/libusb-pbatard.git (or use TortoiseGit)
$ cd libusb-pbatard
$ ./autogen.sh
$ touch configure
$ make
$ make install

libftdi + libusb-0.1-win32

  • Download and execute libusb-win32-devel-filter-1.2.5.0.exe.
  • Download and extract libusb-win32-bin-1.2.5.0.zip.
    • Rename bin/x86/libusb0_x86.dll to libusb0.dll and copy it to /usr/local/bin.
    • Rename include/lusb0_usb.h to usb.h and copy it to /usr/local/include.
    • Copy lib/gcc/libusb.a to /usr/local/lib.
  • Install libftdi. The easiest method is probably to use the libftdi-0.19_mingw32.zip binaries from here.
    • Extract the ZIP file into a temporary directory.
    • Copy dll/libftdi.dll to /usr/local/bin.
    • Copy lib/libftdi.a and lib/libftdi.dll.a to /usr/local/lib.
    • Copy include/ftdi.h to /usr/local/include.

zlib

Download the latest versions of the respective Windows binaries and extract them into c:\MinGW\msys\1.0\local:

libzip

$ wget http://nih.at/libzip/libzip-0.10.tar.gz
$ tar xfvz libzip-0.10.tar.gz
$ cd libzip-0.10
$ ./configure --with-zlib=/usr/local
$ make
$ make install

Python

We also need Python >= 3.0 for running the sigrok protocol decoders which are written in Python. On Windows, sigrok currently assumes Python 3.2.x installed in c:\Python32.

  • Download and install the latest version (currently 3.2.2) of the Python Windows installer (just double-click the *.msi installer file).
    • For simplicity it's recommended to leave the default install location of c:\Python32 unchanged.

Qt

In order to also build the Qt-based sigrok-qt, download the latest version (>= 4.5) of the Qt SDK for Windows (LGPL version) and double-click the installer. The download includes the Qt libraries, Qt Creator, Qt Designer, and various other Qt development tools.

GTK+

Download the latest versions of the following Windows binaries and extract them into c:\MinGW\msys\1.0\local:

sigrok

Get the source code:

$ git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok (or use TortoiseGit)
$ cd sigrok

Build libsigrok:

$ cd libsigrok
$ ./autogen.sh
$ ./configure
$ make
$ make install
$ cd ..

Build libsigrokdecode:

$ cd libsigrokdecode
$ ./autogen.sh
$ ./configure
$ make
$ make install
$ cd ..

Build sigrok-cli:

$ cd sigrok-cli
$ ./autogen.sh
$ ./configure
$ make
$ make install
$ cd ..

Build the Qt GUI:

$ cd sigrok-qt
$ /c/QtSDK/Desktop/Qt/4.7.4/mingw/bin/qmake
$ make
$ make install
$ cd ..

Build the GTK+ GUI:

$ cd sigrok-gtk
$ ./autogen.sh
$ ./configure
$ make
$ make install
$ cd ..