Chinaunix

标题: QT程序编译问题 [打印本页]

作者: noiplee    时间: 2011-05-11 11:32
标题: QT程序编译问题
我用的是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
复制代码

作者: rlingxing    时间: 2011-05-11 11:58
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!!!
作者: noiplee    时间: 2011-05-11 15:16
回复 2# rlingxing


    ok,i got it
作者: noiplee    时间: 2011-05-11 22:28
好像是环境的问题?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2