Difference between revisions of "Windows"

From sigrok
Jump to navigation Jump to search
(libusb 1.0 Windows instructions. Fix other parts of the Windows HOWTO.)
(→‎Building and installing the requirements: TortoiseGit and MinGW/MSYS install nistructions.)
Line 8: Line 8:


=== TortoiseGit ===
=== TortoiseGit ===
For checking out the sigrok source code you can use [http://code.google.com/p/tortoisegit/ TortoiseGit] on Windows.
* Download and install the [http://code.google.com/p/tortoisegit/downloads/list latest version] (for 32bit or 64bit Windows) of TortoiseGit (just double-click the *.msi installer).
* Download and install the [http://code.google.com/p/msysgit/downloads/list latest version] of the "full installer" of [http://code.google.com/p/msysgit/ MSysGit] (double-click the *.exe installer).


=== Mingw/MSYS ===
=== 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 [http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/ latest version] (5.1.6 currently) of [http://mingw.org/ MinGW] (double-click the installer *.exe, which will download and install all components).
** Make sure you enable "MinGW base tools", "g++ compiler", and "MinGW Make" in the installer.
** For simplicity it's recommended to leave the default install location of "C:\MinGW" unchanged.
* Download and install the [http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11/ latest stable version which has an installer] (1.0.11 currently) of the [http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/ MSYS base system] (double-click the installer *.exe file).
** For simplicity it's recommended to leave the default install location of "C:\msys\1.0" unchanged.
** The installer will ask (in a DOS box) whether you have MinGW installed (say 'y') and where (say 'C:/MinGW').


=== autotools ===
=== autotools ===

Revision as of 01:45, 20 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

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 (5.1.6 currently) of MinGW (double-click the installer *.exe, which will download and install all components).
    • Make sure you enable "MinGW base tools", "g++ compiler", and "MinGW Make" in the installer.
    • For simplicity it's recommended to leave the default install location of "C:\MinGW" unchanged.
  • Download and install the latest stable version which has an installer (1.0.11 currently) of the MSYS base system (double-click the installer *.exe file).
    • For simplicity it's recommended to leave the default install location of "C:\msys\1.0" unchanged.
    • The installer will ask (in a DOS box) whether you have MinGW installed (say 'y') and where (say 'C:/MinGW').

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

On Windows we need the libusb 1.0 Windows port.

$ git clone git://git.libusb.org/libusb-pbatard.git
$ cd libusb-pbatard
$ cmake -G "MSYS Makefiles"
$ make

libzip

  • Needs zlib.

Building sigrok

Get the source code:

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

Build the library and command line tool:

$ ./autogen.sh
$ make

Build the GUI:

  • First, you need to copy some files into the frontends/gui/debug folder:
$ cd frontends/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 . # TODO
  • In a file explorer, double-click the sigrok-gui.pro file in the frontends/gui/ directory, which should open the project in Qt Creator.
  • Build and run the project.