Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Function wrapper issue on Ubuntu #80

Open
bkontou opened this issue Mar 19, 2021 · 1 comment
Open

Function wrapper issue on Ubuntu #80

bkontou opened this issue Mar 19, 2021 · 1 comment

Comments

@bkontou
Copy link

bkontou commented Mar 19, 2021

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

@Yixin-Hu
Copy link
Owner

Yixin-Hu commented Jun 2, 2021

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

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

No branches or pull requests

2 participants