Difference between revisions of "Mac OS X"

From sigrok
Jump to navigation Jump to search
m (Fix broken link from Wafelijzers Mac OS X effort for porting)
Line 27: Line 27:
  $ '''sudo port install libftdi'''
  $ '''sudo port install libftdi'''


Enter some directory where you want to store the sigrok source, and check it out:
Building [[libsigrok]]:
 
$ '''cd some-directory'''
$ '''git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok'''
 
Enter the sigrok source directory:
 
$ '''cd sigrok'''
 
=== libsigrok ===


$ '''git clone git://sigrok.org/libsigrok'''
  $ '''cd libsigrok'''
  $ '''cd libsigrok'''
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
Line 45: Line 37:
  $ '''cd ..'''
  $ '''cd ..'''


=== libsigrokdecode ===
Building [[libsigrokdecode]]:


$ '''git clone git://sigrok.org/libsigrokdecode'''
  $ '''cd libsigrokdecode'''
  $ '''cd libsigrokdecode'''
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
Line 54: Line 47:
  $ '''cd ..'''
  $ '''cd ..'''


=== sigrok-cli ===
Then you need to build the chosen user interfaces (cli, qt or gtk).


For building [[sigrok-cli]] (the command-line interface for sigrok):
$ '''git clone git://sigrok.org/sigrok-cli'''
  $ '''cd sigrok-cli'''
  $ '''cd sigrok-cli'''
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
Line 63: Line 59:
  $ '''cd ..'''
  $ '''cd ..'''


=== sigrok-gtk ===
For building [[PulseView]]:
 
$ '''git clone git://sigrok.org/pulseview'''
$ '''cd pulseview'''
$ '''cmake .'''
$ '''make'''
$ '''sudo cp pulseview /your/install/path'''
$ '''cd ..'''
 
For building [[sigrok-gtk]] ('''Note:''' The GTK+ GUI is not yet usable!):


$ '''git clone git://sigrok.org/sigrok-gtk'''
  $ '''cd sigrok-gtk'''
  $ '''cd sigrok-gtk'''
  $ '''./autogen.sh'''
  $ '''./autogen.sh'''
Line 72: Line 78:
  $ '''cd ..'''
  $ '''cd ..'''


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


  $ '''cd gui'''
$ '''git clone git://sigrok.org/sigrok-qt'''
  $ '''cd sigrok-qt'''
  $ '''PKG_CONFIG_PATH=/usr/local/lib/pkgconfig qmake -spec macx-g++'''
  $ '''PKG_CONFIG_PATH=/usr/local/lib/pkgconfig qmake -spec macx-g++'''
  $ '''make'''
  $ '''make'''
$ '''sudo make install'''
$ '''cd ..'''
If you get warnings claiming potential symbol conflicts when running qmake, you are likely not invoking '''qmake-qt4'''. Try running '''qmake-qt4''' to force the correct version.


Open the sigrok-gui application just built:
Open the sigrok-gui application just built:

Revision as of 17:27, 8 October 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

Building libsigrok:

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

Building libsigrokdecode:

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

Then you need to build the chosen user interfaces (cli, qt or gtk).

For building sigrok-cli (the command-line interface for sigrok):

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

For building PulseView:

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

For building sigrok-gtk (Note: The GTK+ GUI is not yet usable!):

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

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

$ git clone git://sigrok.org/sigrok-qt
$ cd sigrok-qt
$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig qmake -spec macx-g++
$ make
$ sudo make install
$ cd ..

If you get warnings claiming potential symbol conflicts when running qmake, you are likely not invoking qmake-qt4. Try running qmake-qt4 to force the correct version.

Open the sigrok-gui application just built:

$ open -a sigrok-gui.app

Notes

TODO

Resources