Difference between revisions of "OpenBSD"

From sigrok
Jump to navigation Jump to search
(Update OpenBSD build instructions.)
 
Line 1: Line 1:
This page describes how to build/install the sigrok subprojects 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 official OpenBSD packages/ports yet.
OpenBSD packages/ports are available, see the [[Downloads#Binaries_and_distribution_packages|Downloads]] page.
 
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 18: Line 13:
'''Installing the [[Building#Build_requirements|requirements]]:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''


  $ '''pkg_add -i git autoconf automake libtool glib2 libzip libftdi check'''
  # '''pkg_add git autoconf%2.69 automake%1.15 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 25: Line 19:
  $ '''git clone git://sigrok.org/libsigrok'''
  $ '''git clone git://sigrok.org/libsigrok'''
  $ '''cd libsigrok'''
  $ '''cd libsigrok'''
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12'''
  $ '''AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 ./autogen.sh'''
$ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''doas make install'''


=== libsigrokdecode ===
=== libsigrokdecode ===
Line 35: Line 28:
'''Installing the [[Building#Build_requirements|requirements]]:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''


  $ '''pkg_add -i git autoconf automake libtool glib2 python'''
  # '''pkg_add git autoconf%2.69 automake%1.15 libtool glib2 python%3'''
Select Python version 3.x when asked.


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


=== sigrok-cli ===
=== sigrok-cli ===
Line 52: Line 43:
'''Installing the [[Building#Build_requirements|requirements]]:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''
  $ '''pkg_add -r git autoconf automake libtool glib2'''
  # '''pkg_add git autoconf%2.69 automake%1.15 libtool glib2'''


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


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


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


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


'''Building:'''
'''Building:'''
Line 78: Line 66:
  $ '''cmake .'''
  $ '''cmake .'''
  $ '''make'''
  $ '''make'''
  $ '''sudo make install'''
  $ '''doas make install'''


Hint: if something goes wrong, you can see what cmake is doing by running
Hint: if something goes wrong, you can see what cmake is doing by running
  $ '''cmake VERBOSE=1'''
  $ '''cmake VERBOSE=1'''
<!--
=== sigrok-gtk ===
'''Note:''' [[sigrok-gtk]] is not yet usable!
'''Installing the [[Building#Build_requirements|requirements]]:'''
$ '''pkg_add -i git autoconf automake libtool glib2 gtk+2'''
'''Building:'''
$ '''git clone git://sigrok.org/sigrok-gtk'''
$ '''cd sigrok-gtk'''
$ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12''' (if you haven't exported them already)'''
$''' ./autogen.sh'''
$ '''./configure'''
$ '''make'''
$ '''make install'''
=== sigrok-qt ===
'''Note:''' [[sigrok-qt]] is not yet usable!
'''Installing the [[Building#Build_requirements|requirements]]:'''
$ '''pkg_add -i git libtool glib2 qt4'''
'''Building:'''
$ '''git clone git://sigrok.org/sigrok-qt'''
$ '''cd sigrok-qt'''
$ '''qmake4'''
$ '''make'''
$ '''make install'''
-->

Latest revision as of 08: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