Tuesday, June 11, 2013

Setting Project properties properly for OpenCV

The only thing you need to do is making sure that "Command Line" looks like below after you fill in the correct parameters in the project properties:

  • (Project Properties (right click on project name) > C/C++ > Command Line)

    • /I"C:\Program Files (x86)\SICK\3D Cameras\icon\inc" /Zi /clr /nologo /W3 /WX- /Od /Oy- /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /EHa /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fp"Debug\test_oguz03.pch" /Fa"Debug\" /Fo"Debug\" /Fd"Debug\vc100.pdb" /FU"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /analyze- /errorReport:queue 

  • (Project Properties (right click on project name) > Linker > Command Line)
    • /OUT:"C:\Users\a418970\documents\visual studio 2010\Projects\test_oguz03\Debug\test_oguz03.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files (x86)\SICK\3D Cameras\icon\lib" /LIBPATH:"C:\Program Files\OpenCV\build\lib\Debug" /LIBPATH:"C:\Program Files\OpenCV\build\lib" "opencv_core249d.lib" "opencv_imgproc249d.lib" "opencv_highgui249d.lib" "opencv_ml249d.lib" "opencv_video249d.lib" "opencv_features2d249d.lib" "opencv_calib3d249d.lib" "opencv_objdetect249d.lib" "opencv_contrib249d.lib" "opencv_legacy249d.lib" "opencv_flann249d.lib" "icon_vc100d.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /MANIFEST /ManifestFile:"Debug\test_oguz03.exe.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\a418970\documents\visual studio 2010\Projects\test_oguz03\Debug\test_oguz03.pdb" /ASSEMBLYDEBUG /PGD:"C:\Users\a418970\documents\visual studio 2010\Projects\test_oguz03\Debug\test_oguz03.pgd" /TLBID:1 /DYNAMICBASE /FIXED:NO /NXCOMPAT /MACHINE:X86 /ERRORREPORT:QUEUE 

Followers