无法在启用opencv_world的情况下构建opencv

时间:2019-05-21 16:19:49

标签: visual-studio-2015 cmake opencv3.1

我正在尝试使用GUI构建图像处理应用,然后我发现了cvui

  • 我尝试过,但是cvui说它需要opencv_world
  • 所以我使用启用了opencv的cmake来重新生成opencv_world

  • ,但是当我尝试从中构建ALL_BUILD解决方案时失败 视觉工作室。

  • 我正在使用opencv 3.1和Visual Studio 2015。
  • 我禁用了CUDA,因为我的笔记本电脑没有专用的GPU。
  • 禁用opencv_world时我没有任何问题。

这是我的cmake代码

cmake
-DBUILD_DOCS:BOOL="0" 
-DOPENCV_CONFIG_FILE_INCLUDE_DIR:PATH="D:/OpenCV/OpenCV3.1.0" 
-DPYTHON3_PACKAGES_PATH:PATH="" 
-DOPENCV_EXTRA_MODULES_PATH:PATH="E:/Soft/opencv_contrib-3.1.0/modules" 
-DBUILD_opencv_world:BOOL="1" -DWITH_CUDA:BOOL="0"

这是错误消息

  

9> ------开始构建:项目:opencv_world,配置:调试   x64 ------ 9>生成opencl_kernels_core.cpp,   opencl_kernels_core.hpp 9>生成opencl_kernels_imgproc.cpp,   opencl_kernels_imgproc.hpp 9>生成opencl_kernels_photo.cpp,   opencl_kernels_photo.hpp 9>生成opencl_kernels_video.cpp,   opencl_kernels_video.hpp 9>生成opencl_kernels_objdetect.cpp,   opencl_kernels_objdetect.hpp 9>生成   opencl_kernels_superres.cpp,opencl_kernels_superres.hpp 9>   生成opencl_kernels_features2d.cpp,   opencl_kernels_features2d.hpp 9>生成   opencl_kernels_calib3d.cpp,opencl_kernels_calib3d.hpp 9>生成   opencl_kernels_stitching.cpp,opencl_kernels_stitching.hpp 9>   建立自定义规则   E:/Soft/opencv/sources/modules/world/CMakeLists.txt 9> CMake不   需要重新运行,因为   D:/OpenCV/OpenCV3.1.0/modules/world/CMakeFiles/generate.stamp是   最新。 9> algorithm.cpp 9> alloc.cpp 9> arithm.cpp 9>   array.cpp 9> command_line_parser.cpp 9> conjugate_gradient.cpp 9>   convert.cpp 9> copy.cpp 9> cuda_gpu_mat.cpp 9> cuda_host_mem.cpp 9>   cuda_info.cpp 9> cuda_stream.cpp 9> datastructs.cpp 9> directx.cpp   9> downhill_simplex.cpp 9> dxt.cpp 9> gl_core_3_1.cpp 9> glob.cpp   9> kmeans.cpp 9> lapack.cpp 9> lda.cpp 9> lpsolver.cpp 9>   mathfuncs.cpp 9> mathfuncs_core.cpp 9> matmul.cpp 9> matop.cpp 9>   matrix.cpp 9> matrix_decomp.cpp 9> ocl.cpp 9> opencl_clamdblas.cpp   9> opencl_clamdfft.cpp 9> opencl_core.cpp 9> opengl.cpp 9> out.cpp   9> parallel.cpp 9> parallel_pthreads.cpp 9> pca.cpp 9>   persistence.cpp 9> rand.cpp 9> split.cpp 9> stat.cpp 9> stl.cpp 9>   system.cpp 9>类型.cpp 9> umatrix.cpp 9> va_intel.cpp 9>   opencl_kernels_core.cpp 9> flann.cpp 9> miniflann.cpp 9> accum.cpp   9>大约cpp 9> blend.cpp 9> canny.cpp 9> clahe.cpp 9> color.cpp   9> colormap.cpp 9> connectedcomponents.cpp 9>轮廓.cpp 9>   convhull.cpp 9> corner.cpp 9> cornersubpix.cpp 9> demosaicing.cpp   9> deriv.cpp 9> distransform.cpp 9> drawing.cpp 9> emd.cpp 9>   featureselect.cpp 9> filter.cpp 9> Floodfill.cpp 9> gabor.cpp 9>   generalized_hough.cpp 9> geometry.cpp 9> grabcut.cpp 9>   hershey_fonts.cpp 9> histogram.cpp 9> hough.cpp 9> imgwarp.cpp 9>   相交.cpp 9> linefit.cpp 9> lsd.cpp 9> matchcontours.cpp 9>   min_enclosing_triangle.cpp 9> moments.cpp 9> morph.cpp 9>   phasecorr.cpp 9> pyramids.cpp 9> rotcalipers.cpp 9> samplers.cpp 9>   segmentation.cpp 9> shapeescr.cpp 9> smooth.cpp 9>   spacegradient.cpp 9> subdivision2d.cpp 9> sumpixels.cpp 9>   templmatch.cpp 9> thresh.cpp 9> undistort.cpp 9>   opencl_kernels_imgproc.cpp 9> ann_mlp.cpp 9> boost.cpp 9> data.cpp   9> em.cpp 9> gbt.cpp 9> inner_functions.cpp 9> kdtree.cpp 9>   knearest.cpp 9> lr.cpp 9> nbayes.cpp 9> rtrees.cpp 9> svm.cpp 9>   testset.cpp 9> tree.cpp 9> align.cpp 9> calibrate.cpp 9>   对比度_preserve.cpp 9> denoise_tvl1.cpp 9> denoising.cpp 9>   denoising.cuda.cpp 9> hdr_common.cpp 9> inpaint.cpp 9> npr.cpp 9>   Seamless_cloning.cpp 9> Seamless_cloning_impl.cpp 9> tonemap.cpp 9>   opencl_kernels_photo.cpp 9> bgfg_KNN.cpp 9> bgfg_gaussmix2.cpp 9>   camshift.cpp 9> compat_video.cpp 9> ecc.cpp 9> kalman.cpp 9>   lkpyramid.cpp 9> optflowgf.cpp 9> tvl1flow.cpp 9>   opencl_kernels_video.cpp 9> loadsave.cpp 9> grfmt_base.cpp 9>   grfmt_bmp.cpp 9> grfmt_exr.cpp 9> grfmt_gdal.cpp 9> grfmt_hdr.cpp   9> grfmt_jpeg.cpp 9> grfmt_jpeg2000.cpp 9> grfmt_png.cpp 9>   grfmt_pxm.cpp 9> grfmt_sunras.cpp 9> grfmt_tiff.cpp 9>   grfmt_webp.cpp 9> bitstrm.cpp 9> rgbe.cpp 9> jpeg_exif.cpp 9>   aff_trans.cpp 9> emdL1.cpp 9> haus_dis.cpp 9> hist_cost.cpp 9>   precomp.cpp 9> sc_dis.cpp 9> tps_trans.cpp 9> cap.cpp 9>   cap_images.cpp 9> cap_mjpeg_encoder.cpp 9> cap_mjpeg_decoder.cpp 9>   cap_cmu.cpp 9> cap_dshow.cpp 9> cap_vfw.cpp 9> cap_ffmpeg.cpp 9>   window.cpp 9> window_w32.cpp 9>级联检测.cpp 9>   Cascadedetect_convert.cpp 9> detection_based_tracker.cpp 9> haar.cpp   9> hog.cpp 9> opencl_kernels_objdetect.cpp 9> btv_l1.cpp 9>   btv_l1_cuda.cpp 9> input_array_utility.cpp 9> super_resolution.cpp   9> opencl_kernels_superres.cpp 9> agast.cpp 9> agast_score.cpp 9>   akaze.cpp 9> bagofwords.cpp 9> blobdetector.cpp 9> brisk.cpp 9>   draw.cpp 9> dynamic.cpp 9>评估.cpp 9> fast.cpp 9>   fast_score.cpp 9> feature2d.cpp 9> gftt.cpp 9> kaze.cpp 9>   AKAZEFeatures.cpp 9> KAZEFeatures.cpp 9> fed.cpp 9>   nldiffusion_functions.cpp 9> keypoint.cpp 9> mser.cpp 9> orb.cpp 9>   opencl_kernels_features2d.cpp 9> calibinit.cpp 9> Calibration.cpp 9>   checkchessboard.cpp 9> circlegrid.cpp 9> compat_ptsetreg.cpp 9>   compat_stereo.cpp 9> dls.cpp 9> epnp.cpp 9> fisheye.cpp 9>   五点cpp 9> fundam.cpp 9> homography_decomp.cpp 9>   levmarq.cpp 9> p3p.cpp 9> polynom_solver.cpp 9> posit.cpp 9>   ptsetreg.cpp 9> quadsubpix.cpp 9> rho.cpp 9> solvepnp.cpp 9>   stereobm.cpp 9> stereosgbm.cpp 9> triangulate.cpp 9> upnp.cpp 9>   opencl_kernels_calib3d.cpp 9> autocalib.cpp 9> blenders.cpp 9>   camera.cpp 9> Exposure_compensate.cpp 9> motion_estimators.cpp 9>   seam_finders.cpp 9>缝线器.cpp 9> timelapsers.cpp 9> util.cpp 9>   warpers.cpp 9> warpers_cuda.cpp 9> opencl_kernels_stitching.cpp 9>   deblurring.cpp 9> fast_marching.cpp 9> global_motion.cpp 9>   inpainting.cpp 9> log.cpp 9> motion_stabilizing.cpp 9>   outlier_rejection.cpp 9>稳定器.cpp 9> wobble_suppression.cpp 9>   world_init.cpp 9> merge.cpp 9> tables.cpp 9> main.cpp 9>   表.cpp 9> utils.cpp 9> merge.cpp 9> utils.cpp 9> main.cpp 9>   frame_source.cpp 9> Optical_flow.cpp 9> main.cpp 9> matchers.cpp 9>   main.cpp 9> matchers.cpp 9> frame_source.cpp 9> Optical_flow.cpp 9>   创建库D:/OpenCV/OpenCV3.1.0/lib/Debug/opencv_world310d.lib   和对象D:/OpenCV/OpenCV3.1.0/lib/Debug/opencv_world310d.exp   9> matchers.cpp.obj:错误LNK2019:无法解析的外部符号   “公共:__ cdecl cv :: cuda :: SURF_CUDA :: SURF_CUDA(void)”   (public中的函数:0SURF_CUDA @ cuda @ cv @@ QEAA @ XZ)引用:   __cdecl cv :: detail :: SurfFeaturesFinderGpu :: SurfFeaturesFinderGpu(double,int,int,int,int)“   (?? 0SurfFeaturesFinderGpu @ detail @ cv @@ QEAA @ NHHHH @ Z)9> matchers.cpp.obj   :错误LNK2019:无法解析的外部符号“公共:无效__cdecl   cv :: cuda :: SURF_CUDA :: downloadKeypoints(class cv :: cuda :: GpuMat const   &,class std :: vector>&)“   (?downloadKeypoints @ SURF_CUDA @ cuda @ cv @@ QEAAXAEBVGpuMat @ 23 @ AEAV?$ vector @ VKeyPoint @ cv @@ V?$ allocator @ VKeyPoint @ cv @@@ std @@@ std @@@ Z)   在函数“私有:虚拟void __cdecl中引用”   cv :: detail :: SurfFeaturesFinderGpu :: find(class cv :: _ InputArray const   &,struct cv :: detail :: ImageFeatures&)“   (?find @ SurfFeaturesFinderGpu @ detail @ cv @@ EEAAXAEBV_InputArray @ 3 @ AEAUImageFeatures @ 23 @@ Z)   9> matchers.cpp.obj:错误LNK2019:无法解析的外部符号   “ public:void __cdecl cv :: cuda :: SURF_CUDA :: operator()(class   cv :: cuda :: GpuMat const&,类cv :: cuda :: GpuMat const&,class   cv :: cuda :: GpuMat&)“   在(RSURF_CUDA @ cuda @ cv @@ QEAAXAEBVGpuMat @ 12 @ 0AEAV312 @@ Z)中引用   函数“专用:虚拟空__cdecl   cv :: detail :: SurfFeaturesFinderGpu :: find(class cv :: _ InputArray const   &,struct cv :: detail :: ImageFeatures&)“   (?find @ SurfFeaturesFinderGpu @ detail @ cv @@ EEAAXAEBV_InputArray @ 3 @ AEAUImageFeatures @ 23 @@ Z)   9> matchers.cpp.obj:错误LNK2019:无法解析的外部符号   “ public:void __cdecl cv :: cuda :: SURF_CUDA :: operator()(class   cv :: cuda :: GpuMat const&,类cv :: cuda :: GpuMat const&,class   cv :: cuda :: GpuMat&,class cv :: cuda :: GpuMat&,bool)“   已引用(?? RSURF_CUDA @ cuda @ cv @@ QEAAXAEBVGpuMat @ 12 @ 0AEAV312 @ 1_N @ Z)   在函数“私人:虚空__cdecl   cv :: detail :: SurfFeaturesFinderGpu :: find(class cv :: _ InputArray const   &,struct cv :: detail :: ImageFeatures&)“   (?find @ SurfFeaturesFinderGpu @ detail @ cv @@ EEAAXAEBV_InputArray @ 3 @ AEAUImageFeatures @ 23 @@ Z)   9> matchers.cpp.obj:错误LNK2019:无法解析的外部符号   “公共:void __cdecl cv :: cuda :: SURF_CUDA :: releaseMemory(void)”   函数中引用的(?releaseMemory @ SURF_CUDA @ cuda @ cv @@ QEAAXXZ)   “ public:虚空__cdecl   cv :: detail :: SurfFeaturesFinderGpu :: collectGarbage(void)“   (?collectGarbage @ SurfFeaturesFinderGpu @ detail @ cv @@ UEAAXXZ)   9> matchers.cpp.obj:错误LNK2019:无法解析的外部符号   “ public:静态结构cv :: Ptr __cdecl   cv :: xfeatures2d :: SURF :: create(double,int,int,bool,bool)“   (?create @ SURF @ xfeatures2d @ cv @@ SA?AU?$ Ptr @ VSURF @ xfeatures2d @ cv @@@ 3 @ NHH_N0 @ Z)   在函数“公共:__cdecl中引用”   cv :: detail :: SurfFeaturesFinder :: SurfFeaturesFinder(double,int,int,int,int)“   (?? 0SurfFeaturesFinder @ detail @ cv @@ QEAA @ NHHHH @ Z)9> matchers.cpp.obj:   错误LNK2001:无法解析的外部符号“公共:虚拟无效   __cdecl cv :: xfeatures2d :: DAISY :: compute(类cv :: _ InputArray const&,类std :: vector>,类std :: allocator>>&&,类cv :: _ OutputArray const&)”   (?compute @ DAISY @ xfeatures2d @ cv @@ UEAAXAEBV_InputArray @ 3 @ AEAV?$ vector @ V?$ vector @ VKeyPoint @ cv @@ V?$ allocator @ VKeyPoint @ cv @@@ std @@@ std @@ V? $ allocator @ V?$ vector @ VKeyPoint @ cv @@ V?$ allocator @ VKeyPoint @ cv @@ std @@@ std @@@ 2 @@ std @@ AEBV_OutputArray @ 3 @@ Z)   9> D:\ OpenCV \ OpenCV3.1.0 \ bin \ Debug \ opencv_world310d.dll:致命错误   LNK1120:7个未解决的外部

以及waldboost的一些错误

  

79> ------开始构建:项目:opencv_waldboost_detector,   配置:调试x64 ------ 79>构建自定义规则   E:/Soft/opencv_contrib-3.1.0/modules/xobjdetect/tools/waldboost_detector/CMakeLists.txt   79> CMake不需要重新运行,因为   D:/OpenCV/OpenCV3.1.0/modules/xobjdetect/tools/waldboost_detector/CMakeFiles/generate.stamp   已是最新。 79> waldboost_detector.cpp 79> LINK:致命错误   LNK1104:无法打开文件'opencv_core.lib'

0 个答案:

没有答案