masox

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
masox [2010/12/28 11:44] slukamasox [2010/12/28 11:50] – typos and updates of versions sluka
Line 2: Line 2:
  
 \\  \\ 
-  * //This guide is for system 10.5. Older systems may require more pieces of the puzzle to install.// +  * //This guide is for system 10.5 (checked for 10.6.5 too). Older systems may require more pieces of the puzzle to install.// 
   * //The installation is not complicated, but it is not the "double-click on image and drag and drop" kind of installation. //   * //The installation is not complicated, but it is not the "double-click on image and drag and drop" kind of installation. //
   * //You should have administrator rights to install all of the parts. //   * //You should have administrator rights to install all of the parts. //
Line 85: Line 85:
 == Installing VTK on Mac OS X ==  == Installing VTK on Mac OS X == 
   By drewmccormack at Thu, Jun 7 2007 7:01am http://macresearch.org/category/tutorials    By drewmccormack at Thu, Jun 7 2007 7:01am http://macresearch.org/category/tutorials 
-  modified by Martin Sluka May 6 2009 +  modified by Martin Sluka May 6 2009 (tested on 10.6.5 December 26 2010)
  
 **Mac OS X** is a great platform for 3D visualization. It includes ''OpenGL'' as standard, which means many existing libraries and applications can easily be ported to the platform. One such library is the ''Visualization Toolkit (VTK)'', an open source project run by ''Kitware, Inc''. ''VTK'' is at a level above ''OpenGL'': where ''OpenGL'' deals with simple polygons, ''VTK'' deals with isosurfaces, cut planes, and other 3D actors. It’s at a level useful to scientists, and relatively easy to learn. \\ \\ ''VTK'' works great on the Mac, and even has built in support for ''Carbon'' and ''Cocoa''. In the coming weeks, I will show you how to use ''VTK'' in ''Cocoa'' applications, but in this tutorial we will do a bit of preparation: we are going to compile and install ''VTK''. \\ \\  **Mac OS X** is a great platform for 3D visualization. It includes ''OpenGL'' as standard, which means many existing libraries and applications can easily be ported to the platform. One such library is the ''Visualization Toolkit (VTK)'', an open source project run by ''Kitware, Inc''. ''VTK'' is at a level above ''OpenGL'': where ''OpenGL'' deals with simple polygons, ''VTK'' deals with isosurfaces, cut planes, and other 3D actors. It’s at a level useful to scientists, and relatively easy to learn. \\ \\ ''VTK'' works great on the Mac, and even has built in support for ''Carbon'' and ''Cocoa''. In the coming weeks, I will show you how to use ''VTK'' in ''Cocoa'' applications, but in this tutorial we will do a bit of preparation: we are going to compile and install ''VTK''. \\ \\ 
Line 97: Line 97:
 Go to the [[http://www.cmake.org/cmake/resources/software.html|CMake download site]] and locate the most recent binaries for your system (it doesn't matter that it is written .dmg installer only for Tiger there). The file is called something like ''cmake-2.x.x-Darwin-universal.dmg''. Download it, open the disk image and double click the package to install.\\  Go to the [[http://www.cmake.org/cmake/resources/software.html|CMake download site]] and locate the most recent binaries for your system (it doesn't matter that it is written .dmg installer only for Tiger there). The file is called something like ''cmake-2.x.x-Darwin-universal.dmg''. Download it, open the disk image and double click the package to install.\\ 
  
-**Installing VTK5** \\  +**Installing VTK5 (current version VTK6)** \\  
-Keep a watch of lowercase and uppercase characters. VTK_ALL is not the same as VTK_All!. \\ \\ Now to ''VTK'' itself. Go to the [[http://www.vtk.org/VTK/resources/software.html | VTK download page]] and download the latest **source** files. The file is called something like ''vtk-5.x.x.tar.gz'' file. Create folder ''VTK_All'' in folder ''Applications''. We will use that path for the rest of this tutorial. Move the downloaded file to folder ''/Applications/VTK_All''. Unpack the sources by double clicking the tar bundle.  After unpacking, the sources themselves will be in ''/Applications/VTK_All/VTK''. Now we need to create a couple of folders: one is used for building, and one is for installing the ''VTK'' binaries. Create two folders in folder ''/Applications/VTK_All'' as follows ''/VTK_Build'' and ''/VTK_Bin''. To configure ready for building, change working folder to the ''VTK_Build'' folder, and run ''cmake'' passing the path to the ''VTK'' source root as argument. Write in ''Terminal'' window:+Keep a watch of lowercase and uppercase characters. VTK_ALL is not the same as VTK_All!. \\ \\ Now to ''VTK'' itself. Go to the [[http://www.vtk.org/VTK/resources/software.html | VTK download page]] and download the latest **source** files. The file is called something like ''vtk-x.x.x.tar.gz'' file. Create folder ''VTK_All'' in folder ''Applications''. We will use that path for the rest of this tutorial. Move the downloaded file to folder ''/Applications/VTK_All''. Unpack the sources by double clicking the tar bundle.  After unpacking, the sources themselves will be in ''/Applications/VTK_All/VTK''. Now we need to create a couple of folders: one is used for building, and one is for installing the ''VTK'' binaries. Create two folders in folder ''/Applications/VTK_All'' as follows ''/VTK_Build'' and ''/VTK_Bin''. To configure ready for building, change working folder to the ''VTK_Build'' folder, and run ''cmake'' passing the path to the ''VTK'' source root as argument. Write in ''Terminal'' window:
   cd /Applications/VTK_All/VTK_Build [Enter]   cd /Applications/VTK_All/VTK_Build [Enter]
   cmake ../VTK [Enter]   cmake ../VTK [Enter]
Line 136: Line 136:
     CC = cc ${BITTINESS}     CC = cc ${BITTINESS}
     VTKPATH = /Applications/VTK_All/VTK_Bin     VTKPATH = /Applications/VTK_All/VTK_Bin
-    VTKINCLUDEPATH = $(VTKPATH)/include/vtk-5.4 +    # change x.x to yours version of VTK   
-    VTKLIBPATH = $(VTKPATH)/lib/vtk-5.4+    VTKINCLUDEPATH = $(VTKPATH)/include/vtk-x.x 
 +    VTKLIBPATH = $(VTKPATH)/lib/vtk-x.x
     VTKLIBS = -lvtkHybrid -lvtkImaging -lvtkIO -lvtkGraphics -lvtkFiltering -lvtkCommon -lvtkjpeg -lvtkpng -lvtkzlib -lvtksys -lfreetype -lGLU -lGL     VTKLIBS = -lvtkHybrid -lvtkImaging -lvtkIO -lvtkGraphics -lvtkFiltering -lvtkCommon -lvtkjpeg -lvtkpng -lvtkzlib -lvtksys -lfreetype -lGLU -lGL
     POBJECTS = getline.o     POBJECTS = getline.o
  • masox.txt
  • Last modified: 5 years ago
  • by sluka