Difference between revisions of "Mac OS X"

From sigrok
Jump to navigation Jump to search
(update homebrew install instructions)
Line 7: Line 7:
=== Requirements ===
=== Requirements ===


Install Homebrew. http://brew.sh/
Install [http://brew.sh homebrew]


Tap sigrok:
Tap sigrok:


$ '''brew tap rene-dev/sigrok'''
$ '''brew tap rene-dev/sigrok'''


You cannot mix stable and unstable.
If you want pulseview, you must install unstable


=== Unstable ===
=== Unstable ===
$ '''brew install --HEAD libserialport'''


$ '''brew install --HEAD --with-libserialport libsigrok'''
$ '''brew install python3'''
$ '''unset PYTHONPATH # to avoid system python2.7 conflicts'''
$ '''brew install --HEAD libserialport'''
$ '''brew install --HEAD --with-libserialport libsigrok'''
$ '''brew install --HEAD libsigrokdecode'''
$ '''brew install --HEAD --with-libserialport sigrok-cli'''
$ '''brew install --HEAD pulseview'''


$ '''brew install --HEAD libsigrokdecode'''
=== Stable ===
 
$ '''brew install --HEAD --with-libserialport sigrok-cli'''
 
$ '''brew install --HEAD pulseview'''


if it complains about python:
If you just want sigrok-cli, you can install stable
 
$ '''brew install python3'''
 
if that doesn't help you have to include the python3 pkgconfig to the PKG_CONFIG_PATH (see https://github.com/rene-dev/homebrew-sigrok/issues/2 for that issue)
 
=== Stable ===
the stable version of pulseview does not build on OS X.


$ '''brew install sigrok-cli'''
$ '''brew install sigrok-cli'''


== Building ==
== Building ==

Revision as of 19:11, 14 July 2014

sigrok-gui on Mac OS X

This page describes how to build the sigrok subprojects on Mac OS X.

Building using Homebrew

These instructions have been tested on Mac OS X 10.9.1.

Requirements

Install homebrew

Tap sigrok:

$ brew tap rene-dev/sigrok

If you want pulseview, you must install unstable

Unstable

$ brew install python3
$ unset PYTHONPATH # to avoid system python2.7 conflicts
$ brew install --HEAD libserialport
$ brew install --HEAD --with-libserialport libsigrok
$ brew install --HEAD libsigrokdecode
$ brew install --HEAD --with-libserialport sigrok-cli
$ brew install --HEAD pulseview

Stable

If you just want sigrok-cli, you can install stable

$ brew install sigrok-cli

Building

These instructions have been tested on a clean install of Mac OS X 10.6.8, 10.8.4 and 10.9.1.

Requirements

Install MacPorts, follow the guide on macports.org (this step will require Xcode and Command Line Tools for Xcode be installed on your machine, which are also a dependencies to build sigrok).

Install Qt, download qt-mac-opensource-4.7.4.dmg from qt.nokia.com (Only needed for PulseView).


Install git (not needed at least with 10.8.4):

$ sudo port install git-core

This will also pull in a bunch of dependencies required by git-core (and some of them also by sigrok).

Install boost, libusb, libzip and libftdi, the libsigrok build dependencies:

$ sudo port install boost libusb libzip libftdi0

Install autoconf, automake, cmake, glib2.0+, python 3.3, libtool and pkgconfig to satisfy version dependencies in the build process.

$ sudo port install autoconf automake cmake glib2 python33 libtool pkgconfig

Set the PKG_CONFIG_PATH environment variable to reflect the future locations of libsigrok and libsigrokdecode for the sigrok-cli build process.

$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/

libserialport

libserialport is optional and required only for devices with serial connection, e.g. most multimeters. If not present during configuring libsigrok, the respective drivers in libsigrok will be disabled.

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

libsigrok

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

libsigrokdecode

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

sigrok-cli

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

PulseView

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


Notes

TODO

Resources