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

using meshfix in libigl project #1

Open
nclement opened this issue May 18, 2017 · 0 comments
Open

using meshfix in libigl project #1

nclement opened this issue May 18, 2017 · 0 comments

Comments

@nclement
Copy link

We have a program written largely using libigl, but would like to use meshfix to fix the mesh. Unfortunately, we're also using libigl's triangle (to generate the triangle meshes in the first place). When trying to compile meshfix with libigl, I'm getting several "multiple definition" errors, like this:

libigl/triangle/libtriangle.a(triangle.c.o): In function `exactinit':
triangle.c:(.text+0x3510): multiple definition of `exactinit'
meshfix/JMeshExt-1.0alpha_src/libjmeshext.a(jrs_predicates.c.o):jrs_predicates.c:(.text+0x5f0): first defined here

It seems like the issue is that several of these functions are included in both libigl/external/triangle/triangle.c and meshfix/JMeshExt-1.0alpha_src/src/JRS_Predicates/jrs_predicates.c. Since libigl builds libigl_triangle.a, these are incompatible. Do you know of a workaround for this?

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

1 participant