Skip to content

can't compile on Mac OS X 10.11.1... #1

@drhalftone

Description

@drhalftone

I'm trying to compile ICP, but the process is crashing during the compiling of RBC. Here is the output from make:

Scanning dependencies of target RBC
[ 41%] Creating directories for 'RBC'
[ 44%] Performing download step (git clone) for 'RBC'
Cloning into 'RBC'...
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 46%] Copying RBC kernels to /Users/dllau/SourceTree/ICP-build/kernels/RBC
[ 48%] No patch step for 'RBC'
[ 51%] Performing update step for 'RBC'
Current branch master is up to date.
[ 53%] Performing configure step for 'RBC'
-- The C compiler identification is AppleClang 7.0.0.7000176
-- The CXX compiler identification is AppleClang 7.0.0.7000176
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Found OpenCL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenCL.framework
-- - Includes: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OPENCL.framework
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework
-- Found CLUtils:
-- - Includes: /Users/dllau/SourceTree/ICP-build/external/CLUtils/src/CLUtils/include
-- - Libraries: /Users/dllau/SourceTree/ICP-build/external/CLUtils/src/CLUtils-build/lib/libCLUtils.a
-- Could not find libfreenect
-- please give some paths to CMake or make sure libfreenect is installed in your system
CMake Warning (dev) at src/CMakeLists.txt:7 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "CLUtils" of target "RBCAlgorithms" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at src/CMakeLists.txt:6 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "CLUtils" of target "RBCHelperFuncs" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dllau/SourceTree/ICP-build/external/RandomBallCover/src/RBC-build
[ 55%] Performing build step for 'RBC'
Scanning dependencies of target RBCAlgorithms
[ 50%] Building CXX object src/CMakeFiles/RBCAlgorithms.dir/RBC/algorithms.cpp.o
Linking CXX static library ../lib/libRBCAlgorithms.a
[ 50%] Built target RBCAlgorithms
Scanning dependencies of target RBCHelperFuncs
[100%] Building CXX object src/CMakeFiles/RBCHelperFuncs.dir/RBC/tests/helper_funcs.cpp.o
/Users/dllau/SourceTree/ICP-build/external/RandomBallCover/src/RBC/src/RBC/tests/helper_funcs.cpp:44:48: error: non-constant-expression cannot be narrowed from type 'long long' to 'result_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
std::default_random_engine generator { seed };
^~~~
/Users/dllau/SourceTree/ICP-build/external/RandomBallCover/src/RBC/src/RBC/tests/helper_funcs.cpp:44:48: note: insert an explicit cast to silence this issue
std::default_random_engine generator { seed };
^~~~
static_cast<result_type>( )
1 error generated.
make[5]: *** [src/CMakeFiles/RBCHelperFuncs.dir/RBC/tests/helper_funcs.cpp.o] Error 1
make[4]: *** [src/CMakeFiles/RBCHelperFuncs.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [external/RandomBallCover/src/RBC-stamp/RBC-build] Error 2
make[1]: *** [external/RandomBallCover/CMakeFiles/RBC.dir/all] Error 2
make: *** [all] Error 2
18:29:00: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project ICP (kit: Desktop)
When executing step "Make"
18:29:00: Elapsed time: 00:18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions