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

Windows MinGW Compilation #41

Open
handsomePirate opened this issue Jul 10, 2023 · 1 comment
Open

Windows MinGW Compilation #41

handsomePirate opened this issue Jul 10, 2023 · 1 comment

Comments

@handsomePirate
Copy link

Hi,

I'm really looking forward to trying minotaur out!

Unfortunately, the build doesn't work for VS 2022 and I'm working on Windows (switching to unix is not an option) so I used MinGW to compile the code. I got further than with VS, but the compilation fails on the following:
image

I'm building with COMPILER_WARN OFF and my CMake command looks like this:
cmake -S. -Bbuild -G"MinGW Makefiles" -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_Fortran_COMPILER=gfortran
Then
cd build
and
mingw32-make

Any advice/fix, please?

@ashutoshmahajan
Copy link
Collaborator

Thanks for trying and sorry for not replying earlier. The error means that it could not link to blas library for some reason. I updated the cmake files and also the third-party building script for windows. Can you please try again now and check. The guidelines for compiling have also changed slightly, and are updated on the minotaur webpage https://minotaur-solver.github.io/#compile-win

If you want to 'solve' an instance, then you really would need to compile third-party libraries first. Compiling minotaur without third-parties would give you just the core minotaur library without any ability to read .nl files or solve LP and NLP relaxations.

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

2 participants