[Insight-users] ITK compilation error with Xcode

Antonin antonin07130 at gmail.com
Wed Mar 3 17:56:59 EST 2010


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.



More information about the Insight-users mailing list