2014-10-25 5 views
0

Я пытаюсь скомпилировать CGAL 4.5 на cygwin (windows 7). У меня есть НКУ-ядро, GCC-г ++ и ГМП установлены, но когда я пытаюсь запустить CMake я получаю следующее сообщение об ошибке:CGAL cmake на cygwin не работает

$ cmake . 
-- The CXX compiler identification is GNU 4.8.3 
CMake Error: Could not find cmake module file:/home/metalab/CGAL-4.5/CMakeFiles/2.8.11.2/CMakeCXXCompiler.cmake 
-- The C compiler identification is GNU 4.8.3 
CMake Error: Could not find cmake module file:/home/metalab/CGAL-4.5/CMakeFiles/2.8.11.2/CMakeCCompiler.cmake 
CMake Warning at /usr/share/cmake-2.8.11.2/Modules/Platform/CYGWIN.cmake:15 (message): 
    CMake no longer defines WIN32 on Cygwin! 

    (1) If you are just trying to build this project, ignore this warning or 
    quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in 
    the CMake cache. If later configuration or build errors occur then this 
    project may have been written under the assumption that Cygwin is WIN32. 
    In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead. 

    (2) If you are developing this project, add the line 

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required 

    at the top of your top-level CMakeLists.txt file or set the minimum 
    required version of CMake to 2.8.4 or higher. Then teach your project to 
    build on Cygwin without WIN32. 
Call Stack (most recent call first): 
    /usr/share/cmake-2.8.11.2/Modules/CMakeSystemSpecificInformation.cmake:36 (include) 
    CMakeLists.txt:7 (project) 


CMake Error: Could not find cmake module file:/home/metalab/CGAL-4.5/CMakeFiles/2.8.11.2/CMakeRCCompiler.cmake 
-- Check for working CXX compiler: /usr/bin/c++.exe 
CMake Error at /usr/share/cmake-2.8.11.2/Modules/CMakeTestCXXCompiler.cmake:40 (try_compile): 
    Unknown extension ".cxx" for file 

    /home/metalab/CGAL-4.5/CMakeFiles/CMakeTmp/testCXXCompiler.cxx 

    try_compile() works only for enabled languages. Currently these are: 

    C CXX RC 

    See project() command to enable other languages. 
Call Stack (most recent call first): 
    CMakeLists.txt:7 (project) 


-- Check for working CXX compiler: /usr/bin/c++.exe -- broken 
CMake Error at /usr/share/cmake-2.8.11.2/Modules/CMakeTestCXXCompiler.cmake:54 (message): 
    The C++ compiler "/usr/bin/c++.exe" is not able to compile a simple test 
    program. 

    It fails with the following output: 





    CMake will not be able to correctly generate this project. 
Call Stack (most recent call first): 
    CMakeLists.txt:7 (project) 


-- Configuring incomplete, errors occurred! 

я уже пробовал играть с CMAKE_LEGACY_CYGWIN_WIN32, но без успеха.

+0

Вы пытались скомпилировать тривиальный мир привет с компилятором C++. Exe? Возможно, вам нужно установить больше пакетов cygwin, чтобы они действительно работали. –

+0

Да, я сделал, и он работает. на самом деле я уже использовал установку cygwin для компиляции libxml ++. – kallaballa

+1

попробуйте 'make VERBOSE = 1', чтобы понять, почему cmake говорит, что компилятор CXX не работает. – sloriot

ответ

1

Я столкнулся с аналогичной ошибкой. Казак, похоже, не смог ничего найти от Кигвина.

Дело в том, что вам нужно запустить Cygwin-версию cmake. Если вы установили cmake из установщика, и он прошел под C:\Program Files, у вас неправильный cmake, и он не найдет больше всего, что он иначе найдет.

Смежные вопросы