查看: 10947|回复: 10

请教:CMake的一些configure错误

[复制链接]

该用户从未签到

发表于 2011-7-17 09:10:31 | 显示全部楼层 |阅读模式
本帖最后由 bitok 于 2011-7-17 09:12 编辑

Win7 + VS2010,CMake configure 后显示如下:  这些错误该如何修正呢? 3rdParty用的是3rdParty_VC9sp1_x86_x64-src_V7.7z,LibXml2、CURL等都没有,在哪儿能找到呢?(CMake是在官网下的2.8.5)
32 bit architecture detected

searching TIFF -->tiff.h<-->libtiff<-->C:/OSG/3rdparty<--

searching FREETYPE -->ft2build.h<-->freetype;freetype2311MT;freetype234;freetype234MT;freetype235;freetype237;freetype238;freetype244;<-->C:/OSG/3rdparty<--

searching CURL -->curl/curl.h<-->libcurl;curllib<-->C:/OSG/3rdparty<--

searching JPEG -->jpeglib.h<-->libjpeg;jpeg<-->C:/OSG/3rdparty<--

searching GDAL -->gdal.h<-->gdal;gdal16<-->C:/OSG/3rdparty<--

searching GLUT -->GL/glut.h<-->glut32<-->C:/OSG/3rdparty<--

searching GIFLIB -->gif_lib.h<-->ungif;libungif;giflib<-->C:/OSG/3rdparty<--

searching ZLIB -->zlib.h<-->z;zlib;zlib1<-->C:/OSG/3rdparty<--

searching LIBXML2 -->libxml<-->libxml2<-->C:/OSG/3rdparty<--

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 configuration file for package ITK.


Set ITK_DIR to the directory containing a CMake configuration file for ITK.

The file will be called ITKConfig.cmake

Call Stack (most recent call first):

CMakeLists.txt:465 (FIND_PACKAGE)



Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)

Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY)

Could NOT find Qt3 (missing: QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE)

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:29 (find_package):

File C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPNG.cmake

includes C:/OSG/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)

Configuring done

该用户从未签到

发表于 2011-7-17 11:09:20 | 显示全部楼层
用的第三方库明显就不对,,3rdParty_VC9sp1_x86_x64-src_V7.7z,,这个是VS2008的库,而你的环境是VS2010~~~~~~~

该用户从未签到

 楼主| 发表于 2011-7-17 15:19:29 | 显示全部楼层
回复 2# FlySky


用这个库3rdParty_VC10_x86_x64也是一样的结果,斑竹可否给个能用的链接啊

该用户从未签到

发表于 2011-7-18 08:15:49 | 显示全部楼层
这个第三方库包里好像不包含curl和libxml2,此外后者对于OSG也没有直接的贡献。您可以自己下载curl的源代码或者预编译包使用

该用户从未签到

 楼主| 发表于 2011-7-18 20:49:53 | 显示全部楼层
原来是这样,谢谢

该用户从未签到

发表于 2013-9-7 23:43:03 | 显示全部楼层
请教怎么解决这个问题的?我也遇到了~

该用户从未签到

发表于 2013-12-1 14:35:05 | 显示全部楼层
这个问题你怎么解决了?请给我说一下好吗?谢谢

该用户从未签到

发表于 2013-12-1 14:36:08 | 显示全部楼层
heavymetalcu 发表于 2013-9-7 23:43
请教怎么解决这个问题的?我也遇到了~

大神,这个问题你解决了吗

该用户从未签到

发表于 2013-12-1 14:37:03 | 显示全部楼层
Win7 + VS2010,CMake configure 后显示如下:  这些错误该如何修正呢? 3rdParty用的是3rdParty_VC9sp1_x86_x64-src_V7.7z,LibXml2、CURL等都没有,在哪儿能找到呢?(CMake是在官网下的2.8.5)
32 bit architecture detected
searching TIFF -->tiff.h<-->libtiff<-->C:/OSG/3rdparty<--
searching FREETYPE -->ft2build.h<-->freetype;freetype2311MT;freetype234;freetype234MT;freetype235;freetype237;freetype238;freetype244;<-->C:/OSG/3rdparty<--
searching CURL -->curl/curl.h<-->libcurl;curllib<-->C:/OSG/3rdparty<--
searching JPEG -->jpeglib.h<-->libjpeg;jpeg<-->C:/OSG/3rdparty<--
searching GDAL -->gdal.h<-->gdal;gdal16<-->C:/OSG/3rdparty<--
searching GLUT -->GL/glut.h<-->glut32<-->C:/OSG/3rdparty<--
searching GIFLIB -->gif_lib.h<-->ungif;libungif;giflib<-->C:/OSG/3rdparty<--
searching ZLIB -->zlib.h<-->z;zlib;zlib1<-->C:/OSG/3rdparty<--
searching LIBXML2 -->libxml<-->libxml2<-->C:/OSG/3rdparty<--
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 configuration file for package ITK.

Set ITK_DIR to the directory containing a CMake configuration file for ITK.
The file will be called ITKConfig.cmake
Call Stack (most recent call first):
CMakeLists.txt:465 (FIND_PACKAGE)


Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY)
Could NOT find Qt3 (missing: QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE)
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:29 (find_package):
File C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPNG.cmake
includes C:/OSG/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)
Configuring done

该用户从未签到

发表于 2013-12-20 21:55:55 | 显示全部楼层
这个问题你不用管,直接进行下一步

该用户从未签到

发表于 2015-6-9 21:11:46 | 显示全部楼层
array 发表于 2011-7-18 08:15
这个第三方库包里好像不包含curl和libxml2,此外后者对于OSG也没有直接的贡献。您可以自己下载curl的源代码 ...

1>c:\users\administrator\documents\visual studio 2010\projects\osgtext\osgtext\osgtext.cpp(7): fatal error C1083: 无法打开包括文件:“osgViewer/Viewer”: No such file or directory
版主我想问下这是怎么回事呀。谢谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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