Building Error VS 2017 [closed]

asked 2019-10-17 00:47:11 -0600

Rob90 gravatar image

updated 2019-10-17 01:47:07 -0600

LBerger gravatar image

Hi I have some trouble with building my opencv on a windows. I will attache the CMAKE log file and the Output build from VS2017. Please rename the files to .txt C:\fakepath\cmakelog.jpg C:\fakepath\VSbuildLog.jpg

36>op_conv.cpp
36>op_lrn.cpp
36>op_permute.cpp
36>op_pool.cpp
48>utils.cpp
36>op_prior_box.cpp
48>opencl_kernels_rgbd.cpp
26>ImathVec.cpp
36>op_relu.cpp
48>opencv_rgbd_main.cpp
36>op_softmax.cpp
36>tensor.cpp
36>vk_functions.cpp
36>vk_loader.cpp
36>opencl_kernels_dnn.cpp
36>opencv_dnn_main.cpp
48>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\opencv_calib3d412d.lib'
48>Done building project "opencv_rgbd.vcxproj" -- FAILED.
49>------ Build started: Project: opencv_saliency, Configuration: Debug x64 ------
49>Building Custom Rule D:/Bachelor/opencv_contrib-master/modules/saliency/CMakeLists.txt
47>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\opencv_imgproc412d.lib'
47>Done building project "opencv_reg.vcxproj" -- FAILED.
50>------ Build started: Project: opencv_line_descriptor, Configuration: Debug x64 ------
49>opencv_saliency_pch.cpp
50>Building Custom Rule D:/Bachelor/opencv_contrib-master/modules/line_descriptor/CMakeLists.txt
49>CmFile.cpp
49>CmShow.cpp
49>FilterTIG.cpp
49>ValStructVec.cpp
26>IlmImf.vcxproj -> D:\Bachelor\opencv4\3rdparty\lib\Debug\IlmImfd.lib
50>opencv_line_descriptor_pch.cpp
51>------ Build started: Project: opencv_imgcodecs, Configuration: Debug x64 ------
49>objectnessBING.cpp
49>motionSaliency.cpp
49>motionSaliencyBinWangApr2014.cpp
49>objectness.cpp
49>saliency.cpp
49>staticSaliency.cpp
36>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\opencv_imgproc412d.lib'
49>staticSaliencyFineGrained.cpp
36>Done building project "opencv_dnn.vcxproj" -- FAILED.
52>------ Build started: Project: opencv_text, Configuration: Debug x64 ------
49>staticSaliencySpectralResidual.cpp
49>opencv_saliency_main.cpp
52>Building Custom Rule D:/Bachelor/opencv_contrib-master/modules/text/CMakeLists.txt
52>opencv_text_pch.cpp
51>Building Custom Rule D:/Bachelor/opencv-master/modules/imgcodecs/CMakeLists.txt
51>opencv_imgcodecs_pch.cpp
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-13 14:21:10.683717

Comments

that's not first error 48>LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_calib3d412d.lib'

Something is wrong in building process of opencv_imgproc412d.lib (and calib3d412d)

LBerger gravatar imageLBerger ( 2019-10-17 01:48:52 -0600 )edit

here's the 1st (from the build log):

D:\Bachelor\opencv-master\modules\core\include\opencv2/core/hal/intrin_avx512.hpp(1081): error C3861: '_mm256_min_epu64': identifier not found

so avx sse problem with VS2017

berak gravatar imageberak ( 2019-10-17 05:24:57 -0600 )edit
1

Yeah this one was just an example, I uploaded the whole build an log file! Any solutions for this problem?

Rob90 gravatar imageRob90 ( 2019-10-17 06:02:42 -0600 )edit

not really, just another issue: https://github.com/opencv/opencv_cont...

berak gravatar imageberak ( 2019-10-17 07:06:39 -0600 )edit

no problem to build opencv with opencv_contrib even with master using vs2017.where is buildlog?

LBerger gravatar imageLBerger ( 2019-10-17 09:19:00 -0600 )edit
1

links in the top of the question, e.g. https://answers.opencv.org/upfiles/15... (save as text)

@LBerger, maybe you can also look at the cmake output, the sse/avx sections ? (the other link)

@Rob90, maybe we can get some hardware specs of your box ?

berak gravatar imageberak ( 2019-10-17 09:24:33 -0600 )edit

@Rob90 _MM_PERM_ACBD is defined in C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\zmmintrin.h at line 160. Have you got this file? My vs version is 15.9.4

LBerger gravatar imageLBerger ( 2019-10-17 09:54:32 -0600 )edit