You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
It seems like the issue is that several of these functions are included in both
libigl/external/triangle/triangle.c
andmeshfix/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?The text was updated successfully, but these errors were encountered: