[dinifti] installation on Mac Pro OS X

Valerio Luccio valerio.luccio at nyu.edu
Tue Jun 30 12:56:39 EDT 2009


Eldreth, Dana A. wrote:
> Dear Dinifit experts:
>
> I am trying to install dnifiti on my mac pro os x, but I am running into some problems because some of these instructions are not as specific as a novice like me would need to know.
>
> I installed cmake in my applications folder and then continued with the installation instructions making sure to download all the necessary files listed on your website.
> I wasn't sure where to download all of these files and permission problems do not enable me to download in usr/local, thus I downloaded it on my Desktop.  I'm guessing it's not the best method.
>
> I typed the following command and here are the errors I received (see below).  I also tried some of the commands on the install document, but that didn't seem to work either.
>
> Any help for a novice like me would be greatly appreciated.
>
> Thanks,
> Dana
>
> ERROR:
> dhcp-455-108119:~/Desktop/DICOMNIfTI/build mcarlson$ cmake -D INCLUDEDIR:PATH=/Users/mcarlson/Desktop/ -D LIBDIR:PATH=/Users/mcarlson/Desktop ..
> CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
> CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER
> CMake Error: Could not find cmake module file:/Users/mcarlson/Desktop/DICOMNIfTI/build/CMakeFiles/CMakeCXXCompiler.cmake
> CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
> Missing variable is:
> CMAKE_C_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
> Missing variable is:
> CMAKE_C_COMPILER
> CMake Error: Could not find cmake module file:/Users/mcarlson/Desktop/DICOMNIfTI/build/CMakeFiles/CMakeCCompiler.cmake
> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
> -- Configuring incomplete, errors occurred!
> _______________________________________________
> dinifti mailing list
> dinifti at cbi.nyu.edu
> http://cbi.nyu.edu/mailman/listinfo/dinifti
>    
Dear Dana,
these appear to be cmake errors and not dinifti.
The Desktop is not the best place, but it will do.
You have two choices, but the best for you is probably the GUI way:

   1. Open /Applications/CMake[...].app (the name of the application
      contains the version number, on my Mac it's "CMake 2.6-patch 2".)
   2. In the "source" field put "/Users/mcarlson/Desktop/DICOMNIfTI"
      (you can use the "Browse Source" button if it's easier.)
   3. In the "build" field put "/Users/mcarlson/Desktop/DICOMNIfTI" (or
      use the "Browse Build" button.)
   4. Hit "Configure" and on the next window hit "OK" keeping the
      default values. You're going to get a nasty looking error message
      box and the middle window is going to turn red, but don't worry,
      we'll fix that next.
   5. In the "Search" field enter "DINIFTI". You'll see a list of
      variable names with the values set to <...>-NOTFOUND. You'll have
      to modify the value field by clicking on it and entering the
      correct one (a helpful little file completion widget pops up.) In
      your case they should be (I'm doing some guess work here, so you
      might need to change these a bit):
          * DINIFTI_CTN_INCLUDE => /Users/mccarlson/Desktop/ctn
          * DINIFTI_CTN_LIB => /Users/mccarlson/Desktop/libcnt.a
          * DINIFTI_NIFTIIO_INCLUDE => /Users/mccarlson/Desktop/nifti
          * DINIFTI_NIFTIIO_LIB => /Users/mccarlson/Desktop/libniftiio.a
          * DINIFTI_ZNZ_INCLUDE = > /Users/mccarlson/Desktop/nifti
          * DINIFTI_ZNZ_LIB => /Users/mccarlson/Desktop/libznz.a

        Notice that the "INCLUDE"'s are directories, while the "LIB"'s
        are the full library file.

   6. Hit the "Configure" button again. Correct any other error you
      might still have.
   7. Hit the "Generate" button.

The good news is that you will not have to redo this again. All the 
variables are set "in stone." You could also modify other variables, 
such as BINDIR, which specifies where the executable is copied if you do 
an "install" (see below.)

Go to your terminal and:

    * $ cd ~/Desktop/DICOMNIfTI/build
    * $ make

And you should find a "dinifti" and a "dicomhead" in 
~/Desktop/DICOMNIfTI/build. The second step above is "make", not "cmake" 
(cmake is used only to generate the files used by make.) If you don't 
want "dicomhead", the second step can be simply "make dinifti". To 
"install" use "make install" (but if you don't have write privileges to 
the default /usr/local/bin directory, you will have to first modify the 
BINDIR variable in cmake.)

Good luck !

-- 
Valerio Luccio			(212) 998-8736
Center for Brain Imaging	4 Washington Place, Room 156
New York University		New York, NY 10003

         "In an open world, who needs windows or gates?"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cbi.nyu.edu/pipermail/dinifti/attachments/20090630/58267e79/attachment.html 


More information about the dinifti mailing list