Differences
This shows you the differences between two versions of the page.
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] sluka | os-tips:osx10.8 [2020/06/04 15:49] – make samples sluka | ||
---|---|---|---|
Line 45: | Line 45: | ||
" | " | ||
- | ===== Building therion/xtherion/loch ===== | + | In case you want to use Survex for loop-closure or if you want to compile samples install Survex: |
+ | |||
+ | < | ||
+ | brew tap survex/ | ||
+ | brew install survex | ||
+ | </ | ||
+ | |||
+ | Once you've installed as above, you can upgrade your homebrew packages (including Survex) like so: | ||
+ | |||
+ | < | ||
+ | brew update | ||
+ | brew upgrade | ||
+ | </ | ||
+ | ===== Building therion | ||
Download therion source code from http:// | Download therion source code from http:// | ||
- | Extract tarball to ~/Downloads | + | Extract tarball to ~/ |
Line 66: | Line 79: | ||
</ | </ | ||
- | ===== Final steps ===== | + | ===== The Therion Book ===== |
+ | |||
+ | This will compile and create sample files and compile Thbook – the refence guide. | ||
+ | |||
+ | < | ||
+ | make samples | ||
+ | </ | ||
+ | ===== Preparation for old version 0.3.10 ===== | ||
+ | |||
+ | In Terminal run: | ||
+ | |||
+ | < | ||
+ | sudo mkdir / | ||
+ | sudo ln -s / | ||
+ | </ | ||
+ | |||
+ | Now we need to customize several files | ||
+ | |||
+ | **Edit ~/ | ||
+ | |||
+ | replace line 65: | ||
+ | < | ||
+ | POBJECTS = extern/ | ||
+ | </ | ||
+ | with: | ||
+ | < | ||
+ | POBJECTS = extern/ | ||
+ | </ | ||
+ | |||
+ | **Edit ~/ | ||
+ | |||
+ | replace section starting on line 12: | ||
+ | |||
+ | < | ||
+ | #if defined LXWIN32 || defined LXMACOSX || defined THWIN32 || defined THMACOSX | ||
+ | #include " | ||
+ | #endif | ||
+ | </ | ||
+ | |||
+ | with: | ||
+ | |||
+ | < | ||
+ | #if defined LXWIN32 || defined THWIN32 | ||
+ | #include " | ||
+ | #endif | ||
+ | </ | ||
+ | |||
+ | **Edit ~/ | ||
+ | |||
+ | replace section starting on line 9 with: | ||
+ | |||
+ | < | ||
+ | VTKVERSION = 5.10 | ||
+ | #VTKVERSION = $(shell tclsh getvtkver.tcl version) | ||
+ | VTKPATH = / | ||
+ | #VTKPATH = $(shell tclsh getvtkver.tcl incpath) | ||
+ | VTKLIBPATH = / | ||
+ | #VTKLIBPATH = $(shell tclsh getvtkver.tcl libpath) | ||
+ | VTKLIBS = -lvtkHybrid -lvtkImaging -lvtkIO -lvtkGraphics -lvtkFiltering -lvtkCommon -lvtkjpeg -lvtkpng -lvtkzlib -lvtksys -lfreetype | ||
+ | POSTMAKE = | ||
+ | STRIPFLAG = -s | ||
+ | </ | ||
+ | |||
+ | replace section starting on line 54 with: | ||
+ | |||
+ | < | ||
+ | # PLATFORM MACOSX | ||
+ | CXX = c++ | ||
+ | CC = cc | ||
+ | POBJECTS = | ||
+ | CXXPFLAGS = -W -Wall -DLXMACOSX $(shell wx-config --cxxflags) -I$(VTKPATH) -Wno-deprecated -I/ | ||
+ | CCPFLAGS = -W -Wall -DLXMACOSX $(shell wx-config --cflags) -I/ | ||
+ | LXLIBDIR = | ||
+ | PLIBS = -lz -L/ | ||
+ | POSTMAKE = cp -f ./loch ./ | ||
+ | STRIPFLAG = | ||
+ | </ | ||
+ | |||
+ | **Edit ~/ | ||
+ | |||
+ | Replace line 474: | ||
+ | < | ||
+ | bbox = measure( s.GetChar( 0 ) ); | ||
+ | </ | ||
+ | with: | ||
+ | < | ||
+ | bbox = measure((const wxChar) s.GetChar( 0 ) ); | ||
+ | </ | ||
+ | |||
+ | Replace line 478: | ||
+ | < | ||
+ | BBox char_bbox = measure( s.GetChar( i ) ); | ||
+ | </ | ||
+ | with: | ||
+ | < | ||
+ | BBox char_bbox = measure((const wxChar) s.GetChar( i ) ); | ||
+ | </ | ||
+ | |||
+ | Replace line 657: | ||
+ | < | ||
+ | compile( s.GetChar( i ) ); | ||
+ | </ | ||
+ | with: | ||
+ | < | ||
+ | compile((const wxChar) s.GetChar( i ) ); | ||
+ | </ | ||
+ | |||
+ | Replace line 780: | ||
+ | < | ||
+ | draw( s.GetChar( i ) ); | ||
+ | </ | ||
+ | with: | ||
+ | < | ||
+ | draw((const wxChar) s.GetChar( i ) ); | ||
+ | </ | ||
+ | |||
+ | **Edit ~/ | ||
+ | |||
+ | Replace line 55: | ||
+ | < | ||
+ | : wxMiniFrame(parent, | ||
+ | </ | ||
+ | with: | ||
+ | < | ||
+ | : wxMiniFrame(parent, | ||
+ | </ | ||
- | Copy ~/ |