[MacPorts] #44341: cmake can't find SDK when building openjpeg
MacPorts
noreply at macports.org
Tue Jul 15 10:48:50 PDT 2014
#44341: cmake can't find SDK when building openjpeg
----------------------------+--------------------------------
Reporter: dave.evans55@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Keywords: cmake | Port: openjpeg
----------------------------+--------------------------------
cmake is not finding the SDK when building openjpeg and other ports that
also use cmake
My machine details:
OSX 10.8.5, Xcode 5.1.1 (5B1008), cmake 3.0.0_2
Xcode is installed from the App Store
I also have a couple of Xcodes installed as /Xcode-3.x.x
Here's the openjpeg error log:
{{{
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build
/_Users_davidevans_macports_svn-repo_macports-
trunk_dports_graphics_openjpeg/openjpeg/work/openjpeg-2.1.0" &&
/opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
-DCMAKE_INSTALL_RPATH=/opt/local/lib
-DCMAKE_INSTALL_NAME_DIR=/opt/local/lib
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr"
-DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules
-DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG"
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64"
-DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents//Developer/Toolchains/XcodeDefault.xctoolchain/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
-DCMAKE_OSX_DEPLOYMENT_TARGET="10.8"'
DEBUG: Executing command line: cd "/opt/local/var/macports/build
/_Users_davidevans_macports_svn-repo_macports-
trunk_dports_graphics_openjpeg/openjpeg/work/openjpeg-2.1.0" &&
/opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
-DCMAKE_INSTALL_RPATH=/opt/local/lib
-DCMAKE_INSTALL_NAME_DIR=/opt/local/lib
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr"
-DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules
-DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG"
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64"
-DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents//Developer/Toolchains/XcodeDefault.xctoolchain/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
-DCMAKE_OSX_DEPLOYMENT_TARGET="10.8"
-- The C compiler identification is AppleClang 5.0.0.5000279
CMake Warning at
/opt/local/share/cmake-3.0/Modules/Platform/Darwin.cmake:179 (message):
Ignoring CMAKE_OSX_SYSROOT value:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
because the directory does not exist.
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeSystemSpecificInformation.cmake:36
(include)
CMakeLists.txt:24 (project)
CMake Error at
/opt/local/share/cmake-3.0/Modules/Platform/Darwin.cmake:211 (message):
CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but CMAKE_OSX_SYSROOT:
""
is not set to a MacOSX SDK with a recognized version. Either set
CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
empty.
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeSystemSpecificInformation.cmake:36
(include)
CMakeLists.txt:24 (project)
-- Configuring incomplete, errors occurred!
}}}
The SDK is really at
{{{
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
}}}
I tried setting SDKROOT in my shell environment to the correct location,
but it did not work.
--
Ticket URL: <https://trac.macports.org/ticket/44341>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list