Difference between revisions of "FreeBSD"

From sigrok
Jump to navigation Jump to search
m (Added autoconf-archive to the list of packages)
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page describes how to build/install the sigrok subprojects on [http://www.freebsd.org FreeBSD].
This page describes how to build/install the sigrok subprojects on [http://www.freebsd.org FreeBSD].


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 10.3, older versions may or may not have the required libs/versions to build sigrok.


== Distribution packages ==
== Distribution packages ==
Line 7: Line 7:
FreeBSD packages/ports are available, see the [[Downloads#Binaries_and_distribution_packages|Downloads]] page.
FreeBSD packages/ports are available, see the [[Downloads#Binaries_and_distribution_packages|Downloads]] page.


== Installing the build environment ==
== Building ==


On FreeBSD 9.x:
=== libsigrok ===


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


=== libsigrok ===
$ '''pkg install git autoconf autoconf-archive automake libtool pkgconf glib libzip libftdi1 libcheck doxygen swig30 ruby python py27-numpy py27-setuptools py27-gobject3 openjdk-7.101.00_1,1'''


'''Building:'''
'''Building:'''
Line 26: Line 20:
  $ '''cd libsigrok'''
  $ '''cd libsigrok'''
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure --with-jni-include-path=/usr/local/openjdk7/include'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''sudo make install'''


=== libsigrokdecode ===
=== libsigrokdecode ===


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


  $ '''pkg install python3'''
  $ '''pkg install python3'''
Line 45: Line 37:
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''sudo make install'''
 
=== sigrok-firmware-fx2lafw ===
 
'''Installing the [[Building#Build_requirements|requirements]]:'''
 
$ '''pkg install sdcc'''
 
'''Building:'''
 
$ '''git clone git://sigrok.org/sigrok-firmware-fx2lafw'''
$ '''cd sigrok-firmware-fx2lafw'''
$ '''./autogen.sh'''
$ '''./configure'''
$ '''make'''
$ '''sudo make install'''


=== sigrok-cli ===
=== sigrok-cli ===
Line 56: Line 63:
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''sudo make install'''


=== PulseView ===
=== PulseView ===
Line 62: Line 69:
'''Installing the [[Building#Build_requirements|requirements]]:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''


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


'''Building:'''
'''Building:'''
Line 71: Line 78:
  $ '''make'''
  $ '''make'''
  $ '''sudo make install'''
  $ '''sudo make install'''
  $ '''cd ..'''
 
'''Hint''': If something goes wrong, you can see what cmake is doing by running:
 
  $ '''cmake VERBOSE=1'''

Latest revision as of 21:52, 16 August 2016

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

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

Distribution packages

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

Building

libsigrok

Installing the requirements:

$ pkg install git autoconf autoconf-archive automake libtool pkgconf glib libzip libftdi1 libcheck doxygen swig30 ruby python py27-numpy py27-setuptools py27-gobject3 openjdk-7.101.00_1,1

Building:

$ git clone git://sigrok.org/libsigrok
$ cd libsigrok
$ ./autogen.sh
$ ./configure --with-jni-include-path=/usr/local/openjdk7/include
$ make
$ sudo make install

libsigrokdecode

Installing the requirements:

$ pkg install python3

Building:

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

sigrok-firmware-fx2lafw

Installing the requirements:

$ pkg install sdcc

Building:

$ git clone git://sigrok.org/sigrok-firmware-fx2lafw
$ cd sigrok-firmware-fx2lafw
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

sigrok-cli

Building:

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

PulseView

Installing the requirements:

$ pkg install 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

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

$ cmake VERBOSE=1