代码之家  ›  专栏  ›  技术社区  ›  yCalleecharan

Ada:cmake和plplplot在Windows上的安装

  •  2
  • yCalleecharan  · 技术社区  · 16 年前

    这是一个后续的帖子 Ada: plotting 2d graphs . 我决定创建一个新的职位,因为这是一个单独的问题。PLplot for Windows的安装位置为: http://www.miscdebris.net/plplot_wiki/index.php?title=Specifics_for_various_platforms#Windows

    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/ . 我还在这里找到了用于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>
    

    1 回复  |  直到 9 年前
        1
  •  1
  •   trashgod    16 年前

    我不熟悉 CMake ,但常见问题解答中的方法之一 How do I use a different compiler? 可能会有帮助。我猜预构建的Windows二进制文件不知道您在使用什么编译器,所以它必须依赖 CC CXX 环境变量。

    推荐文章