Open Foadsf opened 4 years ago
There are scripts that work with msys2. Even make the packages including Qt5 and MPI. The only important library missing is oce (OpenCascade community edition). See,
http://www.nic.funet.fi/pub/sci/physics/elmer/bin/windows-test/
@raback Thanks. I will dig into the shell script. Any way to compile it outside of MSYS2, using only MinGW compilers? a cmd/Batch or PowerShell script for example?
@raback may you be kind to make a list of the specific packages required to be installed with mingw-get
from cmd/PowerShell or pacman
from inside MSYS2?
I have also requested a Chocolatey package for the software. But, the issue is that the sourceforge link is for the nightly build. The FUNET link, however, has two sets of binaries, with and without the nightly
tag. May I consider the non-nightly
ones as stable?
So far here are the instructions:
Install MSYS2 from the official website and update the packages accordingly
install below packages inside the MSYS2 with pacman -S <packageName>
:
mingw64/mingw-w64-x86_64-gcc
mingw64/mingw-w64-x86_64-make
mingw64/mingw-w64-x86_64-cmake
mingw64/mingw-w64-x86_64-gcc-libgfortran
and mingw64/mingw-w64-x86_64-gcc-fortran
mingw64/mingw-w64-x86_64-msmpi
mingw64/mingw-w64-x86_64-openblas
add C:\msys64\mingw64\bin
folder to the Windows Environment Variables path
open cmd and go to the downloaded Elmer's source and create-go inside the build
folder
run cmake -DCMAKE_C_COMPILER:FILEPATH=gcc -DCMAKE_CXX_COMPILER:FILEPATH=g++ .. -G "MinGW Makefiles"
run cmake --build .
This is my list of installed packages in msys2. oce not yet functional.
pacman -Sy
pacman --needed -S bash pacman pacman-mirrors msys2-runtime
! exit msys & restart
pacman -Su
pacman -S git
pacman -S emacs
pacman -S make mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-gcc-fortran # (includes gcc)
pacman -S mingw-w64-x86_64-openblas
pacman -S mingw-w64-x86_64-nsis # (packaging under Windows)
pacman -S mingw-w64-x86_64-qt5
pacman -S mingw-w64-x86_64-qwt-qt5 # (includes qt5)
pacman -S mingw-w64-x86_64-msmpi # (for parallel version)
pacman -S mingw-w64-x86_64-oce # (OpenCASCADE community version)
pacman -S mingw-w64-x86_64-vtk
pacman -S mingw-w64-x86_64-lapack # (needed by MUMPS)
I have been trying here to compile the software on Windows using MinGW-MSYS2, with no success. Here is what I have tried so far:
But in the end I get the error:
I would appreciate it if you could help me with the proper command-line instructions including the CMake command.