cnr-isti-vclab / vcglib

The VCGlib is a C++, templated, no dependency, library for manipulation, processing and cleaning of triangle meshes
http://vcg.isti.cnr.it/vcglib
GNU General Public License v3.0
1.11k stars 355 forks source link

error: 'HETYPE' was not declared in this scope #211

Open aradhyamathur opened 1 year ago

aradhyamathur commented 1 year ago

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.

promistrio commented 1 year ago

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

adahbingee commented 1 year ago

-DCMAKE_BUILD_TYPE=Release

add -DCMAKE_BUILD_TYPE=Release works for me

bouk commented 6 months ago

Fixed in https://github.com/cnr-isti-vclab/vcglib/commit/edf834918fa5964096216a7d458eda08768d49ae