cnr-isti-vclab/vcglib

error: 'HETYPE' was not declared in this scope

aradhyamathur opened this issue · 3 comments

While compiling openMVS using instructions provided here with vcglib throws the following error.

/home/thor/pythonProjects/vcglib/vcg/simplex/tetrahedron/pos.h: In member function 'void vcg::tetra::Pos<MTTYPE>::Assert()':
/home/thor/pythonProjects/vcglib/vcg/simplex/tetrahedron/pos.h:388:9: error: 'HETYPE' was not declared in this scope
         HETYPE ht=*this;
         ^~~~~~
/home/thor/pythonProjects/vcglib/vcg/simplex/tetrahedron/pos.h:388:9: note: suggested alternative: 'MTTYPE'
         HETYPE ht=*this;
         ^~~~~~
         MTTYPE
/home/thor/pythonProjects/vcglib/vcg/simplex/tetrahedron/pos.h:389:9: error: 'ht' was not declared in this scope
         ht.FlipT();
         ^~
/home/thor/pythonProjects/vcglib/vcg/simplex/tetrahedron/pos.h:389:9: note: suggested alternative: '_t'
         ht.FlipT();
         ^~
         _t
In file included from /home/thor/pythonProjects/openMVS/libs/MVS/Mesh.cpp:58:

Any guidance would be greatly appreciated.

Just set building option -DCMAKE_BUILD_TYPE=Release for cmake like

cmake .. -DCMAKE_BUILD_TYPE=Release -DVCG_ROOT=../../../Tools/vcglib

There is error on the string 388 in file https://github.com/cnr-isti-vclab/vcglib/blob/main/vcg/simplex/tetrahedron/pos.h#L388 in debug mode

-DCMAKE_BUILD_TYPE=Release

add -DCMAKE_BUILD_TYPE=Release works for me

bouk commented

Fixed in edf8349