Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
aradhyamathur opened this issue Jan 25, 2023 · 3 comments
Open

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

aradhyamathur opened this issue Jan 25, 2023 · 3 comments

Comments

@aradhyamathur
Copy link

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
Copy link

promistrio commented Feb 1, 2023

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
Copy link

-DCMAKE_BUILD_TYPE=Release

add -DCMAKE_BUILD_TYPE=Release works for me

@bouk
Copy link

bouk commented Feb 22, 2024

Fixed in edf8349

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants