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

Build fails to find Highs.h and the it also can't find libhighs.so #744

Closed
yurivict opened this issue Nov 5, 2023 · 2 comments
Closed

Comments

@yurivict
Copy link

yurivict commented Nov 5, 2023

In file included from /usr/ports/math/minizinc/work/libminizinc-2.7.6/solvers/MIP/MIP_highs_solverfactory.cpp:13:
/usr/ports/math/minizinc/work/libminizinc-2.7.6/include/minizinc/solvers/MIP/MIP_highs_wrap.hh:16:10: fatal error: 'Highs.h' file not found
#include <Highs.h>
         ^~~~~~~~~
1 error generated.

Highs.h is installed at /usr/local/include/highs/Highs.h by coin-or-highs-1.6.0

Version: 2.7.6
FreeBSD 13.2

@yurivict yurivict changed the title Build fails to find Highs.h Build fails to find Highs.h and the it also can't find libhighs.so Nov 5, 2023
@Dekker1
Copy link
Member

Dekker1 commented Nov 5, 2023

This is an error in newer versions of Highs: ERGO-Code/HiGHS#1308

A workaround has been added in the current develop versions of MiniZinc (and the releases will now uses dlopen to load the libraries rather than including them in the executable)

@Dekker1 Dekker1 closed this as completed Nov 5, 2023
@cyderize
Copy link
Member

cyderize commented Nov 5, 2023

Just a note, if you build HiGHS with -DFAST_BUILD=OFF then it should actually work as well.

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

3 participants