Difference between revisions of "FreeBSD"

From sigrok
Jump to navigation Jump to search
m (Updates.)
m
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This page describes how to build/install sigrok 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 ==


There are no FreeBSD packages/ports yet, contributors welcome!
FreeBSD packages/ports are available, see the [[Downloads#Binaries_and_distribution_packages|Downloads]] page.


== Building ==
== Building ==
Line 11: Line 11:
=== libsigrok ===
=== libsigrok ===


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


* git
$ '''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'''
* gcc (>= 4.0)
* autoconf >= 2.63
* automake >= 1.11
* libtool
* pkg-config >= 0.22
* libglib >= 2.28.0
* libusb-1.0 (this is an integral part of FreeBSD, not an extra package/library, though)
* libzip >= 0.8
* libftdi >= 0.16 (for some logic analyzer hardware)
 
'''Installing the requirements:'''
 
$ '''pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20 libzip libftdi'''


'''Building:'''
'''Building:'''
Line 33: 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 ===


'''Requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''
 
* git
* gcc (>= 4.0)
* autoconf >= 2.63
* automake >= 1.11
* libtool
* pkg-config >= 0.22
* libglib >= 2.24.0
* Python >= 3.0
 
'''Installing the requirements:'''


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


'''Building:'''
'''Building:'''
Line 61: Line 37:
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''sudo make install'''


=== sigrok-cli ===
=== sigrok-firmware-fx2lafw ===


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


* git
$ '''pkg install sdcc'''
* gcc (>= 4.0)
* autoconf >= 2.63
* automake >= 1.11
* libtool
* pkg-config >= 0.22
* libglib >= 2.28.0
* libsigrok >= 0.2.0
* libsigrokdecode >= 0.1.0


'''Installing the requirements:'''
'''Building:'''


  $ '''pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20'''
  $ '''git clone git://sigrok.org/sigrok-firmware-fx2lafw'''
$ '''cd sigrok-firmware-fx2lafw'''
$ '''./autogen.sh'''
$ '''./configure'''
$ '''make'''
$ '''sudo make install'''
 
=== sigrok-cli ===


'''Building:'''
'''Building:'''
Line 88: Line 63:
  $ '''./configure'''
  $ '''./configure'''
  $ '''make'''
  $ '''make'''
  $ '''make install'''
  $ '''sudo make install'''


=== PulseView ===
=== PulseView ===


'''Requirements:'''
'''Installing the [[Building#Build_requirements|requirements]]:'''
 
* git
* g++
* libtool
* pkg-config >= 0.22
* cmake >= 2.6
* libglib >= 2.28.0
* Qt >= 4.5
* libboost >= 1.45 (including the following libs)
** libboost-sytem
** libboost-thread
* libsigrok >= 0.2.0
* libsigrokdecode >= 0.1.0
 
'''Installing the requirements:'''


  $ '''pkg_add -r git gcc libtool pkg-config cmake glib20 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 118: Line 78:
  $ '''make'''
  $ '''make'''
  $ '''sudo make install'''
  $ '''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
* libglib >= 2.28.0
* GTK+
* libsigrok >= 0.1.0
'''Installing the requirements:'''
$ '''pkg_add -r git gcc autoconf268 automake111 libtool pkg-config glib20 gtk20'''


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


  $ '''git clone git://sigrok.org/sigrok-gtk'''
  $ '''cmake VERBOSE=1'''
$ '''cd sigrok-gtk'''
$ '''./autogen.sh'''
$ '''./configure'''
$ '''make'''
$ '''make install'''
 
=== sigrok-qt ===
 
'''Note:''' The Qt GUI is not yet usable!
 
'''Requirements:'''
 
* git
* g++
* libtool
* pkg-config >= 0.22
* libglib >= 2.28.0
* Qt >= 4.5
* libsigrok >= 0.2.0
* libsigrokdecode >= 0.1.0
 
'''Installing the 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'''

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