Generated cvconfig.h not included by MSVC2010 (Bug #944)


Added by Nick Kitten almost 14 years ago. Updated almost 14 years ago.


Status:Done Start date:
Priority:Blocker Due date:
Assignee:- % Done:

0%

Category:build/install
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

On WindowsXP, I downloaded the SVN trunk to a folder OpenCVDev, and configured my CMake ouput directory as OpenCVDev/build. After enabling CUDA, TBB, and Eigen2 and generating, I noticed that HAVE_CUDA, HAVE_TBB, etc. were not defined in the project. This was because the OpenCVDev folder was included before OpenCVDev/build, so the SVN version of cvconfig.h was being included instead of the generated one. Overwriting the SVN version fixed the problem.


Associated revisions

Revision 5237647f
Added by Roman Donchenko almost 12 years ago

Merge pull request #944 from jet47:cmake-2.8.11-cuda-fix

Revision bae85660
Added by Roman Donchenko almost 12 years ago

Merge remote-tracking branch 'origin/2.4'

Pull requests:
#943 from jet47:cuda-5.5-support
#944 from jet47:cmake-2.8.11-cuda-fix
#912 from SpecLad:contributing
#934 from SpecLad:parallel-for
#931 from jet47:gpu-test-fixes
#932 from bitwangyaoyao:2.4_fixBFM
#918 from bitwangyaoyao:2.4_samples
#924 from pengx17:2.4_arithm_fix
#925 from pengx17:2.4_canny_tmp_fix
#927 from bitwangyaoyao:2.4_perf
#930 from pengx17:2.4_haar_ext
#928 from apavlenko:bugfix_3027
#920 from asmorkalov:android_move
#910 from pengx17:2.4_oclgfft
#913 from janm399:2.4
#916 from bitwangyaoyao:2.4_fixPyrLK
#919 from abidrahmank:2.4
#923 from pengx17:2.4_macfix

Conflicts:
modules/calib3d/src/stereobm.cpp
modules/features2d/src/detectors.cpp
modules/gpu/src/error.cpp
modules/gpu/src/precomp.hpp
modules/imgproc/src/distransform.cpp
modules/imgproc/src/morph.cpp
modules/ocl/include/opencv2/ocl/ocl.hpp
modules/ocl/perf/perf_color.cpp
modules/ocl/perf/perf_imgproc.cpp
modules/ocl/perf/perf_match_template.cpp
modules/ocl/perf/precomp.cpp
modules/ocl/perf/precomp.hpp
modules/ocl/src/arithm.cpp
modules/ocl/src/canny.cpp
modules/ocl/src/filtering.cpp
modules/ocl/src/haar.cpp
modules/ocl/src/hog.cpp
modules/ocl/src/imgproc.cpp
modules/ocl/src/opencl/haarobjectdetect.cl
modules/ocl/src/pyrlk.cpp
modules/video/src/bgfg_gaussmix2.cpp
modules/video/src/lkpyramid.cpp
platforms/linux/scripts/cmake_arm_gnueabi_hardfp.sh
platforms/linux/scripts/cmake_arm_gnueabi_softfp.sh
platforms/scripts/ABI_compat_generator.py
samples/ocl/facedetect.cpp

History

Updated by Anatoly Baksheev almost 14 years ago

There should not be OpenCVDev/cvconfig.h. Something wrong in your system. Any update? or I'll close the ticket.

BTW, current trunk of opencv does not support CUDA for VS2010.c

Updated by Nick Kitten almost 14 years ago

anatoly: you were right, when I tried this again later on another machine, cvconfig.h did not find its way into the base directory. I'm honestly not sure now how it got into that state, but since I couldn't reproduce it, I'll close it.

As for VS 2010, for my application it's been sufficient to generate files for VS 2010, then compile only the GPU / GPU test projects using VS 2008. So far, it's worked fine with only one constraint: I can't pass 2010 std::vectors to my 2008 GPU module. However, restricting myself to functions using CV interfaces, it works fine.

  • Status changed from Open to Done
  • (deleted custom field) set to invalid

Also available in: Atom PDF