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

cannot open file mpir.lib, while mpir has conflicts with gmp #5574

Closed
cuirq3 opened this issue Apr 2, 2021 · 1 comment
Closed

cannot open file mpir.lib, while mpir has conflicts with gmp #5574

cuirq3 opened this issue Apr 2, 2021 · 1 comment
Assignees

Comments

@cuirq3
Copy link

cuirq3 commented Apr 2, 2021

Issue Details

Hi, I updated my cgal:x64-windows via vcpkg to run obb_example.cpp. And I generated the project using cmake successfully.

I got a link error while debugging it with VS2019. It says that cannot open file mpir.lib, so I tried to install mpir via vcpkg.

However, I found an issue under vcpkg that there are conflicts between gmp and mpir. Here are links:

microsoft/vcpkg#12664 (comment)
microsoft/vcpkg#11756 (comment)

I wonder that is there any chance to use oriented_bounding_box() without mpir or any other way to fix this problem.

Thanks!

Environment

  • Operating system (Windows 10, 64 bits):
  • Compiler: cmake-gui
  • Release or debug mode: debug
  • Specific flags used (if any):
  • CGAL version:5.2#2
  • Boost version:1.75.0
  • Other libraries versions if used (Eigen, TBB, etc.):
@maxGimeno
Copy link
Contributor

maxGimeno commented Jul 6, 2021

At first we used mpir as dependency for cgal in vcpkg, but they changed it for gmp for linux compatibility. This must be the reason for your problem.
My advice would be to vcpkg remove cgal mpir gmp, and then to do:

vcpkg install yasm-tool:x86-windows
vcpkg install cgal

This should solve your problem.
yasm-tool:x86-windows is a dependency for gmp, in case you are wondering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants