197 |
|
|
198 |
#Edit the CMakeCache.txt file and make the following changes: |
#Edit the CMakeCache.txt file and make the following changes: |
199 |
#(Please replace .... with an absolute path to the stand directory) |
#(Please replace .... with an absolute path to the stand directory) |
200 |
|
#The text before the = is the text to search for. |
201 |
|
#For example, |
202 |
|
# BUILD_SHARED_LIBS:BOOL=OFF |
203 |
|
# should be changed to read |
204 |
|
# BUILD_SHARED_LIBS:BOOL=ON |
205 |
#----------------- |
#----------------- |
206 |
|
|
207 |
BUILD_EXAMPLES should be OFF |
BUILD_EXAMPLES:BOOL=OFF |
208 |
BUILD_SHARED_LIBS should be ON |
BUILD_SHARED_LIBS:BOOL=ON |
209 |
|
|
210 |
CMAKE_INSTALL_PREFIX ..../stand/packages/vtk-5.2.1 |
CMAKE_INSTALL_PREFIX:PATH=..../stand/packages/vtk-5.2.1 |
211 |
CMAKE_VERBOSE_MAKEFILE TRUE |
CMAKE_VERBOSE_MAKEFILE:BOOL=TRUE |
212 |
|
|
213 |
#check PYTHON_EXECUTABLE is correct. |
#check PYTHON_EXECUTABLE is correct. |
214 |
#but it seems to be when I went through these steps |
#but it seems to be when I went through these steps |
215 |
|
|
216 |
VTK_OPENGL_HAS_OSMESA TRUE |
VTK_OPENGL_HAS_OSMESA:BOOL=TRUE |
217 |
VTK_USE_64BIT_IDS ON |
VTK_USE_64BIT_IDS:BOOL=ON |
218 |
# That last one is marked as "May cause some bugs" in the original instructions |
# That last one is marked as "May cause some bugs" in the original instructions |
219 |
|
|
220 |
VTK_WRAP_PYTHON ON |
VTK_WRAP_PYTHON:BOOL=ON |
221 |
VTK_USE_MANGLED_MESA OFF |
VTK_USE_MANGLED_MESA:BOOL=OFF |
222 |
|
|
223 |
|
VTK_USE_OFFSCREEN:BOOL=ON |
224 |
#-------------------- |
#-------------------- |
225 |
|
|
226 |
cmake . |
cmake . |
230 |
|
|
231 |
#---------------- |
#---------------- |
232 |
|
|
233 |
VTK_USE_TK OFF |
VTK_USE_TK:BOOL=OFF |
234 |
|
|
235 |
OSMESA_INCLUDE_DIR ..../stand/packages/mesa/include |
OSMESA_INCLUDE_DIR:PATH=..../stand/packages/mesa/include |
236 |
|
|
237 |
OSMESA_LIBRARY ..../stand/packages/mesa/lib/libOSMesa.so |
OSMESA_LIBRARY:FILEPATH=..../stand/packages/mesa/lib/libOSMesa.so |
238 |
|
|
239 |
PYTHON_INCLUDE_PATH ..../stand/packages/python/include/python2.6 |
PYTHON_INCLUDE_PATH:PATH=..../stand/packages/python/include/python2.6 |
240 |
|
|
241 |
PYTHON_LIBRARY ..../stand/packages/python/lib/libpython2.6.so |
PYTHON_LIBRARY:FILEPATH=..../stand/packages/python/lib/libpython2.6.so |
242 |
|
|
243 |
OPENGL_INCLUDE_DIR ..../stand/packages/mesa/include |
OPENGL_INCLUDE_DIR:PATH=..../stand/packages/mesa/include |
244 |
|
|
245 |
OPENGL_gl_LIBRARY ..../stand/packages/mesa/lib/libGL.so |
OPENGL_gl_LIBRARY:FILEPATH=..../stand/packages/mesa/lib/libGL.so |
246 |
|
|
247 |
#---------------- |
#---------------- |
248 |
|
|