Difference between revisions of "Windows"

From sigrok
Jump to navigation Jump to search
m (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…')
 
m
Line 5: Line 5:
This page describes how to build sigrok on Windows.
This page describes how to build sigrok on Windows.


== Requirements ==
== Building and installing the requirements ==


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


== Building ==
=== Mingw/MSYS ===
 
== autotools ==
 
* autoconf
* automake
* libtool
* perl (required for autotools)
** libcrypt (required for perl)
* m4 (required for aclocal)
* TODO: Symlinks for autotools
 
== libglib ==
 
=== Qt 4.6 ===
 
=== libusb 1.0 ===
 
=== libzip ===
 
* Needs zlib, it seems.
 
== Building sigrok ==


Get the source code:
Get the source code:

Revision as of 15:13, 17 March 2010

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.

Building and installing the requirements

TortoiseGit

Mingw/MSYS

autotools

  • autoconf
  • automake
  • libtool
  • perl (required for autotools)
    • libcrypt (required for perl)
  • m4 (required for aclocal)
  • TODO: Symlinks for autotools

libglib

Qt 4.6

libusb 1.0

libzip

  • Needs zlib, it seems.

Building sigrok

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.