The Allegro Wiki is migrating to github at

Talk:Building with msys2

From Allegro Wiki
Jump to: navigation, search

I did this myself as well on the latest for Allegro on the 5.1 branch,

The only issue I had was that CMake was not finding dinput and directx include/library files. I fixed this by changing the PATH variable to include /mingw64/x86_64-w64-mingw32/bin My CMake command was the following:

PATH=/mingw64/x86_64-w64-mingw32/bin:$PATH cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/home/Aaron/.local -DWANT_MONOLITH=ON ../../src/allegro5/

--Saboot 17:58, March 15, 2016 (UTC)

Just went through this procedure today with allegro 5.1.11, and got it working with a few minor changes:

  • Just a note: all the mingw64 executables are installed in /c/mingw64/bin. I had to add this to the PATH (by editing ~/.bashrc) before g++ etc are found
  • I couldn't find the msys2 package mingw-w64-x86_64-cmake-git. However, the current mingw-w64-x86_64-cmake package seems to work fine, the -git version is no longer needed.
  • I couldn't find the msys2 package mingw-w64-x86_64-pkgconf. However, this seems to be optional so I didn't investigate
  • Biggest problem was that make install seems to want to install in C:\Program Files (x86)\ALLEGRO, which doesn't work. I manually edited cmake_install.cmake to change the CMAKE_INSTALL_PREFIX to C:\msys64\mingw64\

Amarillion 20:12, September 28, 2015 (UTC)