查看: 3063|回复: 6

OSG编译问题

[复制链接]

该用户从未签到

发表于 2013-1-28 12:42:49 | 显示全部楼层 |阅读模式
在OSG编译的时候Cmake下面出现的内容如下,为什么会有这么多not found 啊?该怎样处理呀?有哪位可以给点指点,谢谢啦
编译环境是:win7 64位+VS2008



The C compiler identification is MSVC 15.0.30729.1
The CXX compiler identification is MSVC 15.0.30729.1
Check for working C compiler using: Visual Studio 9 2008 Win64
Check for working C compiler using: Visual Studio 9 2008 Win64 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 9 2008 Win64
Check for working CXX compiler using: Visual Studio 9 2008 Win64 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Looking for include file pthread.h
Looking for include file pthread.h - not found
Found Threads: TRUE  
Found OpenGL: opengl32  
64 bit architecture detected
Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR)
CMake Warning at D:/OSG/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindITK.cmake:48 (find_package):
  Could not find a package configuration file named "ITKConfig.cmake"
  provided by package "ITK".

  Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set "ITK_DIR"
  to a directory containing one of the above files.  If "ITK" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:465 (FIND_PACKAGE)



Could NOT find OpenAL (missing:  OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
Could NOT find SDL (missing:  SDL_LIBRARY SDL_INCLUDE_DIR)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Looking for Q_WS_X11
Looking for Q_WS_X11 - not found
Looking for Q_WS_WIN
Looking for Q_WS_WIN - found
Looking for Q_WS_QWS
Looking for Q_WS_QWS - not found
Looking for Q_WS_MAC
Looking for Q_WS_MAC - not found
Found Qt4: C:/Qt/4.8.4/bin/qmake.exe (found version "4.8.4")
Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR)
CMake Warning (dev) at D:/OSG/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindPNG.cmake:34 (find_package):
  File D:/OSG/cmake-2.8.10.2-win32-x86/share/cmake-2.8/Modules/FindPNG.cmake
  includes D:/OSG/OpenSceneGraph-3.0.1/CMakeModules/FindZLIB.cmake (found via
  CMAKE_MODULE_PATH) which shadows
  D:/OSG/cmake-2.8.10.2-win32-x86/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)
Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Failed
Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS
Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS - Failed
Performing Test _OPENTHREADS_ATOMIC_USE_SUN
Performing Test _OPENTHREADS_ATOMIC_USE_SUN - Failed
Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED
Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Success
Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC
Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Failed
Configuring done


该用户从未签到

发表于 2013-1-28 16:04:13 | 显示全部楼层
不用管他 有些没有发现的是因为没有下载相应的三方库  您必须的把osg官网上的三方库包给下载下来

该用户从未签到

 楼主| 发表于 2013-1-28 21:59:40 | 显示全部楼层
w910916 发表于 2013-1-28 16:04
不用管他 有些没有发现的是因为没有下载相应的三方库  您必须的把osg官网上的三方库包给下载下来

第三方库都下下来了,只是不知道怎样整合,因为刚入门,我就把那些压缩包都解压放在了3rdparty里面。还是找不到,请问我应该怎样整合这些第三方库呢?并且,因为机子是64位的,VS2008也选择了64位的编译器,但是在编译的时候会有错误:模块计算机类型“X86”与目标计算机类型“x64”冲突。按照网上的做法清理生成方案后重新生成,但是问题还是没有解决。请问OSG是不是在64位的机子上使用时比较麻烦而且受限制?或者是有什么比较好的方法可以直接解除64位与32位有差别的困扰?

该用户从未签到

发表于 2013-1-28 22:30:38 | 显示全部楼层
本帖最后由 galuodo 于 2013-1-28 22:31 编辑

用第三方编译好的
注意,使用的库和os的64、32没有关系,而是目标的

该用户从未签到

 楼主| 发表于 2013-1-28 22:33:34 | 显示全部楼层
模块计算机类型“X86”与目标计算机类型“x64”冲突

那如上的错误提示怎么办?这是显示的我装的Qt的问题

该用户从未签到

 楼主| 发表于 2013-1-28 22:38:44 | 显示全部楼层
galuodo 发表于 2013-1-28 22:30
用第三方编译好的
注意,使用的库和os的64、32没有关系,而是目标的

模块计算机类型“X86”与目标计算机类型“x64”冲突

那如上的错误提示怎么办?这是显示的我装的Qt的问题

该用户从未签到

发表于 2013-1-28 23:39:37 | 显示全部楼层
菜鸟一号 发表于 2013-1-28 22:38
模块计算机类型“X86”与目标计算机类型“x64”冲突

那如上的错误提示怎么办?这是显示的我装的Qt的问 ...

您的程序是否修改为了64的 这个您在用cmake编译的时候把三方库包含在您下载的三方库就好了呀
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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