Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ilantal

macrumors newbie
Original poster
Nov 29, 2012
11
0
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
 

Cromulent

macrumors 604
Oct 2, 2006
6,817
1,102
The Land of Hope and Glory
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

Sounds like you need to install the command line tools for Xcode.

https://developer.apple.com/downloads/
 

ilantal

macrumors newbie
Original poster
Nov 29, 2012
11
0
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.

Thanks,
Ilan
P.S. I failed to install the software. Now it is installed and I'll try to push forward on the make.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.