I was compiling a sample but am getting these errors in visual studio 2015 with opencv3.2.0! Please help its kinda urgent :(
'ConsoleApplication2.exe' (Win32): Loaded 'C:\Users\cartc.DESKTOP-U10DILR\Documents\Visual Studio 2015\Projects\ConsoleApplication2\x64\Debug\ConsoleApplication2.exe'. Symbols loaded. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Users\cartc.DESKTOP-U10DILR\Desktop\opencv\build\x64\vc14\bin\opencv_world320d.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.447_none_0d5aa7fbb6d35646\comctl32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Cannot find or open the PDB file. 'ConsoleApplication2.exe ...
there is no error here.
all those "Cannot find or open the PDB file" are warnings, that you won't be able to debug the resp. libs (lacking the pdb)
"has exited with code -1 " -- this is, what you should care for. look at the code again search for someting like
return -1;
, and try to find out, why this happened (most probably, in image or such was not found, and the prog finished early)Its the simple linear blender one.
The same problem is occuring with all the samples :(
Again, look for the error causing the
return -1
. I'm guessing you're not providing input parameters...Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) ConsoleApplication2 C:\Users\cartc.DESKTOP-U10DILR\Documents\Visual Studio 2015\Projects\ConsoleApplication2\ConsoleApplication2\MSVCRTD.lib(exe_main.obj) 1
Its giving this now.
I think you don't know what you're doing, at all. That last error makes no sense at all if the program compiled and run the first time, so stop touching what you shouldn't be touching, and instead read the code provided in the sample
I'm really sorry but I have been trying to compile any of the sample code since last 4 hours. First I went through the OpenCV documentation to see all about dependencies and linking. That didn't work for me at all, so I went through some YouTube videos and they were quite different from one another. The first example I loaded gave me the problem I stated in the main question. Then I tried another example and this is giving me this linker problem. I'm really tired can anyone please tell me what's the process to atleast load an example.Please?
The main question example is perfectly fine regarding dependencies and linking. It is not working because you're not providing the right input to the program, but that's a whole different story (and easily solvable if you took some little time to examine the code). I'd go back there, and just see what you're missing to end in the
return -1
sentence (if you update your question and provide the sample code, we might help a little more, but make some effort)