os-tips:osx10.8

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
os-tips:osx10.8 [2020/05/21 19:17] – [Preparation] slukaos-tips:osx10.8 [2020/06/04 15:49] – make samples sluka
Line 45: Line 45:
 "--overwrite" parameter you may use if problems with linking (there is another installation, not the brew's). ImageMagick is such case, it is installed by MacOSX Xcode installation, but evidently not all necessary files. "--overwrite" parameter you may use if problems with linking (there is another installation, not the brew's). ImageMagick is such case, it is installed by MacOSX Xcode installation, but evidently not all necessary files.
  
-===== Building therion/xtherion/loch =====+In case you want to use Survex for loop-closure or if you want to compile samples install Survex: 
 + 
 +<code> 
 +brew tap survex/survex https://git.survex.com/homebrew-survex 
 +brew install survex 
 +</code> 
 + 
 +Once you've installed as above, you can upgrade your homebrew packages (including Survex) like so: 
 + 
 +<code> 
 +brew update 
 +brew upgrade 
 +</code> 
 +===== Building therion xtherion loch =====
  
 Download therion source code from http://therion.speleo.sk/download.php Download therion source code from http://therion.speleo.sk/download.php
  
-Extract tarball to ~/Downloads+Extract tarball to ~/Downloads or another prefered place.
  
  
Line 66: Line 79:
 </code> </code>
  
-===== Final steps =====+===== The Therion Book ===== 
 + 
 +This will compile and create sample files and compile Thbook – the refence guide. 
 + 
 +<code> 
 +make samples 
 +</code> 
 +===== Preparation for old version 0.3.10 ===== 
 + 
 +In Terminal run: 
 + 
 +<code> 
 +sudo mkdir /usr/X11/include 
 +sudo ln -s /System/Library/Frameworks/OpenGL.framework/Headers /usr/X11/include/GL 
 +</code> 
 + 
 +Now we need to customize several files 
 + 
 +**Edit ~/Downloads/therion/Makefile** 
 + 
 +replace line 65: 
 +<code> 
 +POBJECTS = extern/getopt.o extern/getopt1.o extern/getline.o 
 +</code> 
 +with: 
 +<code> 
 +POBJECTS = extern/getopt.o extern/getopt1.o 
 +</code> 
 + 
 +**Edit ~/Downloads/therion/loch/lxFile.cxx** 
 + 
 +replace section starting on line 12: 
 + 
 +<code> 
 +#if defined LXWIN32 || defined LXMACOSX || defined THWIN32 || defined THMACOSX 
 +#include "getline.h" 
 +#endif 
 +</code> 
 + 
 +with: 
 + 
 +<code> 
 +#if defined LXWIN32 || defined THWIN32 
 +#include "getline.h" 
 +#endif 
 +</code> 
 + 
 +**Edit ~/Downloads/therion/loch/Makefile** 
 + 
 +replace section starting on line 9 with: 
 + 
 +<code> 
 +VTKVERSION = 5.10 
 +#VTKVERSION = $(shell tclsh getvtkver.tcl version) 
 +VTKPATH = /usr/local/include/vtk-$(VTKVERSION) 
 +#VTKPATH = $(shell tclsh getvtkver.tcl incpath) 
 +VTKLIBPATH = /usr/local/lib/vtk-$(VTKVERSION) 
 +#VTKLIBPATH = $(shell tclsh getvtkver.tcl libpath) 
 +VTKLIBS = -lvtkHybrid -lvtkImaging -lvtkIO -lvtkGraphics -lvtkFiltering -lvtkCommon -lvtkjpeg -lvtkpng -lvtkzlib -lvtksys -lfreetype 
 +POSTMAKE = 
 +STRIPFLAG = -s 
 +</code> 
 + 
 +replace section starting on line 54 with: 
 + 
 +<code> 
 +# PLATFORM MACOSX 
 +CXX = c++ 
 +CC = cc 
 +POBJECTS = 
 +CXXPFLAGS = -W -Wall -DLXMACOSX $(shell wx-config --cxxflags) -I$(VTKPATH) -Wno-deprecated -I/usr/X11R6/include $(shell freetype-config --cflags) 
 +CCPFLAGS = -W -Wall -DLXMACOSX $(shell wx-config --cflags) -I/usr/X11R6/include 
 +LXLIBDIR =  
 +PLIBS = -lz -L/usr/X11R6/lib $(shell wx-config --libs --gl-libs) -L$(VTKLIBPATH) $(VTKLIBS) 
 +POSTMAKE = cp -f ./loch ./loch.app/Contents/MacOS 
 +STRIPFLAG = 
 +</code> 
 + 
 +**Edit ~/Downloads/therion/loch/lxOGLFT.cxx** 
 + 
 +Replace line 474: 
 +<code> 
 +bbox = measure( s.GetChar( 0 ) ); 
 +</code> 
 +with: 
 +<code> 
 +bbox = measure((const wxChar) s.GetChar( 0 ) ); 
 +</code> 
 + 
 +Replace line 478: 
 +<code> 
 +BBox char_bbox = measure( s.GetChar( i ) ); 
 +</code> 
 +with: 
 +<code> 
 +BBox char_bbox = measure((const wxChar) s.GetChar( i ) ); 
 +</code> 
 + 
 +Replace line 657: 
 +<code> 
 +compile( s.GetChar( i ) ); 
 +</code> 
 +with: 
 +<code> 
 +compile((const wxChar) s.GetChar( i ) ); 
 +</code> 
 + 
 +Replace line 780: 
 +<code> 
 +draw( s.GetChar( i ) ); 
 +</code> 
 +with: 
 +<code> 
 +draw((const wxChar) s.GetChar( i ) ); 
 +</code> 
 + 
 +**Edit ~/Downloads/therion/loch/lxSTree.cxx** 
 + 
 +Replace line 55: 
 +<code> 
 +: wxMiniFrame(parent, wxID_ANY, _(" Selection"),wxDefaultPosition, wxDefaultSize, (wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxRESIZE_BOX | wxRESIZE_BORDER) & (~(wxMINIMIZE_BOX | wxMAXIMIZE_BOX))) 
 +</code> 
 +with: 
 +<code> 
 +: wxMiniFrame(parent, wxID_ANY, _(" Selection"),wxDefaultPosition, wxDefaultSize, (wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxRESIZE_BORDER) & (~(wxMINIMIZE_BOX | wxMAXIMIZE_BOX))) 
 +</code>
  
-Copy ~/Downloads/therion/loch/loch.app to Applications folder 
  • os-tips/osx10.8.txt
  • Last modified: 4 years ago
  • by sluka