allegro5
allegro5 copied to clipboard
Out-of-date Windows/MSVC Build Documentation
The documentation for building on Windows with MSVC is out of date. Following the instructions in the source code, I am not able to locally build the binaries.
The instructions state to: 3. Start the Microsoft Visual Studio IDE, then bring up a command prompt by clicking "Tools > Visual Studio 20xx Command Prompt".
However, that menu item does not exist (at the least) in the newer IDEs: Visual Studio 2015 and 2017.
Following links from the website: http://liballeg.org/docs.html --> Getting Started with Allegro --> Installing from Source - Windows (https://wiki.allegro.cc/index.php?title=Getting_Started#Windows_2) --> Notes on building with MSVC This points to an allegro.cc forum post: https://www.allegro.cc/forums/thread/614997/1009351#target Which states:
cd allegro mkdir build cd build cmake -G "Visual Studio 12" -DCMAKE_BUILD_TYPE=Release -DSHARED=On -DWANT_MONOLITH=On ..
Then build by opening the Allegro solution file.
So if this is the way to build it with MSVC and CMake, then the documentation should state that. There are also dependencies that need to be installed (DirectX SDK) those should be in the instructions as well.
I was been able to get this to compile yet with Visual Studio 2017 Community Edition and CMake with: cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DSHARED=On -DWANT_MONOLITH=On ..
Have you tried:
Tools->Command Line->Developer Command Prompt
?