Closed straz closed 8 years ago
c++ 4.8 -std=c++1y is not c++14
http://en.cppreference.com/w/cpp/language/integer_literal mentions:
Optional single quotes(') may be inserted between the digits as a separator. They are ignored by the compiler. (since C++14)
c++14 starts with g++4.9 you need to install g++4.9
OK, thanks. I cannot find a simple way (i.e. yum install ...
) to install g++4.9 in CentOS 7. I'll switch to Ubuntu.
I attempted to follow the build instructions ("linux / gcc 4.9" in README.md to build on CentOS 7:
It seems this has a couple of problems: 1) gcc 4.8.5 does not recognize
-std=c++14
. It gives this error:c++: error: unrecognized command line option ‘-std=c++14’
Apparently one workaround is to manually replace this with
-std=c++1y
in two files created bycmake
. A better fix would be to have thecmake
script be more careful to generate the correct option, in these two files:2)
./PotreeConverter/resources/page_template
seems to be missing after thecmake
step. I assume that we're missing a call tomake
in these instructions3) Calling
make
leads to a large number of errors, only some of which are included below. This seems like some kind of library dependency error that could presumably be caught by some dependency checks. Any suggestions?