coin-or / minotaur

Minotaur Toolkit for Mixed-Integer Nonlinear Optimization
https://minotaur-solver.github.io/
Other
69 stars 21 forks source link

Windows MinGW Compilation #41

Open handsomePirate opened 1 year ago

handsomePirate commented 1 year ago

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 commented 1 year ago

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.