Difference between revisions of "Linux"

From sigrok
Jump to navigation Jump to search
m
Line 32: Line 32:
  $ '''sudo apt-get install git-core gcc g++ make autoconf autoconf-archive \'''
  $ '''sudo apt-get install git-core gcc g++ make autoconf autoconf-archive \'''
   '''automake libtool pkg-config libglib2.0-dev libglibmm-2.4-dev libzip-dev \'''
   '''automake libtool pkg-config libglib2.0-dev libglibmm-2.4-dev libzip-dev \'''
   '''libusb-1.0-0-dev libftdi-dev libudev-dev libasound2-dev check doxygen \'''
   '''libusb-1.0-0-dev libftdi-dev check doxygen \'''
   '''python-dev python-gi-dev python-setuptools swig default-jdk'''
   '''python-dev python-gi-dev python-setuptools swig default-jdk'''


Line 38: Line 38:


  $ '''sudo yum install git gcc make autoconf automake libtool pkgconfig glib2-devel \'''
  $ '''sudo yum install git gcc make autoconf automake libtool pkgconfig glib2-devel \'''
   '''libzip-devel libusb1-devel libftdi-devel libudev-devel alsa-lib-devel check-devel'''
   '''libzip-devel libusb1-devel libftdi-devel check-devel'''
 
Fedora 20:
As above, but replace '''libudev-devel''' with '''systemd-devel'''


OpenSuSE (12.2):
OpenSuSE (12.2):


  $ '''zypper install git gcc make autoconf automake libtool pkg-config glib2-devel \'''
  $ '''zypper install git gcc make autoconf automake libtool pkg-config glib2-devel \'''
   '''libzip-devel libusb-1_0-devel libftdi1-devel libudev-devel alsa-devel check \'''
   '''libzip-devel libusb-1_0-devel libftdi1-devel check python3-devel'''
  '''python3-devel'''


'''Building:'''
'''Building:'''
Line 111: Line 107:


  $ '''sudo apt-get install git-core g++ make cmake libtool pkg-config \'''
  $ '''sudo apt-get install git-core g++ make cmake libtool pkg-config \'''
   '''libglib2.0-dev libqt4-dev libboost-dev libboost-test-dev \'''
   '''libglib2.0-dev libqt4-dev libboost-test-dev \'''
   '''libboost-filesystem-dev libboost-system-dev'''
   '''libboost-filesystem-dev libboost-system-dev'''


Line 126: Line 122:
  $ '''make'''
  $ '''make'''
  $ '''sudo make install'''
  $ '''sudo make install'''
<!--
=== sigrok-gtk ===
'''Note:''' [[sigrok-gtk]] is not yet usable!
'''Installing the [[Building#Build_requirements|requirements]]:'''
TODO.
'''Building:'''
$ '''git clone git://sigrok.org/sigrok-gtk'''
$ '''cd sigrok-gtk'''
$ '''./autogen.sh'''
$ '''./configure'''
$ '''make'''
$ '''sudo make install'''
=== sigrok-qt ===
'''Note:''' [[sigrok-qt]] is not yet usable!
'''Installing the [[Building#Build_requirements|requirements]]:'''
TODO.
'''Building:'''
$ '''git clone git://sigrok.org/sigrok-qt'''
$ '''cd sigrok-qt'''
$ '''qmake-qt4'''
$ '''make'''
$ '''sudo make install'''
If you get warnings claiming potential symbol conflicts when running qmake, you are likely not invoking '''qmake-qt4'''. Try running '''qmake-qt4''' to force the correct version.
-->


== Common problems ==
== Common problems ==

Revision as of 19:19, 31 August 2014

This page describes how to build/install the sigrok subprojects on Linux.

Distribution packages

See Downloads.

Building

libserialport

Installing the requirements:

Example on Debian/Ubuntu (please check your respective distro's package manager tool if you use other distros):

$ sudo apt-get install git-core gcc make autoconf automake libtool

Building:

$ git clone git://sigrok.org/libserialport
$ cd libserialport
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

libsigrok

Installing the requirements:

Example on Debian/Ubuntu (please check your respective distro's package manager tool if you use other distros):

$ sudo apt-get install git-core gcc g++ make autoconf autoconf-archive \
  automake libtool pkg-config libglib2.0-dev libglibmm-2.4-dev libzip-dev \
  libusb-1.0-0-dev libftdi-dev check doxygen \
  python-dev python-gi-dev python-setuptools swig default-jdk

Fedora (18, 19):

$ sudo yum install git gcc make autoconf automake libtool pkgconfig glib2-devel \
  libzip-devel libusb1-devel libftdi-devel check-devel

OpenSuSE (12.2):

$ zypper install git gcc make autoconf automake libtool pkg-config glib2-devel \
  libzip-devel libusb-1_0-devel libftdi1-devel check python3-devel

Building:

$ git clone git://sigrok.org/libsigrok
$ cd libsigrok
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

libsigrokdecode

Installing the requirements:

Example on Debian/Ubuntu (please check your respective distro's package manager tool if you use other distros):

$ sudo apt-get install git-core gcc make autoconf automake libtool pkg-config libglib2.0-dev python3-dev

Fedora (18, 19, 20):

$ sudo yum install git gcc make autoconf automake libtool pkgconfig glib2-devel python3-devel check-devel

Building:

$ git clone git://sigrok.org/libsigrokdecode
$ cd libsigrokdecode
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

sigrok-cli

Installing the requirements:

Example on Debian/Ubuntu (please check your respective distro's package manager tool if you use other distros):

$ sudo apt-get install git-core gcc make autoconf automake libtool pkg-config libglib2.0-dev

Fedora (18, 19):

$ sudo yum install git gcc make autoconf automake libtool pkgconfig glib2-devel

OpenSuse (13.1):

$ zypper install git gcc make autoconf automake libtool pkgconfig glib2-devel

Building:

$ git clone git://sigrok.org/sigrok-cli
$ cd sigrok-cli
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

PulseView

Installing the requirements:

Example on Debian/Ubuntu (please check your respective distro's package manager tool if you use other distros):

$ sudo apt-get install git-core g++ make cmake libtool pkg-config \
  libglib2.0-dev libqt4-dev libboost-test-dev \
  libboost-filesystem-dev libboost-system-dev

Fedora (18, 19):

$ sudo yum install git gcc cmake libtool pkgconfig glib2-devel \
  boost-devel qt-devel boost-devel

Building:

$ git clone git://sigrok.org/pulseview
$ cd pulseview
$ cmake .
$ make
$ sudo make install

Common problems

If you get this error:

sigrok-cli: error while loading shared libraries: libsigrok.so.0: cannot open shared object file: No such file or directory

Then you have to rebuild the links to your shared libraries:

$ sudo ldconfig /usr/local/lib