Note that there are some explanatory texts on larger screens.

plurals
  1. POOpenCV project doesn't compile
    primarykey
    data
    text
    <p>I have this code that compiled perfectly, but had to format my machine and now it will not compile, a window pops up "The application failed to initialize properly (0xc0150002). Click OK to close the application."</p> <p>Does anyone know how to solve this problem?</p> <p>Below the code and log visual studio. I am using visual studio express 2010, windows 8.</p> <p>Code:</p> <pre><code>#include &lt;opencv2/imgproc/imgproc.hpp&gt; #include &lt;opencv2/highgui/highgui.hpp&gt; using namespace cv; int main ( int argc, char **argv ) { Mat im_gray; Mat img_bw; Mat img_final; Mat im_rgb = imread("img.jpg"); cvtColor(im_rgb,im_gray,CV_RGB2GRAY); adaptiveThreshold(im_gray, img_bw, 255, ADAPTIVE_THRESH_MEAN_C, THRESH_BINARY_INV, 105, 1); dilate(img_bw, img_final, Mat(), Point(-1, -1), 5, 1, 1); imwrite("img_final.jpg", img_final); return 0; </code></pre> <p>} </p> <p>Output:</p> <pre><code>'opencv.exe': Loaded 'C:\Users\Anne\Documents\opencv\Debug\opencv.exe', Symbols loaded. 'opencv.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Users\Anne\Documents\opencv\opencv\opencv_core230d.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Users\Anne\Documents\opencv\opencv\opencv_highgui230d.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Users\Anne\Documents\opencv\opencv\opencv_imgproc230d.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded. 'opencv.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded. 'opencv.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9200.16658_none_bf1359a245f1cd12\comctl32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\OpenCV2.3\build\x86\vc9\bin\tbb_debug.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\combase.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file 'opencv.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file The program '[2112] opencv.exe: Native' has exited with code -1072365566 (0xc0150002). </code></pre> <hr> <p>Update:</p> <p>I followed this and solved my problem. Now everything is working normally. Thank you all for the help. <a href="http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariable" rel="nofollow">http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariable</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload