I think there may be an issue with compiler flags:
[ 91%] Building CXX object PotreeConverter/CMakeFiles/PotreeConverter.dir/src/main.cpp.o
In file included from /home/opt/PotreeConverter-1.7/PotreeConverter/include/BINPointReader.hpp:11,
from /home/opt/PotreeConverter-1.7/PotreeConverter/src/BINPointReader.cpp:8:
/home/opt/PotreeConverter-1.7/PotreeConverter/include/PointReader.h:11:21: error: ‘filesystem’ is not a namespace-name
11 | namespace fs = std::filesystem;
| ^~~~~~~~~~
I tried with gcc-9 and gcc-10
From what I understand the flag -lstdc++fs may be missing ?
It seems that this part is commented in CMakeLists.txt :
but if I uncomment it, there is a mix up of c++14 and c++17 in the flags
build/PotreeConverter/CMakeFiles/PotreeConverter.dir/flags.make:CXX_FLAGS = -Wall -std=c++17 -pthread -lstdc++ -lstdc++fs -lm -Wall -std=c++14 -pthread -lstdc++ -lm -O3 -DNDEBUG
I think there may be an issue with compiler flags:
I tried with gcc-9 and gcc-10
From what I understand the flag
-lstdc++fs
may be missing ?It seems that this part is commented in CMakeLists.txt :
but if I uncomment it, there is a mix up of c++14 and c++17 in the flags
build/PotreeConverter/CMakeFiles/PotreeConverter.dir/flags.make:CXX_FLAGS = -Wall -std=c++17 -pthread -lstdc++ -lstdc++fs -lm -Wall -std=c++14 -pthread -lstdc++ -lm -O3 -DNDEBUG