Windows

From sigrok
Revision as of 19:56, 14 March 2010 by Uwe Hermann (talk | contribs) (Created page with 'right|thumb|320px|sigrok-gui on Windows TODO: This page is outdated and not correct. This will be fixed soon! This page describes how to build sigro…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
sigrok-gui on Windows

TODO: This page is outdated and not correct. This will be fixed soon!

This page describes how to build sigrok on Windows.

Requirements

  • TortoiseGit (to get the source code)
  • MinGW MSYS (for building the library and command-line tool)
  • Qt + Qt Creator >= 4.5 (for building/editing the GUI)
  • libusb
  • libglib

Building

Get the source code:

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

Make a local copy of some libusb files (we assume you already installed libusb into c:\Program Files):

$ cp /c/Program\ Files/LibUSB-Win32/lib/gcc/libusb.a lib
$ cp /c/Program\ Files/LibUSB-Win32/include/usb.h include

Build the library:

$ make lib

Build the command-line tool:

$ make cli

Build the GUI:

  • First, you need to copy some files into the gui/debug folder:
$ cd gui
$ /c/Qt/2010.01/qt/bin/qmake.exe
$ cd debug
$ cp /c/Qt/2010.01/qt/bin/libgcc_s_dw2-1.dll .
$ cp /c/Qt/2010.01/qt/bin/QtCored4.dll .
$ cp /c/Qt/2010.01/qt/bin/QtGui4.dll .
$ cp ../../lib/libsigrok.so .
  • In a file explorer, double-click the sigrok-gui.pro file in the gui/ directory, which should open the project in Qt Creator.
  • Build and run the project.