Ask Your Question

Revision history [back]

Qt+OpenCV+Win8x64

include <vector>

include <opencv2 core="" core.hpp="">

include <stdio.h>

include <iostream>

include <opencv2 opencv.hpp="">

include <opencv2 opencv_modules.hpp="">

include <opencv2 features2d="" features2d.hpp="">

include <opencv2 nonfree="" features2d.hpp="">

include <opencv2 nonfree="" nonfree.hpp="">

include <opencv cv.h="">

using namespace cv; using namespace std;

int main(int argc, char *argv[]) { SurfFeatureDetector detector(400);

return 0;

}

When assembling an error occurs (.idata$5+0x0):-1: error: multiple definition of _imp___ZTTN2cv4SURFE' (.idata$5+0x0):-1: first defined here 10:55:42: Запускается: «C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe» C:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory 'D:/Projects/build-surf-Desktop_Qt_5_3_MinGW_32bit-Debug' g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_CORE_LIB -I..\surf -I"C:\opencv\build\include" -I"C:\Qt\5.3\mingw482_32\include" -I"C:\Qt\5.3\mingw482_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\5.3\mingw482_32\mkspecs\win32-g++" -o debug\main.o ..\surf\main.cpp ..\surf\main.cpp:15:5: warning: unused parameter 'argc' [-Wunused-parameter] int main(int argc, char *argv[]) ^ ..\surf\main.cpp:15:5: warning: unused parameter 'argv' [-Wunused-parameter] g++ -Wl,-subsystem,console -mthreads -o debug\surf.exe debug/main.o C://opencv-minigw//bin//*.dll -LC:/Qt/5.3/mingw482_32/lib -lQt5Cored d000006.o:(.idata$5+0x0): multiple definition of_imp___ZTTN2cv4SURFE' d000002.o:(.idata$5+0x0): first defined here d000006.o:(.idata$6+0x0): multiple definition of _nm___ZTTN2cv4SURFE' d000002.o:(.idata$6+0x0): first defined here d000007.o:(.idata$5+0x0): multiple definition of_imp___ZTVN2cv4SURFE' d000003.o:(.idata$5+0x0): first defined here d000007.o:(.idata$6+0x0): multiple definition of `_nm___ZTVN2cv4SURFE' Makefile.Debug:77: recipe for target 'debug\surf.exe' failed mingw32-make[1]: Leaving directory 'D:/Projects/build-surf-Desktop_Qt_5_3_MinGW_32bit-Debug' Makefile:34: recipe for target 'debug' failed d000003.o:(.idata$6+0x0): first defined here collect2.exe: error: ld returned 1 exit status mingw32-make[1]: * [debug\surf.exe] Error 1 mingw32-make: * [debug] Error 2 10:55:44: Процесс «C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe» завершился с кодом 2. Ошибка при сборке/установке проекта surf (комплект: Desktop Qt 5.3 MinGW 32bit) Во время выполнения этапа «Сборка» 10:55:44: Прошло времени: 00:03.