<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi<div><br></div><div>I finally got everything working under Mac OSX Snow Leopard including Loch. The main Problem was to compile Loch as wxWidgets has to be compiled as 32-bit. (unless you find the 64-bit version of some libs needed by wxWidgets)</div><div><br></div><div>Follow the documentation on therion's wiki page</div><div><a href="http://therion.speleo.sk/wiki/doku.php?id=masox">http://therion.speleo.sk/wiki/doku.php?id=masox</a></div><div><br></div><div>Make the following changes:</div><div><br></div><div>- When installing TeX make sure to use the big MacTeX application. Otherwise you will get some compilation errors when trying to compile the maps.</div><div><a href="http://mirror.ctan.org/systems/mac/mactex/MacTeX.mpkg.zip">http://mirror.ctan.org/systems/mac/mactex/MacTeX.mpkg.zip</a></div><div><br></div><div>- Install CMAKE as described in the documentation. I used the following version: <b>2.8-2</b></div><div>- Install VTK (I used version 5.4) as described but use different configuration for CMakeCache.txt</div><div><br></div><div>CMAKE_INSTALL_PREFIX:PATH=/Applications/VTK_ALL/VTK_Bin</div><div>CMAKE_OSX_ARCHITECTURES:STRING=i386;x86_64</div><div><div>VTK_USE_COCOA:BOOL=ON</div></div><div><div>VTK_USE_CARBON:BOOL=OFF</div></div><div>CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.4</div><div><br></div><div>- Edit the Makefile of Loch in <b>/Applications/therion/loch/Makefile</b> as follows. Basically it is the same configuration as described in the documentation apart that I added the "-m32" option to the compiler.  This will compile it as 32-bit</div><div>Adjust VTK path if needed. (If you compiled VTK 64-bit only instead of universal build it will print some symbol linking errors)</div><div><br></div><div><div># PLATFORM MACOSX</div><div><b>  BITTINESS = -m32</b></div><div><b>  CXX = c++ ${BITTINESS}</b></div><div><b>  CC = cc ${BITTINESS}</b></div><div>  VTKPATH = /Applications/VTK_All/VTK_Bin</div><div>  VTKINCLUDEPATH = $(VTKPATH)/include/vtk-5.4</div><div>  VTKLIBPATH = $(VTKPATH)/lib/vtk-5.4</div><div>  VTKLIBS = -lvtkHybrid -lvtkImaging -lvtkIO -lvtkGraphics -lvtkFiltering -lvtkCommon -lvtkjpeg -lvtkpng -lvtkzlib -lvtksys -lfreetype -lGLU -lGL</div><div>  POBJECTS = getline.o</div><div>  CXXPFLAGS = -W -Wall -DLXMACOSX $(shell wx-config --cxxflags) -I$(VTKINCLUDEPATH) -Wno-deprecated -I/usr/X11R6/include -I/usr/X11R6/include/freetype2</div><div>  CCPFLAGS = -W -Wall -DLXMACOSX $(shell wx-config --cflags) -I/usr/X11R6/include</div><div>  LXLIBDIR = </div><div>  PLIBS = -lz -L/usr/X11R6/lib $(shell wx-config --libs gl) -L$(VTKLIBPATH) $(VTKLIBS)</div><div>  POSTMAKE = cp -f ./loch ./loch.app/Contents/MacOS</div><div>  STRIPFLAG =</div><div># PLATFORM ENDCONFIG</div></div><div><br></div><div>With a bit of luck everything will run through smoothly.</div><div><br></div><div>Hopefully this will help you out!</div><div><br></div><div>cheers</div><div>Chris</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><b><br></b></div><div><b><br></b></div></body></html>