OpenBSD

From sigrok
Revision as of 19:03, 19 January 2013 by Uwe Hermann (talk | contribs) (→‎PulseView: Typo.)
Jump to navigation Jump to search

This page describes how to build/install sigrok 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

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

Building:

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

libsigrokdecode

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

Building:

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

sigrok-cli

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

Building:

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

PulseView

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

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

Building:

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

sigrok-gtk

Note: The GTK+ GUI 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:

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

Building:

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

sigrok-qt

Note: The Qt GUI 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:

$ pkg_add -r git libtool glib2 qt4

Building:

$ git clone git://sigrok.org/sigrok-qt
$ cd sigrok-qt
$ qmake4
$ make
$ make install