Re: [gtk-osx-users] CMake issue when building latest GTK+.




On Jul 14, 2016, at 9:58 AM, Pascal <p p14 orange fr> wrote:

Hello,

I'm using MacOS 10.11 with XCode 7.3.1.
I've got CMake issue when building latest GTK+:

cmd$ jhbuild bootstrap
<...>
loading initial cache file /usr/local/src-gtk-osx/cmake-3.2.1/Bootstrap.cmk/InitialCacheFlags.cmake
CMake Warning at Modules/Platform/Darwin-Initialize.cmake:128 (message):
 Ignoring CMAKE_OSX_SYSROOT value:

  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

 because the directory does not exist.
Call Stack (most recent call first):
 Modules/CMakeSystemSpecificInitialize.cmake:18 (include)
 CMakeLists.txt:16 (project)


CMake Error at Modules/Platform/Darwin.cmake:76 (message):
 CMAKE_OSX_DEPLOYMENT_TARGET is '10.7' 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):
 Modules/CMakeSystemSpecificInformation.cmake:36 (include)
 CMakeLists.txt:16 (project)


-- Configuring incomplete, errors occurred!
See also "/usr/local/src-gtk-osx/cmake-3.2.1/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src-gtk-osx/cmake-3.2.1/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
*** Error during phase configure of cmake: ########## Error running ./bootstrap 
--prefix=/usr/local/xnadalib-2016 *** [8/23]

 [1] Rerun phase configure
 [2] Ignore error and continue to build
 [3] Give up on module
 [4] Start shell
 [5] Reload configuration
 [6] Go to phase "wipe directory and start over"
 [7] Go to phase "clean"
 [8] Go to phase "distclean"
choice: 4
exit shell to continue with build

[JH] cmd$ env | grep -i cmake
PWD=/usr/local/src-gtk-osx/cmake-3.2.1
CMAKE_PREFIX_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr

The only relevant Internet pointer I've found is not exactly my case as CMAKE_OSX_DEPLOYMENT_TARGET is not 
defined.
https://mail.gnome.org/archives/gtk-osx-users-list/2013-October/msg00004.html

Any idea?


Hmm. Haven't seen that one in a while. It used to be a problem in cmake-2.x because they'd defined some dumb 
defaults, but they'd fixed that by 3.2.1. 

Make sure that your prefix and build directory are empty and that your environment has no CMAKE_ variables 
set. Also check ~/.jhbuildrc-custom for CMAKE variables. If all else fails you can export 
CMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
and
CMAKE_OSX_DEPLOYMENT_TARGET="10.11"

and select 6 "wipe directory and start over". The last is important because cmake caches parameters and 
ignores new settings so you need a pristine build directory for each try.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]