Skip to content

Compile Storm library with WSL and Cmake on Windows

Aleksander edited this page Dec 20, 2020 · 5 revisions

requirements

  • mingw and mingw installation manager
  • cmake for Windows
  • WSL for Windows 10
  • msys as the part of mingw => MinGW/msys/

generage MakeFile as follows

:/mnt/c/StormLib$ cmake.exe  CMakeLists.txt  
-D CMAKE_C_COMPILER='C:/MinGW/bin/gcc.exe' 
-D CMAKE_CXX_COMPILER='C:/MinGW/bin/g++.exe' 
-D CMAKE_AR='C:/MinGW/bin/ar.exe' -D CMAKE_MAKE_PROGRAM='C:/MinGW/msys/1.0/bin/make.exe'

and then compile it with cmd Windows classic terminal

C:\code\StormLib>C:\MinGW\msys\1.0\bin\make.exe
Clone this wiki locally