查看: 2019|回复: 4

linux下cmake编译osg出错

[复制链接]

该用户从未签到

发表于 2012-5-4 22:45:17 | 显示全部楼层 |阅读模式
错误提示,求各位帮帮忙
  1. -- Looking for include files CMAKE_HAVE_PTHREAD_H
  2. -- Looking for include files CMAKE_HAVE_PTHREAD_H - found
  3. -- Looking for pthread_create in pthreads
  4. -- Looking for pthread_create in pthreads - not found
  5. -- Looking for pthread_create in pthread
  6. -- Looking for pthread_create in pthread - found
  7. -- Found Threads: TRUE
  8. -- Looking for pthread_yield
  9. -- Looking for pthread_yield - found
  10. -- Looking for pthread_setconcurrency
  11. -- Looking for pthread_setconcurrency - found
  12. -- Looking for pthread_getconcurrency
  13. -- Looking for pthread_getconcurrency - found
  14. -- Looking for pthread_setaffinity_np
  15. -- Looking for pthread_setaffinity_np - found
  16. -- Performing Test COMPILES_PTHREAD_SETAFFINITY_NP
  17. -- Performing Test COMPILES_PTHREAD_SETAFFINITY_NP - Success
  18. CMake Error at osg/CMakeLists.txt:328 (LINK_INTERNAL):
  19.   Unknown CMake command "LINK_INTERNAL".


  20. CMake Warning (dev) in CMakeLists.txt:
  21.   No cmake_minimum_required command is present.  A line of code such as

  22.     cmake_minimum_required(VERSION 2.8)

  23.   should be added at the top of the file.  The version specified may be lower
  24.   if you wish to support older CMake versions for this project.  For more
  25.   information run "cmake --help-policy CMP0000".
  26. This warning is for project developers.  Use -Wno-dev to suppress it.

  27. -- Configuring incomplete, errors occurred!
复制代码

该用户从未签到

 楼主| 发表于 2012-5-4 22:47:24 | 显示全部楼层
在本论坛找到相同错误信息的http://bbs.osgchina.org/forum.php?mod=viewthread&tid=4365
只不过他是在windows下编译,而且没说怎么解决的

该用户从未签到

发表于 2012-5-7 11:49:52 | 显示全部楼层
Unknown CMake command "LINK_INTERNAL"
这个提示说明您很可能没有调用OSG根目录下的CmakeLists;而是调用了某个子目录的,这是不允许的

该用户从未签到

发表于 2012-11-6 12:08:16 | 显示全部楼层
array 发表于 2012-5-7 11:49
这个提示说明您很可能没有调用OSG根目录下的CmakeLists;而是调用了某个子目录的,这是不允许的

能不能单独编译,某一个源文件呢?比如osgQT,但是cmake报错,不能正常编译,不知道有办法解决没?

该用户从未签到

发表于 2012-11-9 10:05:14 | 显示全部楼层
不能单独编译某个源文件,除非您自己重新建立一个工程
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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