Difference between revisions of "Mac OS X"

From sigrok
Jump to navigation Jump to search
Line 9: Line 9:
=== Requirements ===
=== Requirements ===


Install MacPorts, follow the guide on [http://www.macports.org/install.php macports.org] (this step will require Xcode on your machine, which is also a dependency to build sigrok).
Install MacPorts, follow the guide on [http://www.macports.org/install.php 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 [http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x qt.nokia.com] (Only needed for [[PulseView]]).
Install Qt, download qt-mac-opensource-4.7.4.dmg from [http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x qt.nokia.com] (Only needed for [[PulseView]]).

Revision as of 03:15, 7 August 2013

sigrok-gui on Mac OS X

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

Building

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

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:

$ 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 libusb, libzip and libftdi, the libsigrok build dependencies:

$ sudo port install libusb libzip libftdi0

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

$ sudo port install autoconf automake glib2 python33 libtool

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/

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