查看: 2136|回复: 6

关于cmake处理osgearth的问题。

[复制链接]

该用户从未签到

发表于 2012-8-23 15:18:03 | 显示全部楼层 |阅读模式
我下载了好几个版本都是一样的问题,是不是我那儿没配置对啊。
原下载的文件如图: 1.jpg
cmake界面如图: 2.jpg

该用户从未签到

 楼主| 发表于 2012-8-23 15:19:11 | 显示全部楼层
有没有碰到过,为什么提示说工程无效啊?

该用户从未签到

 楼主| 发表于 2012-8-23 16:04:01 | 显示全部楼层
Found Qt4: d:/Qt/4.6.1/bin/qmake.exe (found suitable version "4.6.1", required is "4.6")
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CURL_INCLUDE_DIR
   used as include directory in directory D:/work/OSG/osgearth/src/osgEarth
CURL_LIBRARY
    linked by target "osgEarth" in directory D:/work/OSG/osgearth/src/osgEarth
GDAL_INCLUDE_DIR
   used as include directory in directory D:/work/OSG/osgearth/src/osgEarth
   used as include directory in directory D:/work/OSG/osgearth/src/osgEarthAnnotation
   used as include directory in directory D:/work/OSG/osgearth/src/osgEarthFeatures
GDAL_LIBRARY
    linked by target "osgEarth" in directory D:/work/OSG/osgearth/src/osgEarth
    linked by target "osgEarthAnnotation" in directory D:/work/OSG/osgearth/src/osgEarthAnnotation
OPENTHREADS_LIBRARY

信息提示是这个错误,那如果我把对应的路径设置对了,好象也没有生成哟。是我vs2008版本的问题还是路径没有第三方库的路径没有设置到PATH上呢。文件目录如何:
3.jpg
  • TA的每日心情
    开心
    2023-10-26 21:41
  • 签到天数: 5 天

    [LV.2]偶尔看看I

    发表于 2012-8-23 21:52:38 | 显示全部楼层
    你那些GDAL,CURL等库有没有啊,设置下路径?CMake里标红表示没识别,太多了,你的

    该用户从未签到

     楼主| 发表于 2012-8-24 09:09:02 | 显示全部楼层
    GDAL,CURL这些我都有设置的,我是按http://www.cnblogs.com/eaglezhao/archive/2011/09/26/2192389.html 这个文章设置的。那些变量要设置到XP系统的环境变量里去嘛?

    该用户从未签到

    发表于 2012-9-21 08:42:17 | 显示全部楼层
    http://ishare.iask.sina.com.cn/f/23751583.html?from=like这份文档还是比较详细的,我照着做了一遍,基本上还走得下来。

    该用户从未签到

     楼主| 发表于 2012-9-21 14:05:46 | 显示全部楼层
    不知道什么原因,后面我在另一台机器上,WIN7 64位上又配置成功了。
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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

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

    联系我们

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