|
各位高人,前几日我将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编译)
然后我的文件目录是这样放置的
,然后我用cmake编译的时候就这样了
,试了好多次,换了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!
|
|