查看: 2059|回复: 2

osggis编译

[复制链接]

该用户从未签到

发表于 2009-10-26 14:45:37 | 显示全部楼层 |阅读模式
我在进行osggis编译的时候出现如下文字,不知道是什么意思?又该如何解决呢?
CMake Warning (dev) at src/osgGIS/CMakeLists.txt:124 (ADD_LIBRARY):  Policy CMP0003 should be set before this line.  Add code such as
    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)
  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "osgGIS" links to some libraries for which the linker must
  search:
    glu32, opengl32, glu32, opengl32
  and other libraries with known full path:
    D:/Program Files/OsgChina/OpenSceneGraph/lib/osgd.lib
    D:/Program Files/OsgChina/osggis/GDAL/lib/gdal_i.lib
    D:/Program Files/OsgChina/osggis/osggis_3rdparty_win32_vs8/lib/lua51.lib
  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

该用户从未签到

发表于 2009-10-26 16:30:52 | 显示全部楼层
似乎也没有明确地说是错误,只是兼容性方面的警告而已?继续编译吧,看看能不能生成Makefile或者VS工程

该用户从未签到

发表于 2009-10-29 12:09:01 | 显示全部楼层
编译OSGGIS要指定要使用CMAKE2.4.7
楼主看看是不是用的其他版本的CMAKE啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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