Skip to content

MaxOSXInstallFromSource

Maxie D. Schmidt edited this page Nov 13, 2019 · 4 revisions

Mac OSX install using Homebrew FLTK (with-cairo) and RNAStructViz from source

Prerequisites

It appears based on recent testing that reasonably modern versions of Mac OSX (>= 10.14.xx) will allow for our libraries and the RNAStructViz source code to be built all with the default xcode compilers. First, some prerequisites from the test machine's xcode installation. Make sure that you can at least run the following commands for reference:

$ which clang
/usr/bin/clang
$ which gcc
/usr/bin/gcc
$ clang --version -v
Apple LLVM version 10.0.0 (clang-1000.10.44.2)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

If your output does not match the above, still proceed with the install instructions as small differences are to be expected. We are working to test the install process on as many recent versions of OSX as possible, so your setup may still very well be sufficient.

Installing dependencies with Homebrew

We need to install some other basic libraries and utilities with the userland Homebrew package manager already installed on your machine:

$ brew install cairo pkg-config git coreutils
$ brew install --build-from-source --verbose gtDMMB/core/fltkwithcairo

Now we need to add the new FLTK libraries into our PATH:

$ export PATH="/usr/local/opt/fltkwithcairo/bin:$PATH"
$ echo $PATH

You can check that the install was successful by verifying that the following output is sane:

$ which fltk-config
/usr/local/opt/fltkwithcairo/bin/fltk-config
$ fltk-config --use-gl --use-glut --use-forms --use-images --use-cairo --ldstaticflags --cxxflags
-I/usr/local/Cellar/fltkwithcairo/1.4.x-r13071/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
/usr/local/Cellar/fltkwithcairo/1.4.x-r13071/lib/libfltk_cairo.a -lcairo -lpixman-1 /usr/local/Cellar/fltkwithcairo/1.4.x-r13071/lib/libfltk_images.a -ljpeg -lpng -lz /usr/local/Cellar/fltkwithcairo/1.4.x-r13071/lib/libfltk_gl.a -framework OpenGL /usr/local/Cellar/fltkwithcairo/1.4.x-r13071/lib/libfltk_forms.a /usr/local/Cellar/fltkwithcairo/1.4.x-r13071/lib/libfltk.a -lpthread -framework Cocoa

That's it! Now on to building RNAStructViz from source in the Linux-Unix install documentation.

Clone this wiki locally