{"action":"created","issue":{"url":"https://api.github.com/repos/OSVR/OSVR-Core/issues/414","repository_url":"https://api.github.com/repos/OSVR/OSVR-Core","labels_url":"https://api.github.com/repos/OSVR/OSVR-Core/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/OSVR/OSVR-Core/issues/414/comments","events_url":"https://api.github.com/repos/OSVR/OSVR-Core/issues/414/events","html_url":"https://github.com/OSVR/OSVR-Core/issues/414","id":145526540,"number":414,"title":"Build errors with any recent version of JsonCpp or OpenCV on Linux","user":{"login":"valentindavid","id":432830,"avatar_url":"https://avatars.githubusercontent.com/u/432830?v=3","gravatar_id":"","url":"https://api.github.com/users/valentindavid","html_url":"https://github.com/valentindavid","followers_url":"https://api.github.com/users/valentindavid/followers","following_url":"https://api.github.com/users/valentindavid/following{/other_user}","gists_url":"https://api.github.com/users/valentindavid/gists{/gist_id}","starred_url":"https://api.github.com/users/valentindavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentindavid/subscriptions","organizations_url":"https://api.github.com/users/valentindavid/orgs","repos_url":"https://api.github.com/users/valentindavid/repos","events_url":"https://api.github.com/users/valentindavid/events{/privacy}","received_events_url":"https://api.github.com/users/valentindavid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-03T18:32:39Z","updated_at":"2016-04-28T05:33:07Z","closed_at":null,"body":"Here is an example of error message:\r\n\r\n```\r\nmake[2]: *** No rule to make target 'jsoncpp_lib-NOTFOUND', needed by 'bin/osvr_json_to_c'.  Stop.\r\nCMakeFiles/Makefile2:1451: recipe for target 'devtools/CMakeFiles/osvr_json_to_c.dir/all' failed\r\n```\r\n\r\nIt failed for me on both Debian Sid and Gentoo.\r\n\r\nBoth OpenCV and JsonCpp provide cmake scripts that use build types. Those cmake files are generated and may depends on the version of cmake used when installing them (>= 3.3 perhaps).\r\n\r\nIt seems MapImportedReleaseVariants causes issues since it will disable the build types used by the cmake scripts. Moving find_package of JsonCpp and OpenCV before include of MapImportedReleaseVariants solves the issue."},"comment":{"url":"https://api.github.com/repos/OSVR/OSVR-Core/issues/comments/215314296","html_url":"https://github.com/OSVR/OSVR-Core/issues/414#issuecomment-215314296","issue_url":"https://api.github.com/repos/OSVR/OSVR-Core/issues/414","id":215314296,"user":{"login":"Conzar","id":2646975,"avatar_url":"https://avatars.githubusercontent.com/u/2646975?v=3","gravatar_id":"","url":"https://api.github.com/users/Conzar","html_url":"https://github.com/Conzar","followers_url":"https://api.github.com/users/Conzar/followers","following_url":"https://api.github.com/users/Conzar/following{/other_user}","gists_url":"https://api.github.com/users/Conzar/gists{/gist_id}","starred_url":"https://api.github.com/users/Conzar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Conzar/subscriptions","organizations_url":"https://api.github.com/users/Conzar/orgs","repos_url":"https://api.github.com/users/Conzar/repos","events_url":"https://api.github.com/users/Conzar/events{/privacy}","received_events_url":"https://api.github.com/users/Conzar/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T05:33:07Z","updated_at":"2016-04-28T05:33:07Z","body":"I have just written a [script](https://bitbucket.org/monkygames/osvr-core-ubuntu-build-script) that compiles and installs OSVR-Core on Ubuntu 14.04.  It heavily relies on PPAs in order to get the latest CMAKE, gcc and g++.  Its only using opencv from the ubuntu repos so perhaps this doesn't work on later versions of Ubuntu.  I will create a vagrant environment (in the repo) and test this out on multiple Ubuntu's which will certainly have more update to date opencv versions.  "}}