top bar

Difference between revisions of "Full Build on MacOS X Leopard"

 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Note|See [[Build on MacOS X]] for up-to-date instructions on building on OS X.}}
 +
 
Building micro-manager 1.2 from SVN on MacOSX Leopard MacIntel.
 
Building micro-manager 1.2 from SVN on MacOSX Leopard MacIntel.
 
This is the complete sequence that I used to build on 10.5.2
 
This is the complete sequence that I used to build on 10.5.2
Line 27: Line 29:
 
#!/usr/bin/env bash
 
#!/usr/bin/env bash
  
# Download ACE
+
# Download and build boost - see the separate Wiki page for that task.
curl -O http://download.dre.vanderbilt.edu/previous_versions/ACE-5.6.3.tar.bz2
+
tar jxvf ACE-5.6.3.tar.bz2
+
# Get started
+
cd ACE_wrappers
+
export ACE_ROOT=`pwd`
+
cd ace
+
# (Optional) To build a version compatible with Tiger (10.4) add:
+
export CFLAGS="-g -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+
# Configure for MacOS X Leopard
+
cat > config.h <<EOF
+
#include "ace/config-macosx-leopard.h"
+
EOF
+
cat > ${ACE_ROOT}/include/makeinclude/platform_macros.GNU <<EOF
+
debug = 1
+
shared_libs = 0
+
static_libs = 1
+
include ${ACE_ROOT}/include/makeinclude/platform_macosx_leopard.GNU
+
EOF
+
# Make (NB inside ace dir, so not whole tree)
+
make
+
# Install
+
sudo ln -s $ACE_ROOT/ace /usr/local/include/ace
+
sudo ln -s $ACE_ROOT/ace/libACE.a /usr/local/lib/
+
# (Optional) To make you build compatible with Tiger (10.4):
+
cd /Developer/SDKs/MacOSX10.4u.sdk/usr/local
+
sudo ln -s /usr/local/include
+
cd lib
+
sudo ln -s /usr/local/lib/libACE.a
+
  
 +
# If you want to build dc1394, instal libdc1394:
 
# EITHER libdc1394 v2.0.1 (release version)
 
# EITHER libdc1394 v2.0.1 (release version)
 
VERSION="2.0.1"
 
VERSION="2.0.1"
Line 76: Line 51:
  
 
# Micro-Manager from SVN
 
# Micro-Manager from SVN
svn co https://valelab.ucsf.edu/svn/micromanager2/branches/micromanager1.2/
+
svn co https://valelab.ucsf.edu/svn/micromanager2/branches/micromanager1.3/
cd micromanager1.2
+
cd micromanager1.3
autoreconf -i -s
+
 
 +
./mmUnixBuild.sh
 +
 
 +
### N.B. on DebianJohan found that he needed to run  autoconf --install at this point.
 
export PATH="/usr/local/bin:$PATH" # to ensure user compiled swig is used
 
export PATH="/usr/local/bin:$PATH" # to ensure user compiled swig is used
 
./configure --with-imagej=/Applications/ImageJ/
 
./configure --with-imagej=/Applications/ImageJ/
 
# (Optional) To make your build compatible with Tiger (10.4) use:
 
# (Optional) To make your build compatible with Tiger (10.4) use:
./configure --with-imagej=/Applications/ImageJ/ CXXFLAGS="-g -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+
#./configure --with-imagej=/Applications/ImageJ/ \
 +
  CXXFLAGS="-g -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4"
 +
# and for statically-linked components use:
 
#./configure --with-imagej=/Applications/ImageJ/ --enable-static
 
#./configure --with-imagej=/Applications/ImageJ/ --enable-static
make -j 2
+
make
cd MMDevice && make && cd ..
+
sudo make install
cd DeviceAdapters/dc1394/ && make  
+
 
</pre></code>
 
</pre></code>
 +
 +
{{Programming_Sidebar}}

Latest revision as of 16:19, 22 April 2014

Note
See Build on MacOS X for up-to-date instructions on building on OS X.

Building micro-manager 1.2 from SVN on MacOSX Leopard MacIntel. This is the complete sequence that I used to build on 10.5.2 on 2008-04-18. In principle you can just cd to an appropriate directory and run the script but I would recommend cut/paste into terminal chunk by chunk. Note that for libdc1394 (firewire cameras on macosx/linux and perhaps PC) I have provided both a build from SVN and a build from the current stable tarball (2.0.1).

Finally to build Micro-manager you will need an up to date gnu autotools. From my experience MacOS X Leopard works out of the box, but on Tiger you will need to update.

Some optional steps are included that will make you build run on Mac OS X 10.4 (Tiger) as well (NS, 9/11/2008).

Here are download links for versions I have.

- autoconf 2.59 installed on my Tiger system seems to be fine 
- automake 1.10.1 NB automake 1.9.6 fails
- libtool 1.5.22 later versions presumably ok

Once you are done, make quite sure that you are using the latest versions that you have installed:

 autoconf --version
 libtool --version
 automake --version

Hope it works for you! Greg Jefferis <jefferis@gmail.com>

#!/usr/bin/env bash

# Download and build boost - see the separate Wiki page for that task.

# If you want to build dc1394, instal libdc1394:
# EITHER libdc1394 v2.0.1 (release version)
VERSION="2.0.1"
LIBDC="libdc1394-$VERSION"
curl -O http://kent.dl.sourceforge.net/sourceforge/libdc1394/$LIBDC.tar.gz
tar zxvf $LIBDC.tar.gz
cd $LIBDC
./configure --prefix=/usr/local
make
sudo make install

# OR libdc1394 from SVN
svn co https://libdc1394.svn.sourceforge.net/svnroot/libdc1394/trunk/libdc1394 libdc1394
cd libdc1394
autoreconf -i -s
./configure --prefix=/usr/local
make
sudo make install

# Micro-Manager from SVN
svn co https://valelab.ucsf.edu/svn/micromanager2/branches/micromanager1.3/
cd micromanager1.3

./mmUnixBuild.sh

### N.B. on DebianJohan found that he needed to run  autoconf --install at this point.
export PATH="/usr/local/bin:$PATH" # to ensure user compiled swig is used
./configure --with-imagej=/Applications/ImageJ/
# (Optional) To make your build compatible with Tiger (10.4) use:
#./configure --with-imagej=/Applications/ImageJ/ \
  CXXFLAGS="-g -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4"
# and for statically-linked components use:
#./configure --with-imagej=/Applications/ImageJ/ --enable-static
make
sudo make install
© Micro-Manager : Vale Lab, UCSF 2006-2011 | All Rights Reserved | Contact