RockRobotic / copc-lib

copc-lib provides an easy-to-use reader and writer interface for creating and reading Cloud Optimized Point Clouds, with bindings for Python and C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configure failure

hobu opened this issue · comments

I assume something needs to be committed?

#!/bin/bash

rm -rf build
mkdir build
cd build
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release -Dgtest_force_shared_crt=ON -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX

I installed catch2 via conda-forge, and I'm on OSX x86-64.


-- The C compiler identification is Clang 11.1.0
-- The CXX compiler identification is Clang 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/hobu/miniconda3/envs/pdal-build/bin/x86_64-apple-darwin13.4.0-clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/hobu/miniconda3/envs/pdal-build/bin/x86_64-apple-darwin13.4.0-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:44 (add_subdirectory):
  The source directory

    /Users/hobu/dev/git/copc-lib/lib/Catch2

  does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:55 (include):
  include could not find requested file:

    Catch


CMake Error at CMakeLists.txt:56 (catch_discover_tests):
  Unknown CMake command "catch_discover_tests".


Hi Howard,

We have Catch2 as a git submodule, you'll have to clone with git clone --recurse-submodules. Thanks for bringing that up, I will add it to the readme.

In the future we should look at supporting Catch2 through other installation methods @leo-stan

ok, getting a little further.

/Library/Developer/CommandLineTools/usr/bin/c++  -I/Users/hobu/dev/git/copc-lib/include -isystem /Users/hobu/miniconda3/envs/copc-lib/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c++17 -MD -MT CMakeFiles/copc-lib-s.dir/src/hierarchy/key.cpp.o -MF CMakeFiles/copc-lib-s.dir/src/hierarchy/key.cpp.o.d -o CMakeFiles/copc-lib-s.dir/src/hierarchy/key.cpp.o -c /Users/hobu/dev/git/copc-lib/src/hierarchy/key.cpp
/Users/hobu/dev/git/copc-lib/src/hierarchy/key.cpp:33:33: error: implicit instantiation of undefined template 'std::__1::vector<copc::VoxelKey, std::__1::allocator<copc::VoxelKey> >'
std::vector<VoxelKey> VoxelKey::GetParents(bool include_current) const
                                ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iosfwd:216:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS vector;
                           ^
/Users/hobu/dev/git/copc-lib/src/hierarchy/key.cpp:35:27: error: implicit instantiation of undefined template 'std::__1::vector<copc::VoxelKey, std::__1::allocator<copc::VoxelKey> >'
    std::vector<VoxelKey> out;
                          ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iosfwd:216:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS vector;

Hmm, what compiler/version are you using?

AppleClang 11.0.3.11030032

#include <vector> must be implicit or something for one of your build setups. See #22.

Ah, gotcha. We are all using g++ I think, it must do something weird. Thanks!