這是後續的帖子Ada: plotting 2d graphs。我決定創建一個新的職位,因爲這是一個單獨的問題。 PLplot for Windows的安裝位於:http://www.miscdebris.net/plplot_wiki/index.php?title=Specifics_for_various_platforms#Windows。安裝如下:Ada:Windows上的cmake和PLplot安裝
cd plplot
mkdir buildmingw
cd buildmingw
cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=install ..
mingw32-make
mingw32-make install
我決定從http://sourceforge.net/projects/mingw/files/下載exe文件去MinGW的灌輸。我也在這裏爲Windows獲得了cmake:http://www.cmake.org/cmake/resources/software.html。
現在,連續第四指令安裝PLplot(見上文),我得到:
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>
我選擇安裝選項讓CMake的創建必要的系統路徑。我想知道爲什麼在安裝過程中未創建環境變量CMAKE_C_COMPILER_ENV_VAR和CMAKE_C_COMPILER。任何建議?
非常感謝..
我在這方面尋求幫助的第一個地方是你的Ada綁定到plplot的文檔(和任何支持列表)。這可能是因爲他們不希望你使用CMAKE。 – 2010-07-12 13:05:21