compiling VTK on Mac Air

Discussion in 'OS X Mountain Lion (10.8)' started by ilantal, Dec 14, 2012.

  1. ilantal macrumors newbie

    Nov 29, 2012
    Haifa, Israel
    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
  2. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    Sounds like you need to install the command line tools for Xcode.
  3. ilantal, Dec 18, 2012
    Last edited: Dec 18, 2012

    ilantal thread starter macrumors newbie

    Nov 29, 2012
    Haifa, Israel
    Thanks for the reply. The Mac is a friend's machine and it took me a couple of days to get back on line with it.
    I downloaded the command line tools even though it said they were included in the Xcode itself. Still the same error message "-bash: make: command not found". Is it located in some strange directory that I'm not reaching?
    I tried to use the terminal find command. That finds me a whole list of files, most of which I get Permission denied. However it does at least know how to run the find command. So what does it have against the make command?
    Very frustrating compared to my Linux box.
    I'm sure it must be there somewhere, but I just can't make it go.

    P.S. I failed to install the software. Now it is installed and I'll try to push forward on the make.
  4. SlCKB0Y macrumors 68040


    Feb 25, 2012
    Sydney, Australia
    hostname:~ user$ which make

Share This Page