[Insight-users] ITK compilation error with Xcode

Luis Ibanez luis.ibanez at kitware.com
Sat Mar 6 19:08:48 EST 2010


Hi Antonin,

When you configured ITK with CMake,
what directory did you put in the
CMake variable:


            CMAKE_INSTALL_PREFIX

??

----


By default, CMake chooses "/usr/local"


You probably should replace it with the directory
where you want ITK to be installed.

Just rerun CMake and edit that variable,
then rebuild.



      Regards,


             Luis


--------------------------------------------------------------
On Wed, Mar 3, 2010 at 5:56 PM, Antonin <antonin07130 at gmail.com> wrote:
>
> Hello, I am trying to make ITK work on Mac OS 10.6, with Xcode 3.6.1 64bits.
> I am a newbie using ITK this way. I figured out how to use it with the
> command line (cmake and then make install...), but I would like to use a
> SDK.
> I used Cmake to produce a Xcode project, from the ITK sources.
> I could the open this project in Xcode, and tried a "build all" which worked
> just fine,
> I then tried to just build the "install", and I got this error, I enclosed
> the beginning of the log, and the end where the error is :
>
> Build install of project ITK with configuration Debug
>
> PhaseScriptExecution "CMake ReRun"
> /Users/antonin/Prog/ITK_Bin/ITK.build/Debug/install.build/Script-167E3AC0167E3AC0167E3AC0.sh
> cd /Users/antonin/Prog/ITK_Source
> setenv ACTION build
> setenv ALTERNATE_GROUP staff
> setenv ALTERNATE_MODE u+w,go-w,a+rX
> setenv ALTERNATE_OWNER antonin
> setenv ALWAYS_SEARCH_USER_PATHS YES
> setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
> setenv APPLE_INTERNAL_DIR /AppleInternal
> setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
> setenv APPLE_INTERNAL_LIBRARY_DIR /AppleInternal/Library
> setenv APPLE_INTERNAL_TOOLS /AppleInternal/Developer/Tools
> setenv APPLY_RULES_IN_COPY_FILES NO
> setenv ARCHS x86_64
> setenv ARCHS_STANDARD_32_64_BIT "x86_64 i386 ppc"
> setenv ARCHS_STANDARD_32_BIT "i386 ppc"
> setenv ARCHS_STANDARD_64_BIT x86_64
> setenv BUILD_COMPONENTS "headers build"
> setenv BUILD_DIR /Users/antonin/Prog/ITK_Bin
> setenv BUILD_ROOT /Users/antonin/Prog/ITK_Bin
> setenv BUILD_STYLE Debug
> setenv BUILD_VARIANTS normal
> setenv BUILT_PRODUCTS_DIR /Users/antonin/Prog/ITK_Bin/Debug
> setenv CACHE_ROOT
> /var/folders/Ei/EiMDxo1WExuUZI4GKwyVxk+++TI/-Caches-/com.apple.Xcode.501
> setenv CCHROOT
> /var/folders/Ei/EiMDxo1WExuUZI4GKwyVxk+++TI/-Caches-/com.apple.Xcode.501
> setenv CHMOD /bin/chmod
> setenv CHOWN /usr/sbin/chown
> setenv CLASS_FILE_DIR
> /Users/antonin/Prog/ITK_Bin/ITK.build/Debug/install.build/JavaClasses
> setenv CLEAN_PRECOMPS YES
> setenv CLONE_HEADERS NO
> setenv CODESIGNING_FOLDER_PATH /Users/antonin/Prog/ITK_Bin/Debug/
> setenv COMMAND_MODE legacy
> setenv COMPOSITE_SDK_DIRS
> /var/folders/Ei/EiMDxo1WExuUZI4GKwyVxk+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs
> setenv CONFIGURATION Debug
> setenv CONFIGURATION_BUILD_DIR /Users/antonin/Prog/ITK_Bin/Debug
> setenv CONFIGURATION_TEMP_DIR /Users/antonin/Prog/ITK_Bin/ITK.build/Debug
>
> [.....] a lot of stuff
>
>
> setenv VERSION_INFO_STRING "\"@(#)PROGRAM:install  PROJECT:ITK-\""
> setenv WARNING_CFLAGS "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"
> setenv XCODE_APP_SUPPORT_DIR /Developer/Library/Xcode
> setenv XCODE_VERSION_ACTUAL 0320
> setenv XCODE_VERSION_MAJOR 0300
> setenv XCODE_VERSION_MINOR 0320
> setenv YACC /Developer/usr/bin/yacc
> /bin/sh -c
> /Users/antonin/Prog/ITK_Bin/ITK.build/Debug/install.build/Script-167E4160167E4160167E4160.sh
>
> /Applications/CMake\ 2.8-0.app/Contents/bin/cmake -DBUILD_TYPE=Debug -P
> cmake_install.cmake
> -- Install configuration: "Debug"
> CMake Error at cmake_install.cmake:31 (FILE):
>  file cannot create directory: /usr/local/include/InsightToolkit.  Maybe
>  need administrative privileges.
>
>
> make: *** [install_buildpart_0] Error 1
> Command /bin/sh failed with exit code 2
>
>
>
>
>
> I dont understand why it wants to create a
> "/usr/local/include/InsightToolkit." folder as OSX is not organized this
> way, users are in "users" and not "usr"
> --
> View this message in context: http://old.nabble.com/ITK-compilation-error-with-Xcode-tp27773116p27773116.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list