VTK/Building/MacOSX: Difference between revisions

From KitwarePublic
< VTK‎ | Building
Jump to navigationJump to search
No edit summary
No edit summary
Line 10: Line 10:
  cmake -DCMAKE_PREFIX_PATH:PATH=/path/to/Qt5.2.1/5.2.1/gcc_64
  cmake -DCMAKE_PREFIX_PATH:PATH=/path/to/Qt5.2.1/5.2.1/gcc_64


=== Configure ===
== Configure ==


   ccmake ../VTK -G "UNIX Makefiles"        \
   ccmake ../VTK -G "UNIX Makefiles"        \
Line 18: Line 18:
           -DVTK_USE_GUISUPPORT:BOOL=ON
           -DVTK_USE_GUISUPPORT:BOOL=ON


=== Build ===
== Build ==


   make
   make


=== Install ===
== Install ==


   make install
   make install

Revision as of 19:50, 28 April 2014

Installing CMake

Installing Qt

Download the Qt5.2 Installer and install into a directory of your choosing.

Later when you configure VTK, remember to pass the option

cmake -DQT_QMAKE_EXECUTABLE:PATH=/path/to/qmake /path/to/VTK

Alternatively, Download the source tarball and build Qt yourself. If you do this, you'll need to include the path to Qt in your CMAKE_PREFIX_PATH

cmake -DCMAKE_PREFIX_PATH:PATH=/path/to/Qt5.2.1/5.2.1/gcc_64

Configure

  ccmake ../VTK -G "UNIX Makefiles"        \
         -DVTK_USE_QVTK:BOOL=ON            \
         -DVTK_USE_CARBON:BOOL=ON          \
         -DCMAKE_INSTALL_PREFIX=/usr/local \
         -DVTK_USE_GUISUPPORT:BOOL=ON

Build

 make

Install

 make install