Skip to content

Compiling on linux #53

Description

@jgrocha

Compiling on Linux

With PDAL current master, I'm not able to compile wrench.

jgr@dragon:~/dev/cpp/wrench/build$ make
[  4%] Building CXX object CMakeFiles/pdal_wrench.dir/src/main.cpp.o
[  8%] Building CXX object CMakeFiles/pdal_wrench.dir/src/alg.cpp.o
[ 13%] Building CXX object CMakeFiles/pdal_wrench.dir/src/boundary.cpp.o
[ 17%] Building CXX object CMakeFiles/pdal_wrench.dir/src/clip.cpp.o
[ 21%] Building CXX object CMakeFiles/pdal_wrench.dir/src/density.cpp.o
[ 26%] Building CXX object CMakeFiles/pdal_wrench.dir/src/info.cpp.o
[ 30%] Building CXX object CMakeFiles/pdal_wrench.dir/src/merge.cpp.o
[ 34%] Building CXX object CMakeFiles/pdal_wrench.dir/src/thin.cpp.o
[ 39%] Building CXX object CMakeFiles/pdal_wrench.dir/src/to_raster.cpp.o
[ 43%] Building CXX object CMakeFiles/pdal_wrench.dir/src/to_raster_tin.cpp.o
[ 47%] Building CXX object CMakeFiles/pdal_wrench.dir/src/to_vector.cpp.o
[ 52%] Building CXX object CMakeFiles/pdal_wrench.dir/src/translate.cpp.o
[ 56%] Building CXX object CMakeFiles/pdal_wrench.dir/src/utils.cpp.o
[ 60%] Building CXX object CMakeFiles/pdal_wrench.dir/src/vpc.cpp.o
In file included from /home/jgr/dev/cpp/wrench/src/vpc.cpp:26:
/home/jgr/dev/cpp/wrench/src/nlohmann/json.hpp:19340:38: error: reference to 'json_pointer' is ambiguous
 19340 |     using json_pointer = ::nlohmann::json_pointer<StringType>;
       |                                      ^
/usr/local/include/pdal/JsonFwd.hpp:45:7: note: candidate found by name lookup is 'nlohmann::json_pointer'
   45 | class json_pointer;
      |       ^
/home/jgr/dev/cpp/wrench/src/nlohmann/json.hpp:13716:7: note: candidate found by name lookup is 'nlohmann::json_abi_v3_11_2::json_pointer'
 13716 | class json_pointer
       |       ^
/home/jgr/dev/cpp/wrench/src/nlohmann/json.hpp:21542:39: error: reference to 'json_pointer' is ambiguous
 21542 |     ValueType value(const ::nlohmann::json_pointer<BasicJsonType>& ptr, const ValueType& default_value) const
       |                                       ^
/usr/local/include/pdal/JsonFwd.hpp:45:7: note: candidate found by name lookup is 'nlohmann::json_pointer'
   45 | class json_pointer;
      |       ^
/home/jgr/dev/cpp/wrench/src/nlohmann/json.hpp:13716:7: note: candidate found by name lookup is 'nlohmann::json_abi_v3_11_2::json_pointer'
 13716 | class json_pointer

Compiling instructions

mkdir build; cd build
cmake -DPDAL_DIR=/usr/local/lib/cmake/PDAL ..
make

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions