Cannot find vc120.pdb during linking

asked 2015-10-06 02:23:22 -0500

DawidPi gravatar image

updated 2015-10-06 02:24:07 -0500

I compiled my own opencv3.0 with following options changed:


-->disable tests
-->disable perf_tests
-->shared libs is your own choice
-->disable with_static_crt
-->disable adas
-->disable line_descriptor (it may work with msvc 2013 and later)
-->disable saliency (it may work with msvc 2013 and later)
-->disable xfeatures2d (it may work with msvc 2013 and later)


-->arch_bins (2.0 2.1(2.0) 3.0 3.2 3.5 3.7 5.0 5.2 5.3)


-->enable create_distrib


-->disable opencl
-->disable openclamdblas
-->disable openclamdfft
-->disable opencl_svm

In the solution I manually specified output file for pdbs as


this was done for each module and 3rdParty

My problem is, that when I want to use OpenCV in my project compiled with following options, then I get linker warning as below:

Warning 169 warning LNK4099: PDB 'vc120.pdb' was not found with 'opencv_core300.lib(' or at 'Path/to/my/projects/outputs/vc120.pdb'; linking object as if no debug info

Path/to/opencv/libs/opencv_core300.lib( dense_reconstruction_framework_test

So for some reason cuda_compile_generated_gpu_mat.obj points some different .pdb than project's specified. Anyone knows what can cause this and how to fix this warning?

edit retag flag offensive close merge delete