Difference between revisions of "OpenBSD"

From sigrok
Jump to navigation Jump to search
(Bring back explicit per-project build dependencies.)
m
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 13: Line 13:
'''Installing the [[Building#Build_requirements|requirements]]:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''


  $ '''pkg_add -i 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.
  Select autoconf and automake versions with the major versions as listed below (2.69 and 1.12) when asked.


Line 20: Line 20:
  $ '''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
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12'''
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
Line 37: Line 37:
  $ '''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)
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12''' (if you haven't exported those vars already)
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
Line 53: Line 53:
  $ '''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)'''
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12''' (if you haven't exported them already)'''
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
Line 74: Line 74:
  $ '''make'''
  $ '''make'''
  $ '''sudo make install'''
  $ '''sudo make install'''
$ '''cd ..'''
<!--
 
=== sigrok-gtk ===
=== sigrok-gtk ===


Line 88: Line 87:
  $ '''git clone git://sigrok.org/sigrok-gtk'''
  $ '''git clone git://sigrok.org/sigrok-gtk'''
  $ '''cd sigrok-gtk'''
  $ '''cd sigrok-gtk'''
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12 (if you haven't exported them already)'''
  $ '''export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.12''' (if you haven't exported them already)'''
  $''' ./autogen.sh'''
  $''' ./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
Line 109: Line 108:
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''make install'''
-->

Revision as of 13:06, 3 May 2013

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 OpenBSD packages/ports yet, contributors welcome!

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