title: Installing Allegro
body: <p>I have been following <a href="https://wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Windows#Optional_Dependencies%22this%22" rel="nofollow noreferrer">this</a> procedure to install Allegro.Everything was ok until I reached point 3, where I have to run these commands </p>
  
  <p><code>cd C:\devel\a5_sourcepack\zlib
  mkdir build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=C:\MinGW -G "MinGW Makefiles"
  mingw32-make install</code></p>
  
  <ol>
  <li>the "build" directory already exists, I don't know why it makes me create it.</li>
  <li><p>I tried to use the already existing build directory and run the following command but it gives me</p>
  
  <p><code>C:\devel\a5_sourcepack\zlib\build&gt;cmake .. -DCMAKE_INSTALL_PREFIX=C:\MinGW -G "MinGW Makefiles"
  CMake Error: The current CMakeCache.txt directory C:/devel/a5_sourcepack/zlib/build/CMakeCache.txt is different than the directory c:/dev/a5_sourcepack/zlib/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
  CMake Error: The source "C:/devel/a5_sourcepack/zlib/CMakeLists.txt" does not match the source "C:/dev/a5_sourcepack/zlib/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.</code></p></li>
  </ol>
  
  <p>I have even tried to run the last command <code>mingw32-make install</code> but it tells me there is no such command.</p>