fTetWild
fTetWild copied to clipboard
trouble compiling on windows
Hi, I'm having trouble compiling on windows - I have installed conda and mpir, but I keep getting linker errors such as
FloatTetwild.lib(LocalOperations.obj) : error LNK2001: unresolved external symbol ___gmpq_add [D:\ftet\build\FloatTetwild_bin.vcxproj]
is there something I should try?
Best,
Libor Vasa
I got the same problem when I installed gmp using conda. My problem was solved by downloading gmp from here https://cs.nyu.edu/~exact/core/gmp/index.html. Be sure to change environment variables GMP_INC and GMP_LIB accordingly.
Hi, the link looks dead, Any place where i can donwload it? Thanks a lot
Hi, you can try downloading gmp from its official website (https://gmplib.org/) and following the instruction there.
@lvasa Edit cmake\FindGMPfTetWild.cmake
source file.
Find the following two lines:
find_library(GMP_LIBRARIES NAMES gmp libgmp PATHS $ENV{GMP_LIB} ${GMP_WINDOWS_PATH})
find_library(GMPXX_LIBRARIES NAMES gmpxx libgmpxx PATHS $ENV{GMP_LIB} ${GMP_WINDOWS_PATH})
Replace them with the following ones:
find_library(GMP_LIBRARIES NAMES gmp mpir.lib PATHS $ENV{GMP_LIB} ${GMP_WINDOWS_PATH})
find_library(GMPXX_LIBRARIES NAMES gmpxx mpirxx.lib PATHS $ENV{GMP_LIB} ${GMP_WINDOWS_PATH})
Re-generate Visual Studio solution after that change, open in Visual Studio, and build the FloatTetwild_bin project.
Don’t forget to copy mpir.dll
into your output directory. Otherwise, Windows will show an error message when you try to run the FloatTetwild_bin.exe
you have built.
Has anyone had this error when generating FloatTetwild_bin in Visual Studio? D:\Mesh2Tet-main\fTetWild\build\Debug\FloatTetwild_bin.exe : fatal error LNK1169: one or more multiply defined symbols were found
@Const-me
Hi, the link looks dead, Any place where i can donwload it? Thanks a lot
I put the libs I use here. https://github.com/hph73/gmp
hi, is there any complete binary of fTetWild with dll required?