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

trouble compiling on windows #33

Open
lvasa opened this issue Jan 4, 2021 · 8 comments
Open

trouble compiling on windows #33

lvasa opened this issue Jan 4, 2021 · 8 comments

Comments

@lvasa
Copy link

lvasa commented Jan 4, 2021

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

@hph73
Copy link

hph73 commented Feb 8, 2021

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.

@dedelecoder
Copy link

Hi, the link looks dead, Any place where i can donwload it? Thanks a lot

@Yixin-Hu
Copy link
Collaborator

Hi, you can try downloading gmp from its official website (https://gmplib.org/) and following the instruction there.

@Const-me
Copy link

@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.

@zhanghaoxuan184
Copy link

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

@zhanghaoxuan184
Copy link

@Const-me

@hph73
Copy link

hph73 commented Aug 10, 2023

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

@xyont
Copy link

xyont commented Sep 3, 2023

hi, is there any complete binary of fTetWild with dll required?

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

7 participants