Ceci est une suite de la publication au Ada: plotting 2d graphs. J'ai décidé de créer un nouveau poste car il s'agit d'un problème distinct. L'installation de PLplot pour Windows est au: http://www.miscdebris.net/plplot_wiki/index.php?title=Specifics_for_various_platforms#Windows. L'installation se présente comme suit:Ada: installation cmake et PLplot sous Windows
cd plplot
mkdir buildmingw
cd buildmingw
cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=install ..
mingw32-make
mingw32-make install
j'ai décidé d'aller pour l'instillation MinGW en téléchargeant le fichier exe de http://sourceforge.net/projects/mingw/files/. J'ai aussi obtenu cmake pour Windows ici: http://www.cmake.org/cmake/resources/software.html.
Maintenant, sur l'exécution de la quatrième instruction pour l'installation PLplot (voir ci-dessus), je reçois:
C:\plplot-5.9.6\buildmingw>cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=ins
tall ..
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermine
CCompiler.cmake:44 (MESSAGE):
Could not find compiler set in environment variable CC:
cl.
Call Stack (most recent call first):
CMakeLists.txt:38 (project)
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:/plplot-5.9.6/buildmingw/CMakeFi
les/CMakeCCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
C:\plplot-5.9.6\buildmingw>
J'ai choisi dans les options d'installation pour laisser CMake créer les chemins de système nécessaires. Je me demande pourquoi les variables d'environnement CMAKE_C_COMPILER_ENV_VAR et CMAKE_C_COMPILER n'ont pas été créées lors de l'installation. Toute suggestion?
Merci beaucoup ..
Le premier endroit où je chercherais de l'aide à ce sujet est le docs (et toutes les listes de soutien) pour vos liaisons Ada à plplot. Il se peut qu'ils ne s'attendent pas à ce que vous utilisiez CMAKE. –