查看: 3946|回复: 4

osg用mingw编译时,关于3rdParty的问题

[复制链接]

该用户从未签到

发表于 2011-4-19 13:28:58 | 显示全部楼层 |阅读模式
我用mingw编译OSG,但是在编译到3rdParty出了问题,我想是不是因为我下的是vs编译的所以才出问题的
下载地址是:https://osgtoy.svn.sourceforge.n ... 32binaries_vs90sp1/
有没有用mingw编译的,或者下载源代码,自己编译行不行啊

下面是出错信息:
  1. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdmarker.obj):(.text+0x707): undefined reference to `__security_cookie'
  2. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdmarker.obj):(.text+0xa1f): undefined reference to `@__security_check_cookie@4'
  3. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdmarker.obj):(.text+0x10c4): undefined reference to `__security_cookie'
  4. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdmarker.obj):(.text+0x1100): undefined reference to `@__security_check_cookie@4'
  5. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdmarker.obj):(.text+0x11f5): undefined reference to `@__security_check_cookie@4'
  6. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdmarker.obj):(.text+0x124c): undefined reference to `@__security_check_cookie@4'
  7. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jerror.obj):(.text+0x27): undefined reference to `__security_cookie'
  8. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jerror.obj):(.text+0x70): undefined reference to `@__security_check_cookie@4'
  9. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdcoefct.obj):(.text+0x867): undefined reference to `__security_cookie'
  10. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdcoefct.obj):(.text+0x97c): undefined reference to `@__security_check_cookie@4'
  11. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdcoefct.obj):(.text+0xe9a): undefined reference to `@__security_check_cookie@4'
  12. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdhuff.obj):(.text+0x7): undefined reference to `__security_cookie'
  13. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jdhuff.obj):(.text+0x2c9): undefined reference to `@__security_check_cookie@4'
  14. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jquant2.obj):(.text+0xbc7): undefined reference to `__security_cookie'
  15. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jquant2.obj):(.text+0xcf3): undefined reference to `@__security_check_cookie@4'
  16. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jchuff.obj):(.text+0x7): undefined reference to `__security_cookie'
  17. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jchuff.obj):(.text+0x20a): undefined reference to `@__security_check_cookie@4'
  18. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jchuff.obj):(.text+0x9c7): undefined reference to `__security_cookie'
  19. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jchuff.obj):(.text+0xc77): undefined reference to `@__security_check_cookie@4'
  20. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jcdctmgr.obj):(.text+0xe4a): undefined reference to `_ftol2_sse'
  21. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jcmaster.obj):(.text+0x1ed): undefined reference to `__security_cookie'
  22. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jcmaster.obj):(.text+0x594): undefined reference to `@__security_check_cookie@4'
  23. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jcmaster.obj):(.text+0x5d3): undefined reference to `@__security_check_cookie@4'
  24. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jidctflt.obj):(.text+0x436): undefined reference to `_ftol2_sse'
  25. mingw32-make[2]: Leaving directory `D:/OSG/mingwBuild/osg2.9.9'
  26. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jidctflt.obj):(.text+0x454): undefined reference to `_ftol2_sse'
  27. mingw32-make[1]: Leaving directory `D:/OSG/mingwBuild/osg2.9.9'
  28. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jidctflt.obj):(.text+0x477): undefined reference to `_ftol2_sse'
  29. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jidctflt.obj):(.text+0x490): undefined reference to `_ftol2_sse'
  30. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jidctflt.obj):(.text+0x4b3): undefined reference to `_ftol2_sse'
  31. D:\OSG\mingwBuild\3rdParty\lib\libjpeg.lib(jidctflt.obj):(.text+0x4cc): more undefined references to `_ftol2_sse' follow
  32. collect2: ld returned 1 exit status
  33. mingw32-make[2]: *** [bin/osgPlugins-2.9.9/mingw_osgdb_jpeg.dll] Error 1
  34. mingw32-make[1]: *** [src/osgPlugins/jpeg/CMakeFiles/osgdb_jpeg.dir/all] Error 2
  35. mingw32-make: *** [all] Error 2
复制代码

该用户从未签到

发表于 2011-4-19 16:56:00 | 显示全部楼层
是的,您的第三方库必须统一用mingw或者msys编译,部分cygwin编译的可能也可以使用

该用户从未签到

 楼主| 发表于 2011-4-19 17:08:35 | 显示全部楼层
谢谢王老师,但是我想在还有个问题,第三方库自己编译的话,可以
但是有的是.lib  有的是.a     很乱,我想统一把他们都编译成.lib的
就是不知道怎样才能将编译结果为.a的配置改下使之编译成.lib的链接库

该用户从未签到

发表于 2011-4-20 08:35:49 | 显示全部楼层
我不认为这是什么问题,要将.a文件转换为.lib我记得可以用libtool工具,但是必须同时带有def文件

该用户从未签到

 楼主| 发表于 2011-4-20 10:42:06 | 显示全部楼层
哦,谢谢您了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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