{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/1782","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/1782/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/1782/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/1782/events","html_url":"https://github.com/BVLC/caffe/issues/1782","id":55161373,"number":1782,"title":"Add cmake flags to avoid library path conflicts","user":{"login":"futurely","id":9004594,"avatar_url":"https://avatars.githubusercontent.com/u/9004594?v=3","gravatar_id":"","url":"https://api.github.com/users/futurely","html_url":"https://github.com/futurely","followers_url":"https://api.github.com/users/futurely/followers","following_url":"https://api.github.com/users/futurely/following{/other_user}","gists_url":"https://api.github.com/users/futurely/gists{/gist_id}","starred_url":"https://api.github.com/users/futurely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futurely/subscriptions","organizations_url":"https://api.github.com/users/futurely/orgs","repos_url":"https://api.github.com/users/futurely/repos","events_url":"https://api.github.com/users/futurely/events{/privacy}","received_events_url":"https://api.github.com/users/futurely/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-22T14:47:35Z","updated_at":"2015-06-26T02:07:07Z","closed_at":"2015-01-23T02:34:39Z","body":"I encountered the error \"flag 'tab_complete_word' was defined more than once (in files '/path/a/gflags_completions.cc' and '/path/b/gflags_completions.cc' \" . It can be fixed by adding the following flags in find_path and find_library of FindGFlags.cmake or maybe all the cmake scripts. The desired path can be specified with the command line flag `-DCMAKE_PREFIX_PATH`.\r\n```\r\n\t\t\tNO_DEFAULT_PATH\r\n\t\t\tNO_CMAKE_ENVIRONMENT_PATH\r\n\t\t\tNO_CMAKE_PATH\r\n\t\t\tNO_SYSTEM_ENVIRONMENT_PATH\r\n\t\t\tNO_CMAKE_SYSTEM_PATH\r\n```\r\nThe available flags are explained [here](http://www.cmake.org/cmake/help/v3.0/command/find_library.html) and an example is [here](https://trac.e-technik.uni-rostock.de/svn/ws4d-gsoap/tags/release-0.7/cmake-modules/FindGSOAP.cmake)"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/115462971","html_url":"https://github.com/BVLC/caffe/issues/1782#issuecomment-115462971","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/1782","id":115462971,"user":{"login":"futurely","id":9004594,"avatar_url":"https://avatars.githubusercontent.com/u/9004594?v=3","gravatar_id":"","url":"https://api.github.com/users/futurely","html_url":"https://github.com/futurely","followers_url":"https://api.github.com/users/futurely/followers","following_url":"https://api.github.com/users/futurely/following{/other_user}","gists_url":"https://api.github.com/users/futurely/gists{/gist_id}","starred_url":"https://api.github.com/users/futurely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futurely/subscriptions","organizations_url":"https://api.github.com/users/futurely/orgs","repos_url":"https://api.github.com/users/futurely/repos","events_url":"https://api.github.com/users/futurely/events{/privacy}","received_events_url":"https://api.github.com/users/futurely/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T02:07:07Z","updated_at":"2015-06-26T02:07:07Z","body":"@cuongduc There're more than one gflags installations on your system. Find their paths with `sudo find / -name gflags_completions.cc` and remove all but one of the installations."}}