Difference between revisions of "Linux"
Uwe Hermann (talk | contribs) m |
Uwe Hermann (talk | contribs) m |
||
Line 1: | Line 1: | ||
[[File:Sigrok-gtk-0.1.png|thumb|320px|right|sigrok-gtk 0.1.0 on Linux]] | [[File:Sigrok-gtk-0.1.png|thumb|320px|right|sigrok-gtk 0.1.0 on Linux]] | ||
This page describes how to build/install sigrok on Linux. | This page describes how to build/install the sigrok subprojects on Linux. | ||
== Distribution packages == | == Distribution packages == | ||
Line 13: | Line 13: | ||
'''Installing the [[Building#Build_requirements|requirements]]:''' | '''Installing the [[Building#Build_requirements|requirements]]:''' | ||
Debian/Ubuntu: | 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 \''' | $ '''sudo apt-get install git-core gcc make autoconf automake libtool pkg-config \''' | ||
'''libglib2.0-dev libzip-dev libusb-1.0-0-dev libftdi-dev libudev-dev libasound2-dev''' | '''libglib2.0-dev libzip-dev libusb-1.0-0-dev libftdi-dev libudev-dev libasound2-dev check''' | ||
Fedora (18): | Fedora (18): | ||
$ '''yum install git gcc make autoconf automake libtool pkgconfig glib2-devel libzip-devel libusb1-devel libftdi-devel libudev-devel alsa-lib-devel''' | $ '''yum install git gcc make autoconf automake libtool pkgconfig glib2-devel libzip-devel libusb1-devel libftdi-devel libudev-devel alsa-lib-devel check''' | ||
OpenSuSE (12.2): | OpenSuSE (12.2): | ||
Line 33: | Line 33: | ||
$ '''./configure''' | $ '''./configure''' | ||
$ '''make''' | $ '''make''' | ||
$ '''make install''' | $ '''sudo make install''' | ||
=== libsigrokdecode === | === libsigrokdecode === | ||
Line 39: | Line 39: | ||
'''Installing the [[Building#Build_requirements|requirements]]:''' | '''Installing the [[Building#Build_requirements|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''' | |||
'''Building:''' | '''Building:''' | ||
Line 48: | Line 50: | ||
$ '''./configure''' | $ '''./configure''' | ||
$ '''make''' | $ '''make''' | ||
$ '''make install''' | $ '''sudo make install''' | ||
=== sigrok-cli === | === sigrok-cli === | ||
Line 54: | Line 56: | ||
'''Installing the [[Building#Build_requirements|requirements]]:''' | '''Installing the [[Building#Build_requirements|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''' | |||
'''Building:''' | '''Building:''' | ||
Line 63: | Line 67: | ||
$ '''./configure''' | $ '''./configure''' | ||
$ '''make''' | $ '''make''' | ||
$ '''make install''' | $ '''sudo make install''' | ||
=== PulseView === | === PulseView === | ||
Line 69: | Line 73: | ||
'''Installing the [[Building#Build_requirements|requirements]]:''' | '''Installing the [[Building#Build_requirements|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-dev libboost-test-dev libboost-thread-dev libboost-system-dev''' | |||
'''Building:''' | '''Building:''' | ||
Line 78: | Line 85: | ||
$ '''make''' | $ '''make''' | ||
$ '''sudo make install''' | $ '''sudo make install''' | ||
<!-- | |||
=== sigrok-gtk === | === sigrok-gtk === | ||
Line 86: | Line 92: | ||
'''Installing the [[Building#Build_requirements|requirements]]:''' | '''Installing the [[Building#Build_requirements|requirements]]:''' | ||
TODO. | |||
'''Building:''' | '''Building:''' | ||
Line 95: | Line 101: | ||
$ '''./configure''' | $ '''./configure''' | ||
$ '''make''' | $ '''make''' | ||
$ '''make install''' | $ '''sudo make install''' | ||
=== sigrok-qt === | === sigrok-qt === | ||
Line 103: | Line 109: | ||
'''Installing the [[Building#Build_requirements|requirements]]:''' | '''Installing the [[Building#Build_requirements|requirements]]:''' | ||
TODO. | |||
'''Building:''' | '''Building:''' | ||
Line 111: | Line 117: | ||
$ '''qmake-qt4''' | $ '''qmake-qt4''' | ||
$ '''make''' | $ '''make''' | ||
$ '''make install''' | $ '''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. | 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 08:32, 3 May 2013
This page describes how to build/install the sigrok subprojects on Linux.
Distribution packages
See Downloads.
Building
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 make autoconf automake libtool pkg-config \ libglib2.0-dev libzip-dev libusb-1.0-0-dev libftdi-dev libudev-dev libasound2-dev check
Fedora (18):
$ yum install git gcc make autoconf automake libtool pkgconfig glib2-devel libzip-devel libusb1-devel libftdi-devel libudev-devel alsa-lib-devel check
OpenSuSE (12.2):
$ zypper install git gcc make autoconf automake libtool pkg-config glib2-devel libzip-devel libusb-1_0-devel libftdi1-devel libudev-devel alsa-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
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
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-dev libboost-test-dev libboost-thread-dev libboost-system-dev
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