Difference between revisions of "OpenBSD"

From sigrok
Jump to navigation Jump to search
(OpenBSD instructions)
 
(Update OpenBSD build instructions.)
 
(19 intermediate revisions by 3 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 6.4; older versions may or may not have the required libs/versions to build sigrok.


== Distribution packages ==
== Distribution packages ==


There are no OpenBSD packages/ports yet, contributors welcome!
OpenBSD packages/ports are available, see the [[Downloads#Binaries_and_distribution_packages|Downloads]] page.


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


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


* git
  # '''pkg_add git autoconf%2.69 automake%1.15 libtool glib2 libzip libftdi check'''
* 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'''


'''Building:'''
'''Building:'''
Line 32: Line 19:
  $ '''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'''
  $ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 ./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''doas make install'''


=== 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 git autoconf%2.69 automake%1.15 libtool glib2 python%3'''


'''Building:'''
'''Building:'''
Line 58: Line 34:
  $ '''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'''
  $ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 ./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''doas make install'''


=== sigrok-cli ===
=== sigrok-cli ===


'''Requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''
# '''pkg_add git autoconf%2.69 automake%1.15 libtool glib2'''


* git
'''Building:'''
* 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:'''
$ '''git clone git://sigrok.org/sigrok-cli'''
$ '''cd sigrok-cli'''
$ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 ./autogen.sh'''
$ '''./configure'''
$ '''make'''
$ '''doas make install'''
 
=== PulseView ===
 
'''Installing the [[Building#Build_requirements|requirements]]:'''


  $ '''pkg_add -r git autoconf automake libtool glib2'''
  # '''pkg_add git libtool cmake glib2 qt4 boost'''


'''Building:'''
'''Building:'''


  $ '''git clone git://sigrok.org/sigrok-cli'''
  $ '''git clone git://sigrok.org/pulseview'''
  $ '''cd sigrok-cli'''
  $ '''cd pulseview'''
  $ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12 ./autogen.sh'''
  $ '''cmake .'''
$ '''./configure'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''doas make install'''
 
Hint: if something goes wrong, you can see what cmake is doing by running
$ '''cmake VERBOSE=1'''

Latest revision as of 09:25, 26 October 2018

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

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

Distribution packages

OpenBSD packages/ports are available, see the Downloads page.

Building

libsigrok

Installing the requirements:

# pkg_add git autoconf%2.69 automake%1.15 libtool glib2 libzip libftdi check

Building:

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

libsigrokdecode

Installing the requirements:

# pkg_add git autoconf%2.69 automake%1.15 libtool glib2 python%3

Building:

$ git clone git://sigrok.org/libsigrokdecode
$ cd libsigrokdecode
$ AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 ./autogen.sh
$ ./configure
$ make
$ doas make install

sigrok-cli

Installing the requirements:

# pkg_add git autoconf%2.69 automake%1.15 libtool glib2

Building:

$ git clone git://sigrok.org/sigrok-cli
$ cd sigrok-cli
$ AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 ./autogen.sh
$ ./configure
$ make
$ doas make install

PulseView

Installing the requirements:

# pkg_add git libtool cmake glib2 qt4 boost

Building:

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

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

$ cmake VERBOSE=1