Difference between revisions of "OpenBSD"

From sigrok
Jump to navigation Jump to search
m (→‎PulseView: Typo.)
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page describes how to build/install sigrok on [http://www.openbsd.org OpenBSD].
This page describes how to build/install the sigrok subprojects on [http://www.openbsd.org OpenBSD].


The instructions were tested on OpenBSD 5.2, older versions may or may not have the required libs/versions to build sigrok.
The instructions were tested on OpenBSD 5.2, older versions may or may not have the required libs/versions to build sigrok.
Line 5: Line 5:
== Distribution packages ==
== Distribution packages ==


There are no OpenBSD packages/ports yet, contributors welcome!
There are no official OpenBSD packages/ports yet.
 
Work-in-progress port can be found here until it enters the official ports distribution:
http://people.su.se/~jj/obsd/sigrok.tgz
 
Tested on i386 and amd64. I could put up precompiled packages for those two platforms if requested.


== Building ==
== Building ==
Line 11: Line 16:
=== libsigrok ===
=== libsigrok ===


'''Requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''
 
* git
* gcc (>= 4.0)
* autoconf >= 2.63
* automake >= 1.11
* libtool
* pkg-config >= 0.22 (this is an integral part of OpenBSD, not an extra package, apparently)
* libglib >= 2.28.0
* libusb-1.0 (this is an integral part of OpenBSD, not an extra package/library, apparently)
* libzip >= 0.8
* libftdi >= 0.16 (for some logic analyzer hardware)
 
'''Installing the requirements:'''


  $ '''pkg_add -r git autoconf automake libtool glib2 libzip libftdi'''
  $ '''pkg_add -i git autoconf automake libtool glib2 libzip libftdi check'''
Select autoconf and automake versions with the major versions as listed below (2.69 and 1.12) when asked.


'''Building:'''
'''Building:'''
Line 32: Line 25:
  $ '''git clone git://sigrok.org/libsigrok'''
  $ '''git clone git://sigrok.org/libsigrok'''
  $ '''cd libsigrok'''
  $ '''cd libsigrok'''
  $ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12 ./autogen.sh'''
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12'''
$ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
Line 39: Line 33:
=== libsigrokdecode ===
=== libsigrokdecode ===


'''Requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''
 
* git
* gcc (>= 4.0)
* autoconf >= 2.63
* automake >= 1.11
* libtool
* pkg-config >= 0.22 (this is an integral part of OpenBSD, not an extra package, apparently)
* libglib >= 2.24.0
* Python >= 3.0
 
'''Installing the requirements:'''


  $ '''pkg_add -r git autoconf automake libtool glib2 python'''
  $ '''pkg_add -i git autoconf automake libtool glib2 python'''
Select Python version 3.x when asked.


'''Building:'''
'''Building:'''
Line 58: Line 42:
  $ '''git clone git://sigrok.org/libsigrokdecode'''
  $ '''git clone git://sigrok.org/libsigrokdecode'''
  $ '''cd libsigrokdecode'''
  $ '''cd libsigrokdecode'''
  $ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12 ./autogen.sh'''
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12''' (if you haven't exported those vars already)
$ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
Line 65: Line 50:
=== sigrok-cli ===
=== sigrok-cli ===


'''Requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''
 
* git
* gcc (>= 4.0)
* autoconf >= 2.63
* automake >= 1.11
* libtool
* pkg-config >= 0.22 (this is an integral part of OpenBSD, not an extra package, apparently)
* libglib >= 2.28.0
* libsigrok >= 0.2.0
* libsigrokdecode >= 0.1.0
 
'''Installing the requirements:'''
 
  $ '''pkg_add -r git autoconf automake libtool glib2'''
  $ '''pkg_add -r git autoconf automake libtool glib2'''


Line 85: Line 58:
  $ '''git clone git://sigrok.org/sigrok-cli'''
  $ '''git clone git://sigrok.org/sigrok-cli'''
  $ '''cd sigrok-cli'''
  $ '''cd sigrok-cli'''
  $ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12 ./autogen.sh'''
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12''' (if you haven't exported them already)'''
$ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
Line 94: Line 68:
'''Note:''' PulseView does not build on OpenBSD at the moment, this is being investigated.
'''Note:''' PulseView does not build on OpenBSD at the moment, this is being investigated.


'''Requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''
 
* git
* g++ (>= 4.0)
* libtool
* pkg-config >= 0.22 (this is an integral part of OpenBSD, not an extra package, apparently)
* cmake >= 2.6
* libglib >= 2.28.0
* Qt >= 4.5
* libboost >= 1.46 (including the following libs)
** libboost-sytem
** libboost-thread
* libsigrok >= 0.2.0
* libsigrokdecode >= 0.1.0
 
'''Installing the requirements:'''


  $ '''pkg_add -r git libtool cmake glib2 qt4 boost-1.42.0p14'''
  $ '''pkg_add -i git libtool cmake glib2 qt4 boost-1.42.0p14'''


'''Building:'''
'''Building:'''
Line 120: Line 79:
  $ '''make'''
  $ '''make'''
  $ '''sudo make install'''
  $ '''sudo make install'''
$ '''cd ..'''


Hint: if something goes wrong, you can see what cmake is doing by running
$ '''cmake VERBOSE=1'''
<!--
=== sigrok-gtk ===
=== sigrok-gtk ===


'''Note:''' The GTK+ GUI is not yet usable!
'''Note:''' [[sigrok-gtk]] is not yet usable!
 
'''Requirements:'''
 
* git
* gcc (>= 4.0)
* autoconf >= 2.63
* automake >= 1.11
* libtool
* pkg-config >= 0.22 (this is an integral part of OpenBSD, not an extra package, apparently)
* libglib >= 2.28.0
* GTK+
* libsigrok >= 0.2.0


'''Installing the requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''


  $ '''pkg_add -r git autoconf automake libtool glib2 gtk+2'''
  $ '''pkg_add -i git autoconf automake libtool glib2 gtk+2'''


'''Building:'''
'''Building:'''
Line 146: Line 96:
  $ '''git clone git://sigrok.org/sigrok-gtk'''
  $ '''git clone git://sigrok.org/sigrok-gtk'''
  $ '''cd sigrok-gtk'''
  $ '''cd sigrok-gtk'''
  $ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12 ./autogen.sh'''
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12''' (if you haven't exported them already)'''
$''' ./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
Line 153: Line 104:
=== sigrok-qt ===
=== sigrok-qt ===


'''Note:''' The Qt GUI is not yet usable!
'''Note:''' [[sigrok-qt]] is not yet usable!
 
'''Requirements:'''
 
* git
* g++
* libtool
* pkg-config >= 0.22 (this is an integral part of OpenBSD, not an extra package, apparently)
* libglib >= 2.28.0
* Qt >= 4.5
* libsigrok >= 0.2.0
* libsigrokdecode >= 0.1.0


'''Installing the requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''


  $ '''pkg_add -r git libtool glib2 qt4'''
  $ '''pkg_add -i git libtool glib2 qt4'''


'''Building:'''
'''Building:'''
Line 177: Line 117:
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''make install'''
-->

Revision as of 20:39, 4 August 2016

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

The instructions were tested on OpenBSD 5.2, older versions may or may not have the required libs/versions to build sigrok.

Distribution packages

There are no official OpenBSD packages/ports yet.

Work-in-progress port can be found here until it enters the official ports distribution: http://people.su.se/~jj/obsd/sigrok.tgz

Tested on i386 and amd64. I could put up precompiled packages for those two platforms if requested.

Building

libsigrok

Installing the requirements:

$ pkg_add -i git autoconf automake libtool glib2 libzip libftdi check
Select autoconf and automake versions with the major versions as listed below (2.69 and 1.12) when asked.

Building:

$ git clone git://sigrok.org/libsigrok
$ cd libsigrok
$ export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12
$ ./autogen.sh
$ ./configure
$ make
$ make install

libsigrokdecode

Installing the requirements:

$ pkg_add -i git autoconf automake libtool glib2 python
Select Python version 3.x when asked.

Building:

$ git clone git://sigrok.org/libsigrokdecode
$ cd libsigrokdecode
$ export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12 (if you haven't exported those vars already)
$ ./autogen.sh
$ ./configure
$ make
$ make install

sigrok-cli

Installing the requirements:

$ pkg_add -r git autoconf automake libtool glib2

Building:

$ git clone git://sigrok.org/sigrok-cli
$ cd sigrok-cli
$ export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12 (if you haven't exported them already)
$ ./autogen.sh
$ ./configure
$ make
$ make install

PulseView

Note: PulseView does not build on OpenBSD at the moment, this is being investigated.

Installing the requirements:

$ pkg_add -i git libtool cmake glib2 qt4 boost-1.42.0p14

Building:

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

Hint: if something goes wrong, you can see what cmake is doing by running

$ cmake VERBOSE=1