【问题标题】:How to build open scene graph with MinGW如何使用 MinGW 构建开放场景图
【发布时间】:2014-03-14 05:12:09
【问题描述】:

我想安装最新的开放场景图,下载了最新的稳定版本 3.0.0 和 Cmake 2.8.12.2。我尝试使用 Cmake 配置源,生成器是 CodeBlocks MingGW,点击 Cmake 中的配置按钮会报告以下错误。

在 Cmake 的配置面板中,我看到有许多变量,包括 Collada、DCMTK、Jasper Lİbrary、QT 等等。 OSG 是否依赖于所有这些变量和库,如果是,如果我想以最低限度安装,我应该如何知道变量的含义。我真的只想安装 OSG 的核心部分,而变量对我来说有点模糊,其中一些有意义,但有些没有。

32 bit architecture detected
searching TIFF -->tiff.h<-->libtiff<-->C:/MinGW<--
searching FREETYPE -->ft2build.h<--<freetype;freetype2311MT;freetype234;freetype234MT;freetype235;freetype237;freetype238;freetype244;<-->C:/MinGW<--
searching CURL -->curl/curl.h<-->libcurl;curllib<-->C:/MinGW<--
searching JPEG -->jpeglib.h<-->libjpeg;jpeg<-->C:/MinGW<--
searching GDAL -->gdal.h<-->gdal;gdal16<-->C:/MinGW<--
searching GLUT -->GL/glut.h<-->glut32<-->C:/MinGW<--
searching GIFLIB -->gif_lib.h<-->ungif;libungif;giflib<-->C:/MinGW<--
searching ZLIB -->zlib.h<-->z;zlib;zlib1<-->C:/MinGW<--
searching LIBXML2 -->libxml<-->libxml2<-->C:/MinGW<--
Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) 
Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR) 
CMake Warning at C:/Program Files (x86)/CMake 2.8/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) 
checking for module 'poppler-glib'
  package 'poppler-glib' not found
checking for module 'librsvg-2.0'
  package 'librsvg-2.0' not found
checking for module 'gtkglext-win32-1.0'
  package 'gtkglext-win32-1.0' not found
Found unsuitable Qt version "" from NOTFOUND
Could NOT find Qt3 (missing:  QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE) 
Could NOT find GLUT (missing:  GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
Could NOT find wxWidgets (missing:  wxWidgets_FOUND) 
Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR) 
CMake Warning (dev) at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPNG.cmake:34 (find_package):

  File C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPNG.cmake
  includes
  D:/TEST_FOLDER_asus/ENGINES/OpenSceneGraph-3.0.0/CMakeModules/FindZLIB.cmake
  (found via CMAKE_MODULE_PATH) which shadows C:/Program Files (x86)/CMake
  2.8/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.
Could NOT find PNG (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR) 

【问题讨论】:

    标签: cmake mingw


    【解决方案1】:

    依赖都在第3方依赖包中,可以在网站的下载部分找到:

    http://www.openscenegraph.org/index.php/download-section/dependencies

    虽然,我没有看到预建 MinGW 版本的链接 - 也许 VS 版本兼容?如果没有,您可以独立获取它们,或者您可能不得不考虑在 Visual Studio 的快速(免费)版本之一下构建,或者切换到 Linux。

    【讨论】:

      猜你喜欢
      • 2018-04-06
      • 1970-01-01
      • 2016-12-17
      • 1970-01-01
      • 2014-07-28
      • 2013-05-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多