{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vcpkg/issues/1609","repository_url":"https://api.github.com/repos/Microsoft/vcpkg","labels_url":"https://api.github.com/repos/Microsoft/vcpkg/issues/1609/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vcpkg/issues/1609/comments","events_url":"https://api.github.com/repos/Microsoft/vcpkg/issues/1609/events","html_url":"https://github.com/Microsoft/vcpkg/issues/1609","id":248609743,"number":1609,"title":"Need help on building OpenCV with CUDA","user":{"login":"jasjuang","id":11759200,"avatar_url":"https://avatars3.githubusercontent.com/u/11759200?v=4","gravatar_id":"","url":"https://api.github.com/users/jasjuang","html_url":"https://github.com/jasjuang","followers_url":"https://api.github.com/users/jasjuang/followers","following_url":"https://api.github.com/users/jasjuang/following{/other_user}","gists_url":"https://api.github.com/users/jasjuang/gists{/gist_id}","starred_url":"https://api.github.com/users/jasjuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasjuang/subscriptions","organizations_url":"https://api.github.com/users/jasjuang/orgs","repos_url":"https://api.github.com/users/jasjuang/repos","events_url":"https://api.github.com/users/jasjuang/events{/privacy}","received_events_url":"https://api.github.com/users/jasjuang/received_events","type":"User","site_admin":false},"labels":[{"id":443248436,"url":"https://api.github.com/repos/Microsoft/vcpkg/labels/port%20feature","name":"port feature","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-08-08T06:06:57Z","updated_at":"2018-03-26T22:40:14Z","closed_at":"2018-03-26T22:40:14Z","author_association":"CONTRIBUTOR","body":"I am on vs2015, x64-windows. I am attempting to build OpenCV with CUDA by simply changing the `-DWITH_CUDA=OFF` to `-DWITH_CUDA=ON`. In the end I get a compilation error, \r\n\r\n``````\r\n\"C:\\dev\\vcpkg\\buildtrees\\opencv\\x64-windows-rel\\install.vcxproj\" (default target) (1) ->\r\n       \"C:\\dev\\vcpkg\\buildtrees\\opencv\\x64-windows-rel\\ALL_BUILD.vcxproj\" (default target) (3) ->\r\n       \"C:\\dev\\vcpkg\\buildtrees\\opencv\\x64-windows-rel\\modules\\cudaimgproc\\opencv_cudaimgproc.vcxproj\" (default target) (22) ->\r\n       (CustomBuild target) -> \r\n         C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\include\\thrust/detail/integer_traits.h(68): error C2137: empty character constant [C:\\dev\\vcpkg\\buildtrees\\opencv\\x64-windows-rel\\modules\\cudaimgproc\\opencv_cudaimgproc.vcxproj]\r\n\r\n\r\n       \"C:\\dev\\vcpkg\\buildtrees\\opencv\\x64-windows-rel\\install.vcxproj\" (default target) (1) ->\r\n       \"C:\\dev\\vcpkg\\buildtrees\\opencv\\x64-windows-rel\\ALL_BUILD.vcxproj\" (default target) (3) ->\r\n       \"C:\\dev\\vcpkg\\buildtrees\\opencv\\x64-windows-rel\\modules\\cudafeatures2d\\opencv_cudafeatures2d.vcxproj\" (default target) (18) ->\r\n         C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\include\\thrust/detail/integer_traits.h(68): error C2137: empty character constant [C:\\dev\\vcpkg\\buildtrees\\opencv\\x64-windows-rel\\modules\\cudafeatures2d\\opencv_cudafeatures2d.vcxproj]\r\n\r\n    5767 Warning(s)\r\n    2 Error(s)\r\n``````\r\n\r\nBut the problem is I am unable to reproduce this when building from source with the same cmake options. The module opencv_cudafeatures2d compiles successfully. The whole thing compiles successfully. I browsed through the fix patches for opencv in vcpkg, and nothing looks like it could cause a problem. Could anyone give me some insights?"}}
{"actor":{"display_login":"jasjuang"}}