how to compile VTK on Mac Air

Posted by Ilan Tal on Super User See other posts from Super User or by Ilan Tal
Published on 2012-12-13T10:17:10Z Indexed on 2012/12/13 11:08 UTC
Read the original article Hit count: 368

Filed under:
|

I am trying to compile VTK on a Mac after successfully doing so on Linux. I am using CMake 2.8.9 and for a long time I had a problem where it couldn't find jni.h. If anyone else has the problem, the answer is to have JAVA_INCLUDE_PATH2 point to "-framework JavaVM". After that it successfully finds JNI and does a "Configure" followed by "Generate".

According to the instructions I have the next step should be easy: in a terminal run "make -j 2". I get a message "-bash: make: command not found". Strange.... I am in the vtkBuild directory, which seems the most reasonable place. I even tried the parent directory where I have the VTK source but that didn't work either.

I ran a make under Linux and had no troubles, so what do I need to do with the Mac? Thanks, Ilan

© Super User or respective owner

Related posts about osx

Related posts about xcode