Rajesh Mappu
Rajesh Mappu

Reputation: 482

cmake osx deployment target is '10.11' but CMAKE_OSX_SYSROOT error

I'm getting this cmake error while installing a python file related to openAI gym. The error log which is bugging me is the below lines..

CMake Error at     /usr/local/Cellar/cmake/3.5.2/share/cmake/Modules/Platform/Darwin.cmake:76    (message):
 CMAKE_OSX_DEPLOYMENT_TARGET is '10.11' 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.

Can anyone please guide me how to overcome this error ? I have also attached the full error log if it helps. https://www.dropbox.com/s/qxyxaleu38xgwi0/errorLogOpenAI.txt?dl=0

I have tried set CMAKE_OSX_DEPLOYMENT_TARGET empty command and re-executed installation, but it still threw same error.

Complete error log : https://www.dropbox.com/s/f0dftar6ovbrreu/pachi_2_pdf.pdf?dl=0

Upvotes: 1

Views: 1868

Answers (1)

NP Rooski  Z
NP Rooski Z

Reputation: 3657

Expanding on comment. As error text suggests:

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.

You can unset CMAKE_OSX_DEPLOYMENT_TARGET to let cmake chose defaults. You can add following in your cmake file:

unset(CMAKE_OSX_DEPLOYMENT_TARGET)

Upvotes: 1

Related Questions