Cannot find vc120.pdb during linking

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

DawidPi gravatar image

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

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

___BUILD___

-->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)

___CUDA___

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

___INSTALL___

-->enable create_distrib

___WITH___

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

In the solution I manually specified output file for pdbs as

 $(OutDir)$(TargetName).pdb

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(cuda_compile_generated_gpu_mat.cu.obj)' or at 'Path/to/my/projects/outputs/vc120.pdb'; linking object as if no debug info

Path/to/opencv/libs/opencv_core300.lib(cuda_compile_generated_gpu_mat.cu.obj) 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