Probleme beim Kompileren von Qt/OpenCV2.0 Programm

Dein Thema passt einfach in kein Forum? Dann probiers mal hier.
Antworten
theprogrammer12
Beiträge: 38
Registriert: 12. August 2009 20:02

Probleme beim Kompileren von Qt/OpenCV2.0 Programm

Beitrag von theprogrammer12 »

Ich versuche ein Qt Programm zu kompilieren, dass OpenCV 2.0 verwendet. Mit der alten Version hat es perfekt funktioniert, aber die neue bringt mir beim Kompilieren Fehler:

Code: Alles auswählen

Running build steps for project webcam-streamer...
Configuration unchanged, skipping QMake step.
Starting: D:/Qt/2009.04/mingw/bin/mingw32-make.exe -w 
mingw32-make: Entering directory `D:/Eigene Dateien/webcam-streamer'
D:/Qt/2009.04/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/Eigene Dateien/webcam-streamer'
d:/Qt/2009.04/qt/bin/uic.exe mainwin.ui -o ui_mainwin.h
d:/Qt/2009.04/qt/bin/uic.exe imagesettings.ui -o ui_imagesettings.h
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'../../Qt/2009.04/qt/include/QtCore' -I'../../Qt/2009.04/qt/include/QtNetwork' -I'../../Qt/2009.04/qt/include/QtGui' -I'../../Qt/2009.04/qt/include' -I'../../lib/OpenCV2.0/include/opencv' -I'../../Qt/2009.04/qt/include/ActiveQt' -I'debug' -I'.' -I'../../Qt/2009.04/qt/mkspecs/win32-g++' -o debug/mainwin.o mainwin.cpp
In file included from ../../lib/OpenCV2.0/include/opencv/cxcore.hpp:2243,
from ../../lib/OpenCV2.0/include/opencv/cxcore.h:2123,
from ../../lib/OpenCV2.0/include/opencv/cv.h:58,
from imgconvert.h:4,
from mainwin.cpp:3:
../../lib/OpenCV2.0/include/opencv/cxoperations.hpp: In member function `void cv::Ptr<_Tp>::addref()':
../../lib/OpenCV2.0/include/opencv/cxoperations.hpp:1442: error: there are no arguments to `__exchange_and_add' that depend on a template parameter, so a declaration of `__exchange_and_add' must be available
../../lib/OpenCV2.0/include/opencv/cxoperations.hpp:1442: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../lib/OpenCV2.0/include/opencv/cxoperations.hpp: In member function `void cv::Ptr<_Tp>::release()':
../../lib/OpenCV2.0/include/opencv/cxoperations.hpp:1446: error: there are no arguments to `__exchange_and_add' that depend on a template parameter, so a declaration of `__exchange_and_add' must be available
../../lib/OpenCV2.0/include/opencv/cxoperations.hpp: In member function `cv::Ptr<_Tp>& cv::Ptr<_Tp>::operator=(const cv::Ptr<_Tp>&)':
../../lib/OpenCV2.0/include/opencv/cxoperations.hpp:1473: error: there are no arguments to `__exchange_and_add' that depend on a template parameter, so a declaration of `__exchange_and_add' must be available
In file included from ../../lib/OpenCV2.0/include/opencv/cxcore.hpp:2244,
from ../../lib/OpenCV2.0/include/opencv/cxcore.h:2123,
from ../../lib/OpenCV2.0/include/opencv/cv.h:58,
from imgconvert.h:4,
from mainwin.cpp:3:
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In copy constructor `cv::Mat::Mat(const cv::Mat&)':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:102: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:102: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In constructor `cv::Mat::Mat(const cv::Mat&, const cv::Range&, const cv::Range&)':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:174: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:174: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In constructor `cv::Mat::Mat(const cv::Mat&, const cv::Rect&)':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:189: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:189: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `cv::Mat& cv::Mat::operator=(const cv::Mat&)':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:239: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:239: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `void cv::Mat::addref()':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:342: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:342: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `void cv::Mat::release()':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:346: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:346: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In copy constructor `cv::MatND::MatND(const cv::MatND&)':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:3648: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:3648: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `cv::MatND& cv::MatND::operator=(const cv::MatND&)':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:3677: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:3677: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `void cv::MatND::addref()':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:3717: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:3717: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `void cv::MatND::release()':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:3722: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:3722: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `cv::SparseMat& cv::SparseMat::operator=(const cv::SparseMat&)':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:4081: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:4081: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `void cv::SparseMat::addref()':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:4112: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:4112: warning: unused variable '__exchange_and_add'
../../lib/OpenCV2.0/include/opencv/cxmat.hpp: In member function `void cv::SparseMat::release()':
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:4116: error: `__exchange_and_add' was not declared in this scope
../../lib/OpenCV2.0/include/opencv/cxmat.hpp:4116: warning: unused variable '__exchange_and_add'
mingw32-make[1]: Leaving directory `D:/Eigene Dateien/webcam-streamer'
mingw32-make: Leaving directory `D:/Eigene Dateien/webcam-streamer'
mingw32-make[1]: *** [debug/mainwin.o] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project webcam-streamer
When executing build step 'Make'
Hier meine *.pro Datei:

Code: Alles auswählen

INCLUDEPATH += "D:\lib\OpenCV2.0\include\opencv"
win32:LIBS += -L"D:\lib\OpenCV2.0\lib"
LIBS += -lhighgui \
    -lcv \
    -lcxcore \
    -lcvaux \
    -lcvcam
FORMS += mainwin.ui \
    imagesettings.ui
SOURCES += mainwin.cpp \
    main.cpp \
    imgconvert.cpp \
    imagesettings.cpp \
    videoserver.cpp
HEADERS += mainwin.h \
    imgconvert.h \
    imagesettings.h \
    main.h \
    videoserver.h
RESOURCES += resources.qrc
RC_FILE = icon.rc
QT += network
Ich benutze den Qt Creator 2009.04 und hab auch schon versucht den MinGW im Qt-Ordner durch den neuesten zu ersetzen, was auch nichts gebracht hat.
theprogrammer12
Beiträge: 38
Registriert: 12. August 2009 20:02

Beitrag von theprogrammer12 »

bump
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Beitrag von Christian81 »

Mal die openCV - Leute gefragt? Ggf. wird der Compiler nicht unterstützt oder was auch immer. Ist aber definitiv ein Problem mit openCV
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
Antworten