Difference between revisions of "FreeBSD"

From sigrok
Jump to navigation Jump to search
m
(Update FreeBSD build instructions.)
Line 5: Line 5:
There are no FreeBSD packages/ports yet, contributors welcome!
There are no FreeBSD packages/ports yet, contributors welcome!


== Building from source ==
== Getting the source ==
 
$ '''git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok'''
$ '''cd sigrok'''
 
== Building libsigrok ==


=== Requirements ===
=== Requirements ===


* git (for cloning the source code repository)
* git
* gcc, g++, make, ...
* gcc (>= 4.0)
* autoconf, automake, libtool, pkg-config
* make
* autoconf >= 2.63
* automake >= 1.11
* libtool
* pkg-config >= 0.22
* [http://library.gnome.org/devel/glib/unstable/ libglib] >= 2.22.0
* [http://library.gnome.org/devel/glib/unstable/ libglib] >= 2.22.0
* libusb-1.0 (this is an integral part of FreeBSD, not an extra package/library, though)
* libusb-1.0 (this is an integral part of FreeBSD, not an extra package/library, though)
* [http://nih.at/libzip/ libzip] >= 0.8
* [http://nih.at/libzip/ libzip] >= 0.8
* [http://www.intra2net.com/en/developer/libftdi/ libftdi] (optional, only required for some devices)
* zlib >= 1.2.3.1
* [http://www.python.org Python] >= 2.5 (optional, only required for protocol decoders)
* [http://www.intra2net.com/en/developer/libftdi/ libftdi >= 0.16] (for some logic analyzer hardware)
* [http://qt.nokia.com Qt + Qt Creator] >= 4.5 (optional, only required for building/editing the GUI)


=== Installing the build-dependencies ===
=== Installing the requirements ===


  $ '''pkg_add -r git autoconf262 automake110 libtool pkg-config glib20 libzip libftdi qt4 qt4-qmake qt4-moc qt4-rcc qt4-uic'''
  $ '''pkg_add -r git autoconf268 automake111 libtool pkg-config glib20 libzip libftdi'''


=== Building ===
=== Building ===


$ '''git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok'''
  $ '''cd libsigrok'''
  $ '''cd sigrok'''
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
  $ '''./configure'''
  $ '''./configure'''
Line 32: Line 39:
  $ '''make install'''
  $ '''make install'''


Then, for building the [[GUI]] ('''Note:''' The GUI is not yet usable!):
== Building libsigrokdecode ==
 
== Building sigrok-cli ==
 
== Building sigrok-gtk ==


  $ '''cd gui'''
== Building sigrok-qt ==
 
=== Requirements ===
 
=== Installing the requirements ===
 
$ '''pkg_add -r git libtool pkg-config glib20 qt4 qt4-qmake qt4-moc qt4-rcc qt4-uic'''
 
=== Building ===
 
For building [[GUI|sigrok-qt]] ('''Note:''' The Qt GUI is not yet usable!):
 
  $ '''cd sigrok-qt'''
  $ '''qmake-qt4'''
  $ '''qmake-qt4'''
  $ '''make'''
  $ '''make'''
$ '''make install'''

Revision as of 23:35, 10 February 2012

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

Distribution packages

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

Getting the source

$ git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok
$ cd sigrok

Building libsigrok

Requirements

  • git
  • gcc (>= 4.0)
  • make
  • autoconf >= 2.63
  • automake >= 1.11
  • libtool
  • pkg-config >= 0.22
  • libglib >= 2.22.0
  • libusb-1.0 (this is an integral part of FreeBSD, not an extra package/library, though)
  • libzip >= 0.8
  • zlib >= 1.2.3.1
  • libftdi >= 0.16 (for some logic analyzer hardware)

Installing the requirements

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

Building

$ cd libsigrok
$ ./autogen.sh
$ ./configure
$ make
$ make install

Building libsigrokdecode

Building sigrok-cli

Building sigrok-gtk

Building sigrok-qt

Requirements

Installing the requirements

$ pkg_add -r git libtool pkg-config glib20 qt4 qt4-qmake qt4-moc qt4-rcc qt4-uic

Building

For building sigrok-qt (Note: The Qt GUI is not yet usable!):

$ cd sigrok-qt
$ qmake-qt4
$ make
$ make install