Ask Your Question
0

ALL_BUILD compiles error into opencv project

asked 2016-03-28 05:04:00 -0600

marcob88 gravatar image

I try to install opencv 3.0 on Windows 10 with Visual Studio 2015 and i need of contrib library (in specific xfeatures2d). I have been following the step in this post:

[http://audhootchavancv.blogspot.it/20...]

but when i compile the OPENCV project (in specific ALL_BUILD) i have this errors:

Errore  C2382   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator =': ridefinizione. Specifiche di eccezione differenti. (compilazione del file di origine ..\..\..\modules\core\perf\opencl\perf_channels.cpp) opencv_perf_core    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple    463
Errore  LNK1104 impossibile aprire il file '..\..\lib\Debug\opencv_xfeatures2d300d.lib' opencv_stitching    C:\opencv\build\modules\stitching\LINK  1
Errore  LNK1104 impossibile aprire il file '..\..\lib\Debug\opencv_stitching300d.lib'   opencv_perf_stitching   C:\opencv\build\modules\stitching\LINK  1
Errore  LNK1104 impossibile aprire il file '..\..\lib\Debug\opencv_xfeatures2d300d.lib' opencv_perf_xfeatures2d C:\opencv\build\modules\xfeatures2d\LINK    1
Errore  LNK1104 impossibile aprire il file '..\..\lib\Debug\opencv_stitching300d.lib'   opencv_test_stitching   C:\opencv\build\modules\stitching\LINK  1
Errore  LNK1104 impossibile aprire il file '..\..\lib\Debug\opencv_xfeatures2d300d.lib' opencv_test_xfeatures2d C:\opencv\build\modules\xfeatures2d\LINK    1
Errore  C3861   '.?AV?$Matx@N$01$01@cv@@': identificatore non trovato (compilazione del file di origine ..\..\..\modules\core\test\test_mat.cpp)    opencv_test_core    C:\opencv\modules\core\include\opencv2\core\mat.inl.hpp 1597
Errore  C2672   'cv::Mat::operator cv::Matx<double,2,2>': non sono state trovate funzioni in overload corrispondenti (compilazione del file di origine ..\..\..\modules\core\test\test_mat.cpp) opencv_test_core    C:\opencv\modules\core\include\opencv2\core\mat.inl.hpp 1597
Errore  C2264   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple': errore nella definizione o dichiarazione di funzione. Funzione non chiamata.   opencv_perf_core    C:\opencv\modules\core\perf\opencl\perf_channels.cpp    165
Errore  C1903   impossibile recuperare l'errore o gli errori precedenti. Interruzione della compilazione    opencv_perf_core    C:\opencv\modules\core\perf\opencl\perf_channels.cpp    165
Errore  C1083   Non è possibile aprire il file inclusione: 'opencv2/core/hal/hal.hpp': No such file or directory    opencv_xfeatures2d  C:\opencv\modules\xfeatures2d\src\sift.cpp  108
Errore  C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': non è una funzione membro speciale da poter impostare come predefinita (compilazione del file di origine ..\..\..\modules\core\perf\opencl\perf_channels.cpp)  opencv_perf_core    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple    328
Errore  C2610   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::tuple(std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &&)': non è una funzione membro speciale da poter impostare come predefinita (compilazione del file di origine ..\..\..\modules\core\perf\opencl\perf_channels.cpp)   opencv_perf_core    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple    329
Errore  C2535   'std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth>::operator =(const std::tuple<cv::Size,perf::`anonymous-namespace'::MatDepth> &)': funzione membro già definita o dichiarata (compilazione del file di origine ..\..\..\modules\core\perf\opencl\perf_channels.cpp)  opencv_perf_core    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple    463

can you ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2016-03-28 05:10:21 -0600

berak gravatar image

updated 2016-03-28 05:17:44 -0600

if you want to use the opencv_contrib repo, you will have to update your main opencv to current master (3.1.0, atm). do yourself a favour, and do a git clone https://github.com/itseez/opencv this time, because it is easier to update like this in the future)

try to update, clean your build folder, rerun cmake.

edit flag offensive delete link more

Comments

thanks, with this version i resolved the problem!!!

marcob88 gravatar imagemarcob88 ( 2016-03-28 11:19:16 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-03-28 05:04:00 -0600

Seen: 1,297 times

Last updated: Mar 28 '16