{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/257","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/257/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/257/events","html_url":"https://github.com/mshabunin/test2/issues/257","id":96591308,"number":257,"title":"2.4.3 with clang++, CUDA and C++11 under OSX","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-22T15:11:57Z","updated_at":"2015-07-22T15:11:57Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/2731\r\n```\n|| Marco Bertini on 2013-01-25 10:10\n|| Priority: Normal\n|| Affected: 2.4.3\n|| Category: build/install\n|| Tracker: Bug\n|| Difficulty: None\n|| PR: \n|| Platform: None / None\n```\n\n2.4.3 with clang++, CUDA and C++11 under OSX\n-----------\n```\nTrying to compile OpenCV 2.4.3 with clang++ using C++11 flags does not work (at least using OSX).\r\nIf specifying \"-std=c++11 -stdlib=libc++\" for the CMAKE_CXX_FLAGS and \"-stdlib=libc++\" for CMAKE_EXE_LINKER_FLAGS fails because the nvcc (using clang++) does not support -depends\r\nSpecifying that CUDA_HOST_COMPILER is /usr/bin/gcc instead of /usr/bin/cc breaks CUDA compilation because it does not support -std=c++11 and -stdlib=libc++. Probably not passing the flags of the CXX compiler to CUDA could solve the issue.\r\nCompiling without C++11 and trying to link with a C++11 program results in linking error (X86_64 symbols are not found)\n```\n\nHistory\n-------\n##### Andrey Kamaev on 2013-01-28 15:07\n```\n-   Category set to build/install\n```"}}