The script explains what it will do and then pauses before it does it. There are more installation options here (required for OS X 10.8 Mountain Lion and below).
With just 5 steps, you’ll get a perfect environment in your Mac for OpenPool Effect development. Below shows how to set up all necessary tools to create your own effects. It might look like a long article since we put many screenshots for easier understanding, but it’ll only take about 30 min to complete. Are you ready? (Tested under MacOS X 10.8.3 Mountain Lion) STEP1.
Install Processing The key to OpenPool is Processing. So let’s install it first. Download Processing from: Download Processing 1.5.1 for Mac OS X, which is located in the Stable Releases section. (Important Notice: Don’t download ver2.0.
![Install Install](/uploads/1/2/5/4/125419712/395640785.png)
At this time, OpenPool is NOT compatible with Processing ver2.0) Then unzip the downloaded file, and move Processing(.app) file into Applications folder. Install OpenCV Next, let’s install OpenCV, Open Source Computer Vision Library, which is an open-srouce library aimed at real-time computer vision. First, you’ll need wget, cmake and make commands to install OpenCV.
If you don’t think you already installed these commands, click to open the folded sections below. Make: command not found You need to install Xcode Command Line Tools in order to use the make command. Go to and download it. (You’ll need to login with Apple ID. You already have it if you have iPhone or iPad. It’s the one you use when you download apps.) Note: Please make sure the file you are downloading is correct: It’s different between Mountain Lion and Lion) After installation is done, you’ll be able to use the make command”. ※You can install Xcode itself of course, but it’s a huge file to download, so we recommend you to install Commanld Line Tools instead.
It actually works as long as you play with OpenPool. Sudo make install When you “make -j4”, it’ll take a bit long time and your Mac may get very heated and fans may go crazy, but just wait until it’s done. You can go complete STEP3 and STEP4 while you are waiting. But don’t forget the last line, sudo make install.
※By the way, you may want to install OpenCV with homebrew. But it’s problematic at this time. Install OpenNI We need OpenNI to use Kinect. Let’s download these two files: SimpleOpenNI-0.27.zip and OpenNINITEInstaller-OSX-0.24.zip.
Firstly, unzip the latter file and cd to the extracted OpenNINITEInstaller-OSX directory on Terminal, like. / install.sh Next, unzip the former file and move the extracted SimpleOpenNI folder into: /Users/(your Mac username)/Documents/Processing/libraries/SimpleOpenNI (You might need to create new folders named Processing and libraries by yourself.) Very good!
You got OpenNI ready now. ※Make sure you are moving NOT SimpleOpenNI-0.24 folder, but SimpleOpenNI folder which is inside it. ※ Processing folder must be locate in Documents folder.
※The same instuction is described here too: STEP4. Install OpenPool Finally, let’s install OpenPool. Unzip the file, and move the extracted folder to: /Users/(you Mac username)/Documents/Processing/libraries/OpenPoolCore/ Easy!
Run Sample Effect You did it! Everything’s all set. Now, let’ run the sample effect!
The sample file is located here: (OpenPool directory)/examples/OpenPoolExampleImageOnBall/OpenPoolExampleImageOnBall.pde After Processing window appeares, press the Play button. The effect is working with a recorded video, which is in the data folder next to OpenPoolExampleImageOnBall.pde.
Let’s change the image with this line.
Prerequisites XCode XCode's installation is mandatory. Since Mac OS X 10.7, XCode can be downloaded from the Mac App Store. Command line tools standard command-line tools (C compiler, git.) are provided with XCode as an optional package. To install these tools, go to XCode preferences (keyboard shortcut Cmd-; ) and just check 'Install command-line tools' XQuartz Apple no more ships an X11 server as of Mountain Lion. X11 is now provided by the project XQuartz. To install it, go to the and download the package. Make sure to restart your session before going further.
Brew is a package manager that will make gerris (and dependencies) installation smooth and manageable. To install brew, just enter% ruby -e '$(curl -fsSkL raw.github.com/mxcl/homebrew/go)' on the prompt. Note: on OS 10.9 it is recommended to use:% ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'. Gerris dependencies Now that brew is installed, almost every dependency needed by gerris can be installed in just a single command line:% brew install gtkglext% brew install gnuplot% brew install gawk% brew install gsl% brew install gfortran% brew install open-mpi% brew install proj% brew install netcdf% brew install ode% brew install fftw% brew install ffmpeg -with-theora% brew install coreutils% brew install autoconf% brew install libtool% brew install automake Note that as of October, 26th 2012 the package netpbm is broken, but this wont' affect the gerris installation. Moreover, DO NOT install ftgl to avoid further compilation issues. Startup-notification Unfortunately, there is no package for startup-notification.
But the software can be easily installed. get the source of the latest version.
move the source to /soft and unpack it. Dive into the newly created folder. compile the software%./configure -prefix=$HOME/soft% make% make install. Off-screen rendering With the preceding method, you won't have access to off-screen rendering (gfsview-batch). There are tricks to overcome this limitation though. One solution to get a functional gfsview-batch is to get the latest version of.
After unpacking the tarball into /soft, type from the source directory./autogen.sh./configure -enable-osmesa -prefix=$HOME/soft make make install and then recompile Gfsview using make clean LDFLAGS='-L$HOME/soft/lib' sh autogen.sh -prefix=$HOME/soft make make install (you probably want to make sure that paths beginning with $HOME/soft are read 'before' that beginning with /opt/X11 in your.bashrc) Note that this trick will deactivate the standard (X11) Gfsview. Prerequisites Xcode You need to install the latest version of Xcode. Command line tools You need also to install the line command tools. Without this, you do not even have a C compiler. This may be invisible when you run 'configure' for Gerris.
Moreover, you may still have the gcc from Macports, but you won't have apple's gcc. You can find the command line tools at Macports A typical way to install is using MacPorts, and without the line command tools it will not work. See also Brew below. Getting the sources You may either download and unpack a. In the latter case you need to install in order to download the gerris sources.
Environment variables: Be careful that the ACLOCAL path is set like: export ACLOCALFLAGS='-I/opt/local/share/aclocal $ACLOCALFLAGS' You should also take care to avoid conflicts with libraries that may have been installed elsewhere. One way to avoid the conflicts is to set the MacPorts library first in the PKGCONFIGPATH variable. Export PKGCONFIGPATH='/opt/local/lib/pkgconfig':'/opt/gerris/lib/pkgconfig':'/usr/lib/pkgconfig':'/usr/local/lib/pkgconfig' The Gerris configure will read this variable and get the right MacPort libraries.
There is in fact a whole lot of other environment variables that should be set to use with MacPorts to paths starting with /opt/local, read the MacPorts documentation. Installing Gerris from tarball go to gerris take all the three tarball in the Download directory, unzip them and start: cd./gts-snapshot-./configure make sudo make install Be careful that the ACLOCAL path is set like: export ACLOCALFLAGS='-I/usr/local/share/aclocal' Take gerris on the website then cd./gerris-snapshot-./configure make sudo make install gerris2D -V It works! More difficult, take gfsview then cd./gfsview-snapshot-. Now, open the file 'configure.in' remove everything between 'PKGCHECKMODULES(OSMESA.'
Line 59 and 'AMCONDI.' Add 'haveosmesa=no' if using vi, erase line with 'dd', and insert 'i' the line haveosmesa=no in between. In this file the lines are now: PKGCHECKMODULES(OSMESAosmesa haveosmesa=yes haveosmesa=no ) haveosmesa=no AMCONDITIONAL(HAVEOSMESA, test 'x$haveosmesa' = 'xyes') go out and save (esc:wq) configure.in Prompt exactly LDFLAGS='-L/usr/X11/lib' sh autogen.sh compile make sudo make install gfsview2D enjoy! X11 on MacBook: you need a three-button mouse or trackpad emulation You need either to connect a three-button mouse to your Mac or have the middle and right-click functions of a mouse emulated on the trackpad. Go into the X11 application (it can be reached inside your Dock) then under the X11 menu go into 'Preferences' and select 'emulate a three button mouse'. Then press the 'Command' (cmd) key and move ONE finger on the trackpad while clicking on the trackpad to emulate the right-click on the mouse and move around the gfs view. Press the 'Command' (cmd) key and move TWO fingers on the trackpad to emulate the center-click on the mouse or the scrolling, to zoom in and out these pretty gfsview images.
Mac OS X 10.4 (Intel) Installation with fink Below are steps that have worked for at least three people, installing Gerris under Mac OS X 10.4 (Intel). You will need the Apple development tools installed - this is a free download from.
Check that you have Apple's X11 and the X11 SDK installed. They are not installed by default on a new machine (at least as far as could figure out). If X11 is not installed, in OS X 10.4 you need to reinstall your system from the DVD (See ). Reinstalling the system will not remove your user files. (For comparison, on system, the versions were X11 1.1.3 - XFree86 4.4.0.).
Install Fink. Install various dependencies that Gerris requires. Sudo fink install pkgconfig glib2 glib2-dev glib2-shlibs gtk+2 gtk+2-dev gtkglext1 startup-notification-dev startup-notification-shlibs Other packages may also be necessary. Look at the error messages during the configuration steps below to see what packages may be missing.
Then the best way to resolve the problem may be to install 'fink commander'. Then search for all the packages that have a name beginning with pango, gtk+, atk1 and install all of them. Trial and error should eventually lead you to a full installation of all the necessary packages.
Install darcs (needed to obtain the latest version of Gerris, GTS, and GfsView - the packaged versions available on the web do not work). Darcs is not available in Fink either. Download the DMG from, and mount it.
From the DMG, Drag GMP.Framework into /Library/Frameworks. From the DMG, put the 'darcs' executable wherever you wish (e.g. From a suitable folder, obtain the latest versions of GTS, Gerris, and GfsView. Darcs get darcs get darcs get. We will install these in /opt/gerris to keep them isolated from the rest of the system.
This requires /opt/gerris/lib/pkgconfig to be added to your PKGCONFIGPATH. This directory does not exist yet - it will be created in the next step. Echo 'export PKGCONFIGPATH=$PKGCONFIGPATH:/opt/gerris/lib/pkgconfig' /.profile. Check your version of automake:% automake -version Currently (November 8, 2007) this installation procedure works with automake 1.6.3 which is on your system by default. Any later version should also work. Add the gerris directory to your path (so gts-config works properly), also add the fink directory.
Echo 'export PATH=$PATH:/opt/gerris/bin:/sw/bin' /.profile. Compile and install GTS, Gerris and GfsView. Cd gts-stable sh autogen.sh -prefix=/opt/gerris make && make install cd./gerris-stable sh autogen.sh -prefix=/opt/gerris make && make install cd./gfsview-stable sh autogen.sh -prefix=/opt/gerris make && make install. Test your installation. You're done!