TetWild icon indicating copy to clipboard operation
TetWild copied to clipboard

Function wrapper issue on Ubuntu

Open bkontou opened this issue 3 years ago • 1 comments

I do not have much experience with including libraries in C++ so apologies if this is a very simple mistake on my part.

I am trying to include TetWild in my CMakeLists. My program compiles correctly but when I try to run it I get this error message when trying to call tetwild::tetrahedralization:

"Abnormal program termination: received signal 11 (Segmentation fault)"

Is there a specific way to include TetWild in CMakeLists?

Thank you

bkontou avatar Mar 19 '21 17:03 bkontou

Hi,

The brainless way to include TetWild is to add all the source files. Or you can compile TetWild as a library and then include it: you can refer to this examples (our similar project): https://github.com/wildmeshing/fTetWild/blob/master/CMakeLists.txt#L153-L155 where the source files are added to the library https://github.com/wildmeshing/fTetWild/blob/master/src/CMakeLists.txt

Yixin-Hu avatar Jun 02 '21 21:06 Yixin-Hu