-
Notifications
You must be signed in to change notification settings - Fork 84
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
Comments
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
Replace them with the following ones:
Re-generate Visual Studio solution after that change, open in Visual Studio, and build the FloatTetwild_bin project. Don’t forget to copy |
Has anyone had this error when generating FloatTetwild_bin in Visual Studio? |
I put the libs I use here. https://github.com/hph73/gmp |
hi, is there any complete binary of fTetWild with dll required? |
For me, the following worked after several attempts on Windows 11 with VS 2022: I first replaced the following lines in FindGMPfTetWild.cmake as @Const-me described:
Then I obtained compiled binaries for MPIR from here: https://github.com/ChillMagic/MPIR-Binary/tree/master and placed in C:\Dev\Mesh\MPIR-Binary-master\ Then, I added the following Environment Variables: Then, run CMake and configure to x64 using VS 2022. You should see the 'C:/Dev/Mesh/MPIR-Binary-master/MPIR-Binary-master/lib/MT/x64/Release/mpirxx.lib' being detected for GMPXX_LIBRARIES I set CMAKE_CONFIGURATION_TYPES to Debug;Release Configure again, then Generate. Launch the VS Project, and then go to FloatTetwild_bin properties C/C++ then Code Generation and make sure Runtime library is set to 'Multi-threaded DLL (/MD)' Do the same for all other projects in the solution, set geogram to 'Multi-threaded DLL (/MD)', also geogram_third_party, and all others. I did this for Release setup. Then build FloatTetwild_bin No need to copy DLLs after this compile, it seems to work fine using the EXE only. Hope this works for you also. Cheers! |
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
The text was updated successfully, but these errors were encountered: