Difference between revisions of "Linux"

From sigrok
Jump to navigation Jump to search
m (Added fedora packages)
(Updates, more dependencies, Debian packages.)
Line 5: Line 5:
== Requirements ==
== Requirements ==


* git
* git (for clonin the source code repository)
* gcc
* gcc, g++, make, ...
* autoconf, automake, libtool, pkg-config
* libglib >= 2.0
* libglib >= 2.0
* [http://www.libusb.org libusb] >= 1.0.5
* [http://www.libusb.org libusb] >= 1.0.5
* libzip >= 0.8
* libzip >= 0.8
* Python
* Python >= 2.5
* Qt + Qt Creator >= 4.5 (for building/editing the GUI)
* Qt + Qt Creator >= 4.5 (for building/editing the GUI)


== Installing the build-dependencies ==
== Installing the build-dependencies ==


On most Linux distributions there are pre-built packages for the sigrok dependencies (if not, you have to build the packages from source). The installation is as simple as:
On most Linux distributions there are pre-built packages for the sigrok dependencies (if not, you have to build the packages from source). The installation using a package manager is usually pretty simple.


on Debian/Ubuntu
Debian/Ubuntu:


  $ '''apt-get install git-core gcc libglib2.0-dev libusb-1.0-0-dev libzip-dev qtcreator qt4-designer qt4-dev-tools libqt4-dev'''
  $ '''apt-get install git-core gcc libglib2.0-dev libusb-1.0-0-dev libzip-dev qtcreator qt4-designer qt4-dev-tools libqt4-dev'''


on Fedora
Fedora:


  $ '''yum install gcc-c++ libtool glib2-devel libusb1-devel libzip-devel qt-devel python-devel'''
  $ '''yum install gcc-c++ libtool glib2-devel libusb1-devel libzip-devel qt-devel python-devel'''
Line 35: Line 36:
Then, for building the GUI:
Then, for building the GUI:


  $ '''cd frontends/gui'''
  $ '''cd gui'''
  $ '''qmake'''
  $ '''qmake'''
  $ '''make'''
  $ '''make'''
== Distribution packages ==
* Debian / Ubuntu: [[User:Uwe Hermann|Uwe Hermann]] will create packages for Debian unstable (which will semi-automatically migrate to Ubuntu after a while).

Revision as of 18:05, 8 April 2010

sigrok-gui on Linux

This page describes how to build sigrok on Linux.

Requirements

  • git (for clonin the source code repository)
  • gcc, g++, make, ...
  • autoconf, automake, libtool, pkg-config
  • libglib >= 2.0
  • libusb >= 1.0.5
  • libzip >= 0.8
  • Python >= 2.5
  • Qt + Qt Creator >= 4.5 (for building/editing the GUI)

Installing the build-dependencies

On most Linux distributions there are pre-built packages for the sigrok dependencies (if not, you have to build the packages from source). The installation using a package manager is usually pretty simple.

Debian/Ubuntu:

$ apt-get install git-core gcc libglib2.0-dev libusb-1.0-0-dev libzip-dev qtcreator qt4-designer qt4-dev-tools libqt4-dev

Fedora:

$ yum install gcc-c++ libtool glib2-devel libusb1-devel libzip-devel qt-devel python-devel

Building

$ git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok
$ cd sigrok
$ ./autogen.sh
$ make
$ make install

Then, for building the GUI:

$ cd gui
$ qmake
$ make

Distribution packages

  • Debian / Ubuntu: Uwe Hermann will create packages for Debian unstable (which will semi-automatically migrate to Ubuntu after a while).