bitok 发表于 2011-7-17 09:10:31

请教:CMake的一些configure错误

本帖最后由 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.cmakeCall 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.cmakeincludes C:/OSG/OpenSceneGraph-3.0.0/CMakeModules/FindZLIB.cmake (found viaCMAKE_MODULE_PATH) which shadows C:/Program Files (x86)/CMake2.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 directorywhen including from there. Run "cmake --help-policy CMP0017" for policydetails. Use the cmake_policy command to set the policy and suppress thiswarning.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

FlySky 发表于 2011-7-17 11:09:20

用的第三方库明显就不对,,3rdParty_VC9sp1_x86_x64-src_V7.7z,,这个是VS2008的库,而你的环境是VS2010~~~~~~~

bitok 发表于 2011-7-17 15:19:29

回复 2# FlySky


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

array 发表于 2011-7-18 08:15:49

这个第三方库包里好像不包含curl和libxml2,此外后者对于OSG也没有直接的贡献。您可以自己下载curl的源代码或者预编译包使用

bitok 发表于 2011-7-18 20:49:53

原来是这样,谢谢

heavymetalcu 发表于 2013-9-7 23:43:03

请教怎么解决这个问题的?我也遇到了~:Q

mn04051016 发表于 2013-12-1 14:35:05

这个问题你怎么解决了?请给我说一下好吗?谢谢

mn04051016 发表于 2013-12-1 14:36:08

heavymetalcu 发表于 2013-9-7 23:43
请教怎么解决这个问题的?我也遇到了~

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

mn04051016 发表于 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

mn04051016 发表于 2013-12-20 21:55:55

这个问题你不用管,直接进行下一步

yang2008 发表于 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
版主我想问下这是怎么回事呀。谢谢了
页: [1]
查看完整版本: 请教:CMake的一些configure错误