After much trying I finally successfully compiled and linked the HSL package with Spyder 3.6 (python 64 bits) in Windows 10. These are the steps I followed:
- Then, I added C:\msys64\mingw64\bin to the PATH in windows
tar -xvf metis-4.0.3.tar.gz # Unpack Metis
- I created a folder in Documents to install HSL
1. cd <path to where you wanna install> # Goes into the folder you wanna install hsl
2. <path to where the unpacked hsl source folder with metis is>/configure --with-blas="-lopenblas" CXXFLAGS="-O3 -fopenmp" FCFLAGS="-O3 -fopenmp" CFLAGS="-O3 -fopenmp"
3. make
4. make install
5. ln -s <path to where you installed hsl>/.libs/libcoinhsl-0.dll <path to where you installed hsl>/.libs/libhsl.dll # Create a symbolic link named libhsl.dll
If you check into the ".libs", you now notice you have a file named "libhsl.dll". Add the folder containing this file (.libs in this case) to the PATH in windows, and to the `PYTHONPATH manager (if you are using spyder).
Hope this helps.