Indeed, if I compile without CGAL, the process runs fine, but when I set CCORE_LIB_USE_CGAL to "yes", I get the following error at make runtime:
Code: Select all
In file included from /opt/cloudcompare/libs/qCC_db/extern/CCCoreLib/src/ErrorFunction.cpp:7:
/opt/cloudcompare/libs/qCC_db/extern/CCCoreLib/include/CCConst.h:29:38: error: ‘(1.8e+2 / 3.1415926535897931e+0)’ is not a constant expression
constexpr double RAD_TO_DEG = (180.0/M_PI);
~~~~~~^~~~~~
I bravely changed RAD_TO_DEG and DEG_TO_RAD expressions to decimals actual values in CCConst.h file, but again further new errors occur:
Code: Select all
/opt/cloudcompare/libs/qCC_db/src/ccCameraSensor.cpp:56:54: error: ‘(5.4500000000000002e+0 * 1.0e-3)’ is not a constant expression
constexpr float focal_mm = static_cast<float>(5.45 * 1.0e-3); // focal length (real distance in meter)
~~~~~^~~~~~~~
Has anyone a suggestion to help me solve this issue ?
Thanks,
Vincent.