Difference between revisions of "FreeBSD"

From sigrok
Jump to navigation Jump to search
Line 2: Line 2:


The instructions were tested on FreeBSD 9.0, older versions may or may not have the required libs/versions to build sigrok.
The instructions were tested on FreeBSD 9.0, older versions may or may not have the required libs/versions to build sigrok.
== Installing the build environment ==
On FreeBSD 9.x:
$ '''pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20 libzip libftdi'''
On FreeBSD 10.0 or later:
$ '''pkg install git gcc autoconf automake libtool pkgconf glib libzip libftdi'''


== Distribution packages ==
== Distribution packages ==
Line 10: Line 19:


=== libsigrok ===
=== libsigrok ===
'''Installing the [[Building#Build_requirements|requirements]]:'''
On FreeBSD 9.x:
$ '''pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20 libzip libftdi'''
On FreeBSD 10.0 or later:
$ '''pkg install git gcc autoconf automake libtool pkgconf glib libzip libftdi'''


'''Building:'''
'''Building:'''
Line 32: Line 31:
=== libsigrokdecode ===
=== libsigrokdecode ===


'''Installing the [[Building#Build_requirements|requirements]]:'''
$ '''pkg_add -r python3'''
 
or


  $ '''pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20 python31'''
  $ '''pkg install python3'''


'''Building:'''
'''Building:'''
Line 46: Line 47:


=== sigrok-cli ===
=== sigrok-cli ===
'''Installing the [[Building#Build_requirements|requirements]]:'''
$ '''pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20'''


'''Building:'''
'''Building:'''
Line 64: Line 61:
'''Installing the [[Building#Build_requirements|requirements]]:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''


  $ '''pkg_add -r git gcc libtool pkg-config cmake glib20 qt4 qt4-qmake qt4-moc qt4-rcc qt4-uic boost-libs'''
  $ '''pkg_add -r cmake qt4 qt4-qmake qt4-moc qt4-rcc qt4-uic boost-libs'''


'''Building:'''
'''Building:'''
Line 74: Line 71:
  $ '''sudo make install'''
  $ '''sudo make install'''
  $ '''cd ..'''
  $ '''cd ..'''
<!--
=== sigrok-gtk ===
'''Note:''' [[sigrok-gtk]] is not yet usable!
'''Installing the [[Building#Build_requirements|requirements]]:'''
$ '''pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20 gtk20'''
'''Building:'''
$ '''git clone git://sigrok.org/sigrok-gtk'''
$ '''cd sigrok-gtk'''
$ '''./autogen.sh'''
$ '''./configure'''
$ '''make'''
$ '''make install'''
=== sigrok-qt ===
'''Note:''' [[sigrok-qt]] is not yet usable!
'''Installing the [[Building#Build_requirements|requirements]]:'''
$ '''pkg_add -r git gcc libtool pkg-config glib20 qt4 qt4-qmake qt4-moc qt4-rcc qt4-uic'''
'''Building:'''
$ '''git clone git://sigrok.org/sigrok-qt'''
$ '''cd sigrok-qt'''
$ '''qmake-qt4'''
$ '''make'''
$ '''make install'''
-->

Revision as of 21:35, 6 April 2014

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

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

Installing the build environment

On FreeBSD 9.x:

$ pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20 libzip libftdi

On FreeBSD 10.0 or later:

$ pkg install git gcc autoconf automake libtool pkgconf glib libzip libftdi

Distribution packages

There are no FreeBSD packages/ports yet, contributors welcome!

Building

libsigrok

Building:

$ git clone git://sigrok.org/libsigrok
$ cd libsigrok
$ ./autogen.sh
$ ./configure
$ make
$ make install

libsigrokdecode

$ pkg_add -r python3

or

$ pkg install python3

Building:

$ git clone git://sigrok.org/libsigrokdecode
$ cd libsigrokdecode
$ ./autogen.sh
$ ./configure
$ make
$ make install

sigrok-cli

Building:

$ git clone git://sigrok.org/sigrok-cli
$ cd sigrok-cli
$ ./autogen.sh
$ ./configure
$ make
$ make install

PulseView

Installing the requirements:

$ pkg_add -r cmake qt4 qt4-qmake qt4-moc qt4-rcc qt4-uic boost-libs

Building:

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