找回密码
 立即注册
收起左侧

OpenCV安装失败

1
回复
6277
查看
[复制链接]
累计签到:894 天
连续签到:1 天
来源: 2014-3-13 11:39:06 显示全部楼层 |阅读模式

马上注册,查看详细内容!注册请先查看:注册须知

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
执行CMake没有问题,但是用mingw编译是出现下面错误。
(部分错误)
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvCr
eateTrackbar+0x182): undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvCr
eateTrackbar+0x1a2): undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvDe
stroyWindow+0x4b): undefined reference to `_imp___ZN7QString16fromAscii_helperEP
Kci'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvDe
stroyWindow+0x11c): undefined reference to `_imp___ZN11QMetaObject12invokeMethod
EP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS7_S
7_S7_S7_S7_S7_S7_S7_S7_'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvDe
stroyWindow+0x13d): undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvDi
splayStatusBar+0x28): undefined reference to `_imp___ZN7QString16fromAscii_helpe
rEPKci'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvDi
splayStatusBar+0x12e): undefined reference to `_imp___ZN11QMetaObject12invokeMet
hodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS
7_S7_S7_S7_S7_S7_S7_S7_S7_'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvDi
splayStatusBar+0x160): undefined reference to `_imp___ZN7QString4freeEPNS_4DataE
'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvDi
splayStatusBar+0x17c): undefined reference to `_imp___ZN7QString4freeEPNS_4DataE
'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp.text$cvLo
adWindowParameters+0x4b): undefined reference to `_imp___ZN7QString16fromAscii_h
elperEPKci'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvLo
adWindowParameters+0x11c): undefined reference to `_imp___ZN11QMetaObject12invok
eMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgum
entS7_S7_S7_S7_S7_S7_S7_S7_S7_'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvLo
adWindowParameters+0x13d): undefined reference to `_imp___ZN7QString4freeEPNS_4D
ataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvSa
veWindowParameters+0x4a): undefined reference to `_imp___ZN7QString16fromAscii_h
elperEPKci'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvSa
veWindowParameters+0x11b): undefined reference to `_imp___ZN11QMetaObject12invok
eMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgum
entS7_S7_S7_S7_S7_S7_S7_S7_S7_'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvSa
veWindowParameters+0x13c): undefined reference to `_imp___ZN7QString4freeEPNS_4D
ataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvDi
splayOverlay+0x28): undefined reference to `_imp___ZN7QString16fromAscii_helperE
PKci'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvDi
splayOverlay+0x12e): undefined reference to `_imp___ZN11QMetaObject12invokeMetho
dEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS7_
S7_S7_S7_S7_S7_S7_S7_S7_'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvDi
splayOverlay+0x160): undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$cvDi
splayOverlay+0x17c): undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z18
cvSetModeWindow_QTPKcd+0x61): undefined reference to `_imp___ZN7QString16fromAsc
ii_helperEPKci'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z18
cvSetModeWindow_QTPKcd+0x132): undefined reference to `_imp___ZN11QMetaObject12i
nvokeMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericA
rgumentS7_S7_S7_S7_S7_S7_S7_S7_S7_'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z18
cvSetModeWindow_QTPKcd+0x153): undefined reference to `_imp___ZN7QString4freeEPN
S_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z18
cvSetPropWindow_QTPKcd+0x61): undefined reference to `_imp___ZN7QString16fromAsc
ii_helperEPKci'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z18
cvSetPropWindow_QTPKcd+0x132): undefined reference to `_imp___ZN11QMetaObject12i
nvokeMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericA
rgumentS7_S7_S7_S7_S7_S7_S7_S7_S7_'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z18
cvSetPropWindow_QTPKcd+0x153): undefined reference to `_imp___ZN7QString4freeEPN
S_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z19
cvSetRatioWindow_QTPKcd+0x61): undefined reference to `_imp___ZN7QString16fromAs
cii_helperEPKci'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z19
cvSetRatioWindow_QTPKcd+0x132): undefined reference to `_imp___ZN11QMetaObject12
invokeMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGeneric
ArgumentS7_S7_S7_S7_S7_S7_S7_S7_S7_'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.obj):window_QT.cpp:(.text$_Z19
cvSetRatioWindow_QTPKcd+0x153): undefined reference to `_imp___ZN7QString4freeEP
NS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_GLOBAL__I__ZN11GuiReceiver18qt_static_metacallEP7QObjectN11QMetaObject4Call
EiPPv+0x1): undefined reference to `_imp___ZN7QObject16staticMetaObjectE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_GLOBAL__I__ZN11GuiReceiver18qt_static_metacallEP7QObjectN11QMetaObject4Call
EiPPv+0x7): undefined reference to `_imp___ZN11QPushButton16staticMetaObjectE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_GLOBAL__I__ZN11GuiReceiver18qt_static_metacallEP7QObjectN11QMetaObject4Call
EiPPv+0x11): undefined reference to `_imp___ZN11QHBoxLayout16staticMetaObjectE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_GLOBAL__I__ZN11GuiReceiver18qt_static_metacallEP7QObjectN11QMetaObject4Call
EiPPv+0x1d): undefined reference to `_imp___ZN9QCheckBox16staticMetaObjectE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_GLOBAL__I__ZN11GuiReceiver18qt_static_metacallEP7QObjectN11QMetaObject4Call
EiPPv+0x2c): undefined reference to `_imp___ZN7QWidget16staticMetaObjectE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_GLOBAL__I__ZN11GuiReceiver18qt_static_metacallEP7QObjectN11QMetaObject4Call
EiPPv+0x38): undefined reference to `_imp___ZN12QRadioButton16staticMetaObjectE'

CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_GLOBAL__I__ZN11GuiReceiver18qt_static_metacallEP7QObjectN11QMetaObject4Call
EiPPv+0x47): undefined reference to `_imp___ZN13QGraphicsView16staticMetaObjectE
'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN8ViewPort11qt_metacastEPKc+0x54): undefined reference to `_imp___ZN13QGra
phicsView11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN8ViewPort11qt_metacallEN11QMetaObject4CallEiPPv+0x30): undefined referenc
e to `_imp___ZN13QGraphicsView11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN15CvWinProperties11qt_metacallEN11QMetaObject4CallEiPPv+0x4): undefined r
eference to `_imp___ZN7QWidget11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN8CvWindow11qt_metacastEPKc+0x54): undefined reference to `_imp___ZN7QWidg
et11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN15CvWinProperties11qt_metacastEPKc+0x54): undefined reference to `_imp___
ZN7QWidget11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN8CvWindow11qt_metacallEN11QMetaObject4CallEiPPv+0x30): undefined referenc
e to `_imp___ZN7QWidget11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN11CvButtonbar11qt_metacallEN11QMetaObject4CallEiPPv+0x4): undefined refer
ence to `_imp___ZN11QHBoxLayout11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvTrackbar11qt_metacastEPKc+0x54): undefined reference to `_imp___ZN11Q
HBoxLayout11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN11CvButtonbar11qt_metacastEPKc+0x54): undefined reference to `_imp___ZN11
QHBoxLayout11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvTrackbar11qt_metacallEN11QMetaObject4CallEiPPv+0x30): undefined refer
ence to `_imp___ZN11QHBoxLayout11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButton11qt_metacastEPKc+0x54): undefined reference to `_imp___ZN
12QRadioButton11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButton11qt_metacallEN11QMetaObject4CallEiPPv+0x30): undefined re
ference to `_imp___ZN12QRadioButton11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBox11qt_metacastEPKc+0x54): undefined reference to `_imp___ZN9QC
heckBox11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBox11qt_metacallEN11QMetaObject4CallEiPPv+0x30): undefined refer
ence to `_imp___ZN9QCheckBox11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButton11qt_metacastEPKc+0x54): undefined reference to `_imp___ZN1
1QPushButton11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButton11qt_metacallEN11QMetaObject4CallEiPPv+0x30): undefined ref
erence to `_imp___ZN11QPushButton11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN11GuiReceiver11qt_metacastEPKc+0x54): undefined reference to `_imp___ZN7Q
Object11qt_metacastEPKc'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN11GuiReceiver11qt_metacallEN11QMetaObject4CallEiPPv+0x30): undefined refe
rence to `_imp___ZN7QObject11qt_metacallEN11QMetaObject4CallEiPPv'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButtonD0Ev[CvPushButton::~CvPushButton()]+0x27): undefined refere
nce to `_imp___ZN11QPushButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButtonD0Ev[CvPushButton::~CvPushButton()]+0x40): undefined refere
nce to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButtonD0Ev[CvPushButton::~CvPushButton()]+0x4f): undefined refere
nce to `_imp___ZN11QPushButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButtonD1Ev[CvPushButton::~CvPushButton()]+0x23): undefined refere
nce to `_imp___ZN11QPushButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButtonD1Ev[CvPushButton::~CvPushButton()]+0x39): undefined refere
nce to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButtonD1Ev[CvPushButton::~CvPushButton()]+0x3e): undefined refere
nce to `_imp___ZN11QPushButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN12CvPushButtonD1Ev[CvPushButton::~CvPushButton()]+0x55): undefined refere
nce to `_imp___ZN11QPushButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD0Ev[CvCheckBox::~CvCheckBox()]+0x23): undefined reference to
`_imp___ZTV9QCheckBox'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD0Ev[CvCheckBox::~CvCheckBox()]+0x39): undefined reference to
`_imp___ZN15QAbstractButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD0Ev[CvCheckBox::~CvCheckBox()]+0x58): undefined reference to
`_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD0Ev[CvCheckBox::~CvCheckBox()]+0x60): undefined reference to
`_imp___ZTV9QCheckBox'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD0Ev[CvCheckBox::~CvCheckBox()]+0x7b): undefined reference to
`_imp___ZN15QAbstractButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD1Ev[CvCheckBox::~CvCheckBox()]+0x23): undefined reference to
`_imp___ZTV9QCheckBox'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD1Ev[CvCheckBox::~CvCheckBox()]+0x33): undefined reference to
`_imp___ZN15QAbstractButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD1Ev[CvCheckBox::~CvCheckBox()]+0x4b): undefined reference to
`_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD1Ev[CvCheckBox::~CvCheckBox()]+0x53): undefined reference to
`_imp___ZTV9QCheckBox'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN10CvCheckBoxD1Ev[CvCheckBox::~CvCheckBox()]+0x6e): undefined reference to
`_imp___ZN15QAbstractButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD0Ev[CvRadioButton::~CvRadioButton()]+0x23): undefined ref
erence to `_imp___ZTV12QRadioButton'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD0Ev[CvRadioButton::~CvRadioButton()]+0x39): undefined ref
erence to `_imp___ZN15QAbstractButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD0Ev[CvRadioButton::~CvRadioButton()]+0x58): undefined ref
erence to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD0Ev[CvRadioButton::~CvRadioButton()]+0x60): undefined ref
erence to `_imp___ZTV12QRadioButton'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD0Ev[CvRadioButton::~CvRadioButton()]+0x7b): undefined ref
erence to `_imp___ZN15QAbstractButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD1Ev[CvRadioButton::~CvRadioButton()]+0x23): undefined ref
erence to `_imp___ZTV12QRadioButton'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD1Ev[CvRadioButton::~CvRadioButton()]+0x33): undefined ref
erence to `_imp___ZN15QAbstractButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD1Ev[CvRadioButton::~CvRadioButton()]+0x4b): undefined ref
erence to `_imp___ZN7QString4freeEPNS_4DataE'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD1Ev[CvRadioButton::~CvRadioButton()]+0x53): undefined ref
erence to `_imp___ZTV12QRadioButton'
CMakeFiles\opencv_highgui.dir/objects.a(moc_window_QT.obj):moc_window_QT.cxx:(.t
ext$_ZN13CvRadioButtonD1Ev[CvRadioButton::~CvRadioButton()]+0x6e): undefined ref
erence to `_imp___ZN15QAbstractButtonD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(qrc_window_QT.obj):qrc_window_QT.cxx:(.t
ext$_Z27qCleanupResources_window_QTv+0x24): undefined reference to `_imp___Z23qU
nregisterResourceDataiPKhS0_S0_'
CMakeFiles\opencv_highgui.dir/objects.a(qrc_window_QT.obj):qrc_window_QT.cxx:(.t
ext$_Z24qInitResources_window_QTv+0x24): undefined reference to `_imp___Z21qRegi
sterResourceDataiPKhS0_S0_'
CMakeFiles\opencv_highgui.dir/objects.a(qrc_window_QT.obj):qrc_window_QT.cxx:(.t
ext$__tcf_0+0x24): undefined reference to `_imp___Z23qUnregisterResourceDataiPKh
S0_S0_'
CMakeFiles\opencv_highgui.dir/objects.a(qrc_window_QT.obj):qrc_window_QT.cxx:(.t
ext$_GLOBAL__I__Z24qInitResources_window_QTv+0x24): undefined reference to `_imp
___Z21qRegisterResourceDataiPKhS0_S0_'
C:\Qt\4.8.5\lib\libQtGui.a(qaccessible_win.o):qaccessible_win.cpp:(.text+0x1bb7)
: undefined reference to `PlaySoundW@12'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x68): undefined reference to `ImmGetContext@4'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0xa8): undefined reference to `ImmReleaseContext@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x19c): undefined reference to `ImmGetDefaultIMEWnd@4'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x2a4): undefined reference to `ImmAssociateContext@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x2c4): undefined reference to `ImmAssociateContext@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x340): undefined reference to `ImmGetCompositionStringW@16'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x7cb): undefined reference to `ImmSetCompositionWindow@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x7e0): undefined reference to `ImmSetCandidateWindow@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x7f4): undefined reference to `ImmSetCompositionFontW@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0xcf4): undefined reference to `ImmNotifyIME@16'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x204c): undefined reference to `ImmAssociateContext@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x2088): undefined reference to `ImmAssociateContext@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x20bc): undefined reference to `ImmAssociateContext@8'
C:\Qt\4.8.5\lib\libQtGui.a(qwininputcontext_win.o):qwininputcontext_win.cpp:(.te
xt+0x20ec): undefined reference to `ImmAssociateContext@8'
C:\Qt\4.8.5\lib\libQtCore.a(qeventdispatcher_win.o):qeventdispatcher_win.cpp:(.t
ext+0x511): undefined reference to `WSAAsyncSelect@16'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [bin/libopencv_highgui220.dll] Error 1
mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2

mingw32-make: *** [all] Error 2

我百度了一下,看到了一个类似的帖子
http://code.opencv.org/issues/3008

不知道有没有和我遇到过同样问题的。
环境:win8.1 Qt4.8.5 Mingw4.4.0 opencv(2.2.0/2.4.4/2.4.8) Cmake(2.8.12.2/2.8.9)

回复

使用道具 举报

累计签到:894 天
连续签到:1 天
2014-3-13 15:12:15 显示全部楼层
问题已解决,卸载Qt重装即可。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了