查看: 1423|回复: 0

CMake 编译 osg 3.0.1请问这是什么错?

[复制链接]

该用户从未签到

发表于 2016-1-9 20:49:23 | 显示全部楼层 |阅读模式

我用CMake编译OSG点configure的时候报如下的错误,请高手看看这是什么问题?



CMake Error: Could not open file for read in copy operation F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeSystem.cmake.in
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:172 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:30 (PROJECT)


CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:121 (file):
  file Internal CMake error when trying to open file:
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakePlatformId.h.in
  for reading.
Call Stack (most recent call first):
  CMakeLists.txt:30 (PROJECT)


CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:88 (file):
  file Internal CMake error when trying to open file:
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeCCompilerId.c.in
  for reading.
Call Stack (most recent call first):
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:100 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:124 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:30 (PROJECT)


The C compiler identification is unknown
CMake Error: Could not open file for read in copy operation F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeCCompiler.cmake.in
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:171 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:30 (PROJECT)


CMake Error: Could not find cmake module file:/OSG/OpenSceneGraph/CMakeFiles/2.8.10.2/CMakeCCompiler.cmake
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:117 (file):
  file Internal CMake error when trying to open file:
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakePlatformId.h.in
  for reading.
Call Stack (most recent call first):
  CMakeLists.txt:30 (PROJECT)


CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:88 (file):
  file Internal CMake error when trying to open file:
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeCXXCompilerId.cpp.in
  for reading.
Call Stack (most recent call first):
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:100 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:120 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:30 (PROJECT)


The CXX compiler identification is unknown
CMake Error: Could not open file for read in copy operation F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeCXXCompiler.cmake.in
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:167 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:30 (PROJECT)


CMake Error: Could not find cmake module file:D:/OSG/OpenSceneGraph/CMakeFiles/2.8.10.2/CMakeCXXCompiler.cmake
CMake Error: Could not open file for read in copy operation F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CMakeConfigurableFile.in
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CheckIncludeFiles.cmake:44 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindThreads.cmake:39 (CHECK_INCLUDE_FILES)
  CMakeLists.txt:119 (FIND_PACKAGE)


Looking for include file pthread.h
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CheckIncludeFiles.cmake:58 (try_compile):
  Unknown extension ".c" for file

    D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckIncludeFiles.c

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

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindThreads.cmake:39 (CHECK_INCLUDE_FILES)
  CMakeLists.txt:119 (FIND_PACKAGE)


Looking for include file pthread.h - not found
Found Threads: TRUE  
Found OpenGL: opengl32  
searching TIFF -->tiff.h<-->libtiff<-->D:/OSG/3rdparty<--
searching FREETYPE -->ft2build.h<-->freetype;freetype2311MT;freetype234;freetype234MT;freetype235;freetype237;freetype238;freetype244;<-->D:/OSG/3rdparty<--
-- Warning Debug FREETYPE not found, using: D:/OSG/3rdParty/lib/freetype237.lib
searching CURL -->curl/curl.h<-->libcurl;curllib<-->D:/OSG/3rdparty<--
-- Warning Debug CURL not found, using: D:/OSG/3rdParty/lib/curllib.lib
searching JPEG -->jpeglib.h<-->libjpeg;jpeg<-->D:/OSG/3rdparty<--
-- Warning Debug JPEG not found, using: D:/OSG/3rdParty/lib/libjpeg.lib
searching GDAL -->gdal.h<-->gdal;gdal16<-->D:/OSG/3rdparty<--
searching GLUT -->GL/glut.h<-->glut32<-->D:/OSG/3rdparty<--
-- Warning Debug GLUT not found, using: D:/OSG/3rdParty/lib/glut32.lib
searching GIFLIB -->gif_lib.h<-->ungif;libungif;giflib<-->D:/OSG/3rdparty<--
-- Warning Debug GIFLIB not found, using: D:/OSG/3rdParty/lib/giflib.lib
searching ZLIB -->zlib.h<-->z;zlib;zlib1<-->D:/OSG/3rdparty<--
-- Warning Debug ZLIB not found, using: D:/OSG/3rdParty/lib/zlib1.lib
searching PNG -->png.h<-->libpng;libpng13;libpng15<-->D:/OSG/3rdparty<--
-- Warning Debug PNG not found, using: D:/OSG/3rdParty/lib/libpng13.lib
searching LIBXML2 -->libxml<-->libxml2<-->D:/OSG/3rdparty<--
Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
Found CURL: D:/OSG/3rdParty/lib/curllib.lib (found version "7.18.2")
CMake Warning at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindITK.cmake:48 (find_package):
  Could not find a package configuration file named "ITKConfig.cmake"
  provided by package "ITK".

  Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set "ITK_DIR"
  to a directory containing one of the above files.  If "ITK" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:465 (FIND_PACKAGE)


Could NOT find OpenAL (missing:  OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
Could NOT find SDL (missing:  SDL_LIBRARY SDL_INCLUDE_DIR)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Could NOT find Qt4 (missing:  QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY)
Could NOT find Qt3 (missing:  QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE)
Found JPEG: D:/OSG/3rdParty/lib/libjpeg.lib  
CMake Warning (dev) at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindPNG.cmake:34 (find_package):
  File
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindPNG.cmake
  includes D:/OSG/OpenSceneGraph/CMakeModules/FindZLIB.cmake (found via
  CMAKE_MODULE_PATH) which shadows
  F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindZLIB.cmake.
  This may cause errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  CMakeLists.txt:535 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

Found PNG: D:/OSG/3rdParty/lib/libpng13.lib (found version "1.2.29")
Could NOT find TIFF (missing:  TIFF_LIBRARY) (found version "3.8.2")
Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CheckCXXSourceRuns.cmake:52 (try_run):
  Unknown extension ".cxx" for file

    D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx

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

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  CMakeModules/CheckAtomicOps.cmake:22 (CHECK_CXX_SOURCE_RUNS)
  src/OpenThreads/CMakeLists.txt:13 (INCLUDE)


Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Failed
Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CheckCXXSourceRuns.cmake:52 (try_run):
  Unknown extension ".cxx" for file

    D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx

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

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  CMakeModules/CheckAtomicOps.cmake:42 (CHECK_CXX_SOURCE_RUNS)
  src/OpenThreads/CMakeLists.txt:13 (INCLUDE)


Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS - Failed
Performing Test _OPENTHREADS_ATOMIC_USE_SUN
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CheckCXXSourceRuns.cmake:52 (try_run):
  Unknown extension ".cxx" for file

    D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx

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

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  CMakeModules/CheckAtomicOps.cmake:62 (CHECK_CXX_SOURCE_RUNS)
  src/OpenThreads/CMakeLists.txt:13 (INCLUDE)


Performing Test _OPENTHREADS_ATOMIC_USE_SUN - Failed
Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CheckCXXSourceRuns.cmake:52 (try_run):
  Unknown extension ".cxx" for file

    D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx

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

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  CMakeModules/CheckAtomicOps.cmake:83 (CHECK_CXX_SOURCE_RUNS)
  src/OpenThreads/CMakeLists.txt:13 (INCLUDE)


Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Failed
Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC
CMake Error at F:/tools/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/CheckCXXSourceRuns.cmake:52 (try_run):
  Unknown extension ".cxx" for file

    D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx

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

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  CMakeModules/CheckAtomicOps.cmake:112 (CHECK_CXX_SOURCE_RUNS)
  src/OpenThreads/CMakeLists.txt:13 (INCLUDE)


Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Failed
Configuring incomplete, errors occurred!

您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表