Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Building Addons Allegro5 Cmake/Mingw/Git /Vc2008

This thread is locked; no one can reply to it. rss feed Print
Building Addons Allegro5 Cmake/Mingw/Git /Vc2008
carlo starsk
Member #6,250
September 2005

Need Some help Building Allegro 5 With Addons
Building with Cmake/Mingw/git following steps http://wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Windows

I get errors when i run.

cd C:\devel\a5_sourcepack\zlib
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=C:\MinGW -G "MinGW Makefiles"
mingw32-make install

ERROR
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_C++_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_C++_COMPILER

Cmake And Mingw are set in the Path, In Mingw i Set in the Basic settings c c++ compiler and basic msys is checked..

Can someone please give me a hint. This is First time i have tried to build allegro5.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

torhu
Member #2,727
September 2002
avatar

You could check that the command g++ works, just to be sure.

carlo starsk
Member #6,250
September 2005

Thanks you For quick replies but still have the same problem
from cmd cmake and GCC works fine
deleted cmakexache.txt
The errors im still getting are

C:\devel\a5_sourcepack\zlib\build>cmake .. -DCMAKE_INSTALL_PREFIX=C:\MinGW -G "M
inGW Makefiles"
CMake Error: CMake was unable to find a build program corresponding to "MinGW Ma
kefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a differe
nt build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Ma
kefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a differe
nt build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be
built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be
built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:C:/devel/a5_sourcepack/zlib/build/
CMakeFiles/2.8.11.2/CMakeCCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

Thank you all for your time.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

carlo starsk
Member #6,250
September 2005

Edgar
All files was downloaded from the link in the first post.
cmake is ver 2.8 and mingw.exe installer was used to install mingw.

I did get some succes 1am in the morning after runing
mingw-get.exe install mingw32-make
and copied libiconv.dll to C:\Program Files\Git\libexec\git-core
Still hacking away at it Send a update later today.
Thank you for your time.

UPDATE:
Managed to compile and install zlib,libPng,jpeg.freetype,
Libogg compiled ok, but make install complained 'Nnothing to be done few time'
libvorbis complaining that ogg not installed properly.
ERROR The test programe failed to complie or link.
All help would be gratfull.

ks
Member #1,086
March 2001

I have put some of my recent notes at: https://www.allegro.cc/forums/thread/613330

I should update but the truth is that I met with minimal issues using a very recent installation of the TDM MinGW distribution + MSYS.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: