Difference between revisions of "Mac OS X"

From sigrok
Jump to navigation Jump to search
m (Updates.)
Line 102: Line 102:
* [http://cairographics.org/end_to_end_build_for_mac_os_x CairoGraphics - End to End build for Mac OS X]
* [http://cairographics.org/end_to_end_build_for_mac_os_x CairoGraphics - End to End build for Mac OS X]
* [http://developer.apple.com/mac/library/documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html#//apple_ref/doc/uid/10000123i-CH1-SW1 Documentation about bundles]
* [http://developer.apple.com/mac/library/documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html#//apple_ref/doc/uid/10000123i-CH1-SW1 Documentation about bundles]
* [http://stackoverflow.com/questions/1596945/building-osx-app-bundle Stackoverflow - Building OSX App Bundle]

Revision as of 16:28, 21 May 2012

sigrok-gui on Mac OS X

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

Building

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

Requirements

Install MacPorts, follow the guide on macports.org (this step will require Xcode on your machine, which is also a dependency to build sigrok).

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

TODO: Install GTK+ libs and dependencies for sigrok-gtk.

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 sigrok build dependencies:

$ sudo port install libusb
$ sudo port install libzip
$ sudo port install libftdi

Enter some directory where you want to store the sigrok source, and check it out:

$ cd some-directory
$ git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok

Enter the sigrok source directory:

$ cd sigrok

libsigrok

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

libsigrokdecode

$ cd libsigrokdecode
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
$ cd ..

sigrok-cli

$ cd sigrok-cli
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
$ cd ..

sigrok-gtk

$ cd sigrok-gtk
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
$ cd ..

sigrok-qt

$ cd gui
$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig qmake -spec macx-g++
$ make

Open the sigrok-gui application just built:

$ open -a sigrok-gui.app

Notes

TODO

Resources