<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://test.pinballmakers.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Mac_build_instructions</id>
	<title>Mac build instructions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://test.pinballmakers.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Mac_build_instructions"/>
	<link rel="alternate" type="text/html" href="https://test.pinballmakers.com/wiki/index.php?title=Mac_build_instructions&amp;action=history"/>
	<updated>2026-05-28T07:38:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://test.pinballmakers.com/wiki/index.php?title=Mac_build_instructions&amp;diff=1346&amp;oldid=prev</id>
		<title>Steveshoyer: P-ROC software build for Mac</title>
		<link rel="alternate" type="text/html" href="https://test.pinballmakers.com/wiki/index.php?title=Mac_build_instructions&amp;diff=1346&amp;oldid=prev"/>
		<updated>2016-02-08T05:42:12Z</updated>

		<summary type="html">&lt;p&gt;P-ROC software build for Mac&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Mac Build Instructions =&lt;br /&gt;
&lt;br /&gt;
These instructions were written based on a system running Mac OS X 10.6.4 (Snow Leopard).&lt;br /&gt;
&lt;br /&gt;
== libpinproc Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
libpinproc uses libftdi1 to talk to the P-ROC hardware.  libftdi1 depends on libusb-1.0.x&lt;br /&gt;
&lt;br /&gt;
libpinproc&amp;#039;s example program (pinproctest) depends on the [http://code.google.com/p/yaml-cpp/ yaml-cpp] project.  In order to build [http://code.google.com/p/yaml-cpp/ yaml-cpp], [http://www.cmake.org/cmake/resources/software.html cmake] is required.&lt;br /&gt;
&lt;br /&gt;
Note: If you see an error such as &amp;quot;configure: error: no acceptable C compiler found in $PATH&amp;quot; You may also need to install the command line compilers from Xcode by following the instructions [http://www.tech-recipes.com/rx/726/mac-os-x-install-gcc-compiler/ here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== libusb ===&lt;br /&gt;
&lt;br /&gt;
Building [http://sourceforge.net/projects/libusb/files/libusb-1.0/ libusb] version 1.0.9:&lt;br /&gt;
&lt;br /&gt;
    ./configure&lt;br /&gt;
    make CFLAGS=&amp;quot;-arch i386&amp;quot;&lt;br /&gt;
    sudo make install&lt;br /&gt;
&lt;br /&gt;
=== libftdi1 ===&lt;br /&gt;
&lt;br /&gt;
Building [http://www.intra2net.com/en/developer/libftdi/download.php libftdi1] version 1.1.0:&lt;br /&gt;
&lt;br /&gt;
    mkdir bin&lt;br /&gt;
    cd bin&lt;br /&gt;
    cmake -DCMAKE_OSX_ARCHITECTURES=i386 ..&lt;br /&gt;
    make&lt;br /&gt;
    sudo make install&lt;br /&gt;
&lt;br /&gt;
=== yaml-cpp ===&lt;br /&gt;
&lt;br /&gt;
yaml-cpp is used by libpinproctest.&lt;br /&gt;
&lt;br /&gt;
* Download and extract [http://code.google.com/p/yaml-cpp/ yaml-cpp] into a directory of your choice.  Latest version tested: [http://yaml-cpp.googlecode.com/files/yaml-cpp-0.2.6.tar.gz 0.2.6]&lt;br /&gt;
* If you haven&amp;#039;t already installed [http://www.cmake.org/cmake/resources/software.html cmake], install it now.&lt;br /&gt;
* From the command line, &amp;#039;cd&amp;#039; into your yaml-cpp directory and run the following commands:&lt;br /&gt;
&lt;br /&gt;
    mkdir bin&lt;br /&gt;
    cd bin&lt;br /&gt;
    cmake ..&lt;br /&gt;
    make&lt;br /&gt;
    sudo make install&lt;br /&gt;
&lt;br /&gt;
== libpinproc ==&lt;br /&gt;
&lt;br /&gt;
* Download (and extract) [http://github.com/preble/libpinproc libpinproc] into a directory of your choice. Note - make sure you select the desired branch to download (either master or dev).&lt;br /&gt;
** Download either by clicking &amp;#039;Download Sources&amp;#039; or by installing a git client and checking out the repository.&lt;br /&gt;
* From the command line, &amp;#039;cd&amp;#039; into the libpinproc directory and run the following commands:&lt;br /&gt;
&lt;br /&gt;
* Supported:&lt;br /&gt;
    mkdir bin&lt;br /&gt;
    cd bin&lt;br /&gt;
    cmake -DCMAKE_OSX_ARCHITECTURES=i386 -DBUILD_SHARED_LIBS=ON ..&lt;br /&gt;
    make&lt;br /&gt;
    sudo make install&lt;br /&gt;
&lt;br /&gt;
== pypinproc ==&lt;br /&gt;
&lt;br /&gt;
* Build pypinproc - libpinproc Python extension&lt;br /&gt;
** Download (and extract) [http://github.com/preble/pypinproc pypinproc] into a directory of your choice. Note - make sure you select the desired branch to download (either master or dev).&lt;br /&gt;
*** Download either by clicking &amp;#039;Download Sources&amp;#039; or by installing a git client and checking out the repository.&lt;br /&gt;
&lt;br /&gt;
By default distutils likes to build i386 and PPC binaries, presumably for creating a binary distribution.  In our case we only want the current architecture, the one we used to build the previous libraries.  The pypinproc setup.py script checks for the ARCH environment variable; if it is set it will build pypinproc using that architecture.&lt;br /&gt;
&lt;br /&gt;
    ARCH=i386 python setup.py build&lt;br /&gt;
    sudo python setup.py install&lt;br /&gt;
&lt;br /&gt;
== PyYAML ==&lt;br /&gt;
&lt;br /&gt;
Install [http://pyyaml.org/wiki/PyYAML PyYAML]:&lt;/div&gt;</summary>
		<author><name>Steveshoyer</name></author>
	</entry>
</feed>