You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was building the code and got the following error :
error: the value of ‘NrDims’ is not usable in a constant expression
I checked the build dependencies and they match the requirements.
cmake version 3.22.1
GNU Make 4.3
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
libpcl-dev is already the newest version (1.12.1+dfsg-3build1).
There are a series of errors, here is the last one :
/usr/include/pcl-1.12/pcl/point_representation.h:310:7: required from here
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: error: the value of ‘NrDims’ is not usable in a constant expression
/usr/include/pcl-1.12/pcl/point_representation.h:253:19: note: ‘NrDims’ was not initialized with a constant expression
253 | const int NrDims = pcl::traits::datatype<PointDefault, Key>::size;
| ^~~~~~
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: note: in template argument for type ‘int’
254 | Helper<Key, FieldT, NrDims>::copyPoint (p1_, p2_, f_idx_);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/environment.dir/build.make:76: CMakeFiles/environment.dir/src/environment.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/environment.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Any idea on how to fix this ?
The text was updated successfully, but these errors were encountered:
Greeting,
I was building the code and got the following error :
I checked the build dependencies and they match the requirements.
There are a series of errors, here is the last one :
Any idea on how to fix this ?
The text was updated successfully, but these errors were encountered: