Build - Error in CMake GUI

Screen Shot 2020-08-31 at 17.28.27 Screen Shot 2020-08-31 at 17.27.10

If i remove the line 70, the other errors happened.
error:
CMake Error at CMake/SlicerInitializeOSXVariables.cmake:70 (message):
CMAKE_OSX_DEPLOYMENT_TARGET must be 10.13 or greater.
Call Stack (most recent call first):
CMakeLists.txt:31 (include)

How can i proceed here?

What version of macOS are you running?
What version of XCode are you using?

What area of Slicer development are you interested in?

I`m using macOS Catalina 10.15.2 (19C57)
Cmake: 3.18.2
Xcode: Version 11.3 (11C29)

I just clone de Slicer and SlicerIGT github, create a new folder called Slicer-bin and Igt-bin. In the Cmake i put the “source code” = github cloned folder. In the “where to build the binaries” = -bin folders. I`m trying to build both of them to make some experiments.

I would suggest not to do anything with SlicerIGT until you have a working Slicer build.

Have you built Slicer successfully yet?

The present problem is in Slicer build. I did nothing with IGT yet.

Any tips? I’m out of ideas.

@Valmar Have you been following the macOS build instructions over at https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/macos.html ?

@pieper Can you provide help for this macOS user?

Hi @Valmar I start a fresh build using the cmake command line below. This satisfies the initial checks. After that first configuration you can use ccmake if you need to make further changes.

BUILD_TYPE=Debug
cmake \
	-DCMAKE_BUILD_TYPE:STRING=${BUILD_TYPE} \
	-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
	-DQt5_VERSION:STRING=5.15 \
	-DQt5_DIR:PATH=/usr/local/Cellar/qt/5.15.0/lib/cmake/Qt5 \
	/Users/pieper/slicer/latest/Slicer
1 Like

Thank you @pieper! Cmake GUI isn`t working in this first step. The same problem appear again in the make step.

command used: make and SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk make -j20 (documentation)

error:
CMake Error at CMake/SlicerInitializeOSXVariables.cmake:70 (message):
CMAKE_OSX_DEPLOYMENT_TARGET must be 10.13 or greater.
Call Stack (most recent call first):
CMakeLists.txt:31 (include)

– Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
valmarzinho@Valmarzinho Slicer-bin %

Hmm, I don’t have that error. Are you sure you copied the cmake line that I pasted before? It sets -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 so that error should not happen…

I reinstalled cmake, xcode and qt. I deleted the cmakeCache.

I used the cmake command that you passed me (changing the user name) and now it worked.

I’m waiting for the make to end!

:+1:

Depending on your machine it can take a while. Using make -j N where N is the number of CPU cores available can speed things along nicely. Good luck.

1 Like