{"action":"closed","issue":{"url":"https://api.github.com/repos/opencv/opencv/issues/11645","repository_url":"https://api.github.com/repos/opencv/opencv","labels_url":"https://api.github.com/repos/opencv/opencv/issues/11645/labels{/name}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/11645/comments","events_url":"https://api.github.com/repos/opencv/opencv/issues/11645/events","html_url":"https://github.com/opencv/opencv/issues/11645","id":328265738,"node_id":"MDU6SXNzdWUzMjgyNjU3Mzg=","number":11645,"title":"LINK : fatal error LNK1104: cannot open file 'python36_d.lib' [G:\\Lib\\build\\opencv\\modules\\python3\\opencv_python3.vcxproj]","user":{"login":"LaurentBerger","id":3591626,"node_id":"MDQ6VXNlcjM1OTE2MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/3591626?v=4","gravatar_id":"","url":"https://api.github.com/users/LaurentBerger","html_url":"https://github.com/LaurentBerger","followers_url":"https://api.github.com/users/LaurentBerger/followers","following_url":"https://api.github.com/users/LaurentBerger/following{/other_user}","gists_url":"https://api.github.com/users/LaurentBerger/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentBerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentBerger/subscriptions","organizations_url":"https://api.github.com/users/LaurentBerger/orgs","repos_url":"https://api.github.com/users/LaurentBerger/repos","events_url":"https://api.github.com/users/LaurentBerger/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentBerger/received_events","type":"User","site_admin":false},"labels":[{"id":241025032,"node_id":"MDU6TGFiZWwyNDEwMjUwMzI=","url":"https://api.github.com/repos/opencv/opencv/labels/category:%20build/install","name":"category: build/install","color":"ededed","default":false},{"id":9731373,"node_id":"MDU6TGFiZWw5NzMxMzcz","url":"https://api.github.com/repos/opencv/opencv/labels/invalid","name":"invalid","color":"000000","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-31T19:24:30Z","updated_at":"2018-05-31T19:46:05Z","closed_at":"2018-05-31T19:46:04Z","author_association":"CONTRIBUTOR","body":"- OpenCV => 4.0.0\r\n- Operating System / Platform => Windows 64 Bit\r\n- Compiler => Visual Studio 2017\r\n\r\nWhen I build opencv I have got one error : \r\n\"G:\\Lib\\build\\opencv\\ALL_BUILD.vcxproj\" (cible par d▒faut) (1) ->\r\n\"G:\\Lib\\build\\opencv\\modules\\python3\\opencv_python3.vcxproj\" (cible par d▒faut) (420) ->\r\n(Link cible) ->\r\n  LINK : fatal error LNK1104: cannot open file  'python36_d.lib' [G:\\Lib\\build\\opencv\\modules\\python3\\opencv_python3.vcxproj]\r\n\r\n    366 Avertissement(s)\r\n    1 Erreur(s)\r\n\r\nProblem when I opencv debug version of opencv_python3 project, command line is : \r\n`/OUT:\"G:\\Lib\\build\\opencv\\lib\\python3\\Debug\\cv2.cp36-win_amd64.pyd\" /MANIFEST /NXCOMPAT /PDB:\"G:/Lib/build/opencv/lib/python3/Debug/cv2.pdb\" /DYNAMICBASE \"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\libs\\python36.lib\" \"..\\..\\lib\\Debug\\opencv_reg400d.lib\" \"..\\..\\lib\\Debug\\opencv_surface_matching400d.lib\" \"..\\..\\lib\\Debug\\opencv_xphoto400d.lib\" \"..\\..\\lib\\Debug\\opencv_face400d.lib\" \"..\\..\\lib\\Debug\\opencv_fuzzy400d.lib\" \"..\\..\\lib\\Debug\\opencv_hfs400d.lib\" \"..\\..\\lib\\Debug\\opencv_img_hash400d.lib\" \"..\\..\\lib\\Debug\\opencv_xobjdetect400d.lib\" \"..\\..\\lib\\Debug\\opencv_superres400d.lib\" \"..\\..\\lib\\Debug\\opencv_bioinspired400d.lib\" \"..\\..\\lib\\Debug\\opencv_dpm400d.lib\" \"..\\..\\lib\\Debug\\opencv_line_descriptor400d.lib\" \"..\\..\\lib\\Debug\\opencv_saliency400d.lib\" \"..\\..\\lib\\Debug\\opencv_ccalib400d.lib\" \"..\\..\\lib\\Debug\\opencv_rgbd400d.lib\" \"..\\..\\lib\\Debug\\opencv_structured_light400d.lib\" \"..\\..\\lib\\Debug\\opencv_tracking400d.lib\" \"..\\..\\lib\\Debug\\opencv_videostab400d.lib\" \"..\\..\\lib\\Debug\\opencv_aruco400d.lib\" \"..\\..\\lib\\Debug\\opencv_bgsegm400d.lib\" \"..\\..\\lib\\Debug\\opencv_optflow400d.lib\" \"..\\..\\lib\\Debug\\opencv_sfm400d.lib\" \"..\\..\\lib\\Debug\\opencv_stitching400d.lib\" \"..\\..\\lib\\Debug\\opencv_objdetect400d.lib\" \"..\\..\\lib\\Debug\\opencv_phase_unwrapping400d.lib\" \"..\\..\\lib\\Debug\\opencv_viz400d.lib\" \"..\\..\\lib\\Debug\\opencv_plot400d.lib\" \"..\\..\\lib\\Debug\\opencv_datasets400d.lib\" \"..\\..\\lib\\Debug\\opencv_text400d.lib\" \"..\\..\\lib\\Debug\\opencv_dnn400d.lib\" \"..\\..\\lib\\Debug\\opencv_photo400d.lib\" \"..\\..\\lib\\Debug\\opencv_ximgproc400d.lib\" \"..\\..\\lib\\Debug\\opencv_xfeatures2d400d.lib\" \"..\\..\\lib\\Debug\\opencv_ml400d.lib\" \"..\\..\\lib\\Debug\\opencv_shape400d.lib\" \"..\\..\\lib\\Debug\\opencv_video400d.lib\" \"..\\..\\lib\\Debug\\opencv_calib3d400d.lib\" \"..\\..\\lib\\Debug\\opencv_features2d400d.lib\" \"..\\..\\lib\\Debug\\opencv_flann400d.lib\" \"..\\..\\lib\\Debug\\opencv_highgui400d.lib\" \"..\\..\\lib\\Debug\\opencv_videoio400d.lib\" \"..\\..\\lib\\Debug\\opencv_imgcodecs400d.lib\" \"..\\..\\lib\\Debug\\opencv_imgproc400d.lib\" \"..\\..\\lib\\Debug\\opencv_core400d.lib\" \"kernel32.lib\" \"user32.lib\" \"gdi32.lib\" \"winspool.lib\" \"shell32.lib\" \"ole32.lib\" \"oleaut32.lib\" \"uuid.lib\" \"comdlg32.lib\" \"advapi32.lib\" /IMPLIB:\"G:/Lib/build/opencv/lib/Debug/opencv_python3.lib\" /DEBUG /DLL /MACHINE:X64 /INCREMENTAL /PGD:\"G:\\Lib\\build\\opencv\\lib\\python3\\Debug\\cv2.cp36-win_amd64.pgd\" /SUBSYSTEM:CONSOLE /MANIFESTUAC:\"level='asInvoker' uiAccess='false'\" /ManifestFile:\"opencv_python3.dir\\Debug\\cv2.cp36-win_amd64.pyd.intermediate.manifest\" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1 `\r\n\r\npython library is  \"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\libs\\python36.lib\" and it should be  \"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\libs\\python36_d.lib\". When I replace python36.lib by python36_d .lib I can buidl opencv_python3 in debug \r\n\r\n\r\nmy script to build opencv is \r\n```\r\n\r\nmyRepo=$(pwd)\r\nCMAKE_CONFIG_GENERATOR=\"Visual Studio 15 2017 Win64\"\r\nRepoSource=opencv\r\ncd Build/$RepoSource\r\nCMAKE_OPTIONS='-DBUILD_opencv_world:BOOL=OFF -DBUILD_PERF_TESTS:BOOL=OFF -DBUILD_TESTS:BOOL=ON -DBUILD_DOCS:BOOL=OFF -DWITH_CUDA:BOOL=OFF -DBUILD_EXAMPLES:BOOL=ON -DWITH_LAPACK:BOOL=ON -DCV_TRACE:BOOL=OFF'\r\ncmake -G\"$CMAKE_CONFIG_GENERATOR\"   \\\r\n-DTesseract_INCLUDE_DIR:PATH=\"${myRepo}\"/Install/tesseract/include -DTesseract_LIBRARY=\"${myRepo}\"/Install/tesseract/lib/tesseract400.lib -DLept_LIBRARY=\"${myRepo}\"/Install/leptonica/lib/leptonica-1.74.4.lib \\\r\n-DEIGEN_DIR:PATH=\"$myRepo\"/eigen -DEIGEN_INCLUDE_DIR=\"$myRepo\"/eigen -DEIGEN_INCLUDE_PATH=\"$myRepo\"/eigen \\\r\n-DCeres_DIR=\"$myRepo\"/install/ceres-solver/cmake -Dglog_DIR:PATH=\"$myRepo\"/install/glog/lib/cmake/glog -Dgflags_DIR:PATH=\"$myRepo\"/install/gflags/lib/cmake/gflags \\\r\n-DLAPACK_IMPL=MKL -DMKL_ROOT_DIR:PATH=\"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl\" \\\r\n-DMKL_INCLUDE_DIRS:PATH=\"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/include\" \\\r\n-DBLAS_mkl_intel_lp64_LIBRARY:FILEPATH=\"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_intel_lp64.lib\" \\\r\n-DBLAS_mkl_sequential_LIBRARY:FILEPATH=\"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_rt.lib\" \\\r\n-DBLAS_mkl_intel_c_LIBRARY:FILEPATH=\"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64_win/mkl_core.lib\" \\\r\n-DPYTHON_EXECUTABLE=\"C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe\" \\\r\n-DPYTHON3_LIBRARY=\"C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/libs/python36.lib\" \\\r\n-DPYTHON3_LIBRARY_DEBUG=\"C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/libs/python36_d.lib\" \\\r\n-DPYTHON3_NUMPY_INCLUDE_DIRS=\"C:/Users/Laurent/AppData/Roaming/Python/Python36/site-packages/numpy/core/include\" \\\r\n-DPYTHON3_PACKAGES_PATH=\"C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/Lib/site-packages\" \\\r\n$CMAKE_OPTIONS -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \\\r\n-DVTK_DIR:PATH=\"$myRepo\"/install/vtk/lib/cmake/vtk-8.1 -DINSTALL_CREATE_DISTRIB=ON -DCMAKE_INSTALL_PREFIX=../../install/\"$RepoSource\"  ../../\"$RepoSource\"\r\n\r\ncd ..\r\n\r\necho \"************************* $Source_DIR -->devenv debug\"\r\ncmake --build $RepoSource  --config release \r\necho \"************************* $Source_DIR -->devenv release\"\r\ncmake --build $RepoSource  --target install --config release \r\necho \"************************* $Source_DIR -->devenv debug\"\r\ncmake --build $RepoSource  --config debug \r\necho \"************************* $Source_DIR -->devenv release\"\r\ncmake --build $RepoSource  --target install --config debug \r\ncd ..\r\n\r\n```\r\n"}}
{"actor":{"display_login":"alalek"}}