QT程序编译问题

发布于 2022-10-15 07:18:41 字数 5717 浏览 20 评论 0

我用的是fedora11,现在用一个程序是opencv2.0+qtcreator4.5.3环境的,编译通过了,可以运行了,但是用摄像头的功能时会出现一下错误。
     请问如何解决?

  1. OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file cxcore/cxarray.cpp, line 3085
  2. Qt has caught an exception thrown from an event handler. Throwing
  3. exceptions from an event handler is not supported in Qt. You must
  4. reimplement QApplication::notify() and catch all exceptions there.
  5. terminate called after throwing an instance of '
  6. cv::Exception'
  7. warning:
  8. .dynamic section for "/lib/libgobject-2.0.so.0" is not at the expected address
  9. warning:
  10. difference appears to be caused by prelink, adjusting expectations
  11. warning:
  12. .dynamic section for "/usr/lib/libXrender.so.1" is not at the expected address
  13. warning:
  14. difference appears to be caused by prelink, adjusting expectations
  15. warning:
  16. .dynamic section for "/usr/lib/libfontconfig.so.1" is not at the expected address
  17. warning:
  18. difference appears to be caused by prelink, adjusting expectations
  19. warning: .dynamic section for "/usr/lib/libX11.so.6" is not at the expected address
  20. warning: difference appears to be caused by prelink, adjusting expectations
  21. warning: .dynamic section for "/lib/libz.so.1" is not at the expected address
  22. warning: difference appears to be caused by prelink, adjusting expectations
  23. warning: .dynamic section for "/lib/libgthread-2.0.so.0" is not at the expected address
  24. warning: difference appears to be caused by prelink, adjusting expectations
  25. warning: .dynamic section for "/lib/libdl.so.2" is not at the expected address
  26. warning: difference appears to be caused by prelink, adjusting expectations
  27. warning: .dynamic section for "/usr/lib/libgomp.so.1" is not at the expected address
  28. warning: difference appears to be caused by prelink, adjusting expectations
  29. warning: .dynamic section for "/usr/lib/libatk-1.0.so.0" is not at the expected address
  30. warning: difference appears to be caused by prelink, adjusting expectations
  31. warning: .dynamic section for "/usr/lib/libpangoft2-1.0.so.0" is not at the expected address
  32. warning: difference appears to be caused by prelink, adjusting expectations
  33. warning: .dynamic section for "/usr/lib/libpangocairo-1.0.so.0" is not at the expected address
  34. warning: difference appears to be caused by prelink, adjusting expectations
  35. warning: .dynamic section for "/lib/libgmodule-2.0.so.0" is not at the expected address
  36. warning: difference appears to be caused by prelink, adjusting expectations
  37. warning: .dynamic section for "/lib/libuuid.so.1" is not at the expected address
  38. warning: difference appears to be caused by prelink, adjusting expectations
  39. warning: .dynamic section for "/usr/lib/libXfixes.so.3" is not at the expected address
  40. warning: difference appears to be caused by prelink, adjusting expectations
  41. warning: .dynamic section for "/usr/lib/libXinerama.so.1" is not at the expected address
  42. warning: difference appears to be caused by prelink, adjusting expectations
  43. warning: .dynamic section for "/usr/lib/libXi.so.6" is not at the expected address
  44. warning: difference appears to be caused by prelink, adjusting expectations
  45. warning: .dynamic section for "/usr/lib/libXrandr.so.2" is not at the expected address
  46. warning: difference appears to be caused by prelink, adjusting expectations
  47. warning: .dynamic section for "/usr/lib/libXcursor.so.1" is not at the expected address
  48. warning: difference appears to be caused by prelink, adjusting expectations
  49. warning: .dynamic section for "/usr/lib/libXcomposite.so.1" is not at the expected address
  50. warning: difference appears to be caused by prelink, adjusting expectations
  51. warning: .dynamic section for "/usr/lib/libXdamage.so.1" is not at the expected address
  52. warning: difference appears to be caused by prelink, adjusting expectations
  53. warning: .dynamic section for "/lib/libcap.so.2" is not at the expected address
  54. warning: difference appears to be caused by prelink, adjusting expectations
  55. warning: .dynamic section for "/usr/lib/libcanberra-gtk.so.0" is not at the expected address
  56. warning: difference appears to be caused by prelink, adjusting expectations
  57. warning: .dynamic section for "/usr/lib/libvorbisfile.so.3" is not at the expected address
  58. warning: difference appears to be caused by prelink, adjusting expectations
  59. warning: .dynamic section for "/usr/lib/libogg.so.0" is not at the expected address
  60. warning: difference appears to be caused by prelink, adjusting expectations

复制代码

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

呆橘 2022-10-22 07:18:41

OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file cxcore/cxarray.cpp, line 3085
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

has this answer!!!,  and check your lib!!!

偏闹i 2022-10-22 07:18:41

回复 2# rlingxing

    ok,i got it

陈甜 2022-10-22 07:18:41

好像是环境的问题?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文