查看: 3007|回复: 2

Cmake编译生成OSGocean遇到问题

[复制链接]

该用户从未签到

发表于 2013-4-5 19:56:11 | 显示全部楼层 |阅读模式
各位高人,前几日我将OSG装好后(也用过Cmake编译,但未出现问题),想装OSGocean,我从这里下载了osgOcean-Source-1.0.1.rar(osgOcean-Resources-1.0.1.rar这个我不知道干啥用的),http://code.google.com/p/osgocean/downloads/list?q=label:Featured
FFTW我从http://www.fftw.org/install/windows.html下载了32-bit version: fftw-3.3.3-dll32.zip (2.4MB),然后安装过程参照这篇文章的第二部分((二)编译osgOcean)http://blog.csdn.net/sohu_2011/article/details/7909803#comments
其中,我参照网上的经验,对FFTW的处理方法为:
(成功生成三个lib后)
1.将libfftw3f-3.dll libfftw3-3.dll libfftw3l-3.dll放入windows/system32中,然后将生成的库文件libfftw3-3.lib libfftw3f-3.lib libfftw3l-3.lib放入vc中的lib文件夹,把fftw3.h放入include文件夹。
2.在新建工程的时候,加#include”fftw3.h“,然后设置参数:”项目“==>"项目属性"==>"配置属性"==>"链接器"==>"输入"==>"附加依赖项",将以下三项添加进去:libfftw3-3.lib;libfftw3f-3.lib;libfftw3l-3.lib
(不知道这个影不影响cmake编译)
然后我的文件目录是这样放置的 文件放置目录.png ,然后我用cmake编译的时候就这样了 cmake问题.png ,试了好多次,换了cmake的版本还是不行,不知道哪里出了问题,求高手指教,感激不尽啊~~O(∩_∩)O~
PS:我用Cmaker编译时候消息框中的提示如下:
The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Could not copy from: D:/Program Files/CMake 2.8/share/cmake-2.8/Templates/CMakeVSMacros2.vsmacros
                 to: d:/我的文档/Visual Studio 2010/Projects/VSMacros80/CMakeMacros/CMakeVSMacros2.vsmacros

Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Could not copy from: D:/Program Files/CMake 2.8/share/cmake-2.8/Templates/CMakeVSMacros2.vsmacros
                 to: d:/我的文档/Visual Studio 2010/Projects/VSMacros80/CMakeMacros/CMakeVSMacros2.vsmacros

Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Could not copy from: D:/Program Files/CMake 2.8/share/cmake-2.8/Templates/CMakeVSMacros2.vsmacros
                 to: d:/我的文档/Visual Studio 2010/Projects/VSMacros80/CMakeMacros/CMakeVSMacros2.vsmacros

Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Could not copy from: D:/Program Files/CMake 2.8/share/cmake-2.8/Templates/CMakeVSMacros2.vsmacros
                 to: d:/我的文档/Visual Studio 2010/Projects/VSMacros80/CMakeMacros/CMakeVSMacros2.vsmacros

Detecting CXX compiler ABI info - done
Found osg: D:/OSG/VS2010/lib/osg.lib  
Found osgDB: D:/OSG/VS2010/lib/osgDB.lib  
Found osgGA: D:/OSG/VS2010/lib/osgGA.lib  
Found osgViewer: D:/OSG/VS2010/lib/osgViewer.lib  
Found osgUtil: D:/OSG/VS2010/lib/osgUtil.lib  
Found osgText: D:/OSG/VS2010/lib/osgText.lib  
Found OpenThreads: D:/OSG/VS2010/lib/OpenThreads.lib  
Found OpenGL: opengl32  
Using FFTSS (LGPL) as FFT library.
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:
FFTSS_INCLUDE_DIR
   used as include directory in directory D:/OSG/osgOcean-Source-1.0.1/osgOcean/src/osgOcean
FFTSS_LIBRARY
    linked by target "osgOcean" in directory D:/OSG/osgOcean-Source-1.0.1/osgOcean/src/osgOcean

Configuring incomplete, errors occurred!

该用户从未签到

发表于 2013-4-6 10:27:39 | 显示全部楼层
cmake删除下历史然后重新整一遍吧,应该就是你在cmake过程中配置的问题!不是提示了FFTSS没有找到么?

该用户从未签到

 楼主| 发表于 2013-4-6 14:11:42 | 显示全部楼层
buptronin 发表于 2013-4-6 10:27
cmake删除下历史然后重新整一遍吧,应该就是你在cmake过程中配置的问题!不是提示了FFTSS没有找到么?

我重新下载了个ffts库,手动添加lib和include目录,就OK了,谢谢你哦~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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