{"action":"created","issue":{"url":"https://api.github.com/repos/mxe/mxe/issues/682","labels_url":"https://api.github.com/repos/mxe/mxe/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/mxe/mxe/issues/682/comments","events_url":"https://api.github.com/repos/mxe/mxe/issues/682/events","html_url":"https://github.com/mxe/mxe/issues/682","id":75162552,"number":682,"title":"OpenCV CMake modules","user":{"login":"asarnow","id":4052606,"avatar_url":"https://avatars.githubusercontent.com/u/4052606?v=3","gravatar_id":"","url":"https://api.github.com/users/asarnow","html_url":"https://github.com/asarnow","followers_url":"https://api.github.com/users/asarnow/followers","following_url":"https://api.github.com/users/asarnow/following{/other_user}","gists_url":"https://api.github.com/users/asarnow/gists{/gist_id}","starred_url":"https://api.github.com/users/asarnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asarnow/subscriptions","organizations_url":"https://api.github.com/users/asarnow/orgs","repos_url":"https://api.github.com/users/asarnow/repos","events_url":"https://api.github.com/users/asarnow/events{/privacy}","received_events_url":"https://api.github.com/users/asarnow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T10:05:56Z","updated_at":"2015-09-25T18:05:13Z","closed_at":null,"body":"Right now there seems to be a minor bug with the CMake modules for OpenCV.  My apologies if I have missed something obvious.\r\n\r\n* `mxe/usr/<target>/OpenCVConfig.cmake` and `mxe/usr/<target>/OpenCVConfig-version.cmake` seem to be wrong versions, which don't work.\r\n* `mxe/usr/<target>/lib/OpenCV*.cmake` files work, but:\r\n  * CMake module search path includes `<target>`, but not `<target>/lib`\r\n  * OpenCV import prefix is set to parent directory of the `.cmake` file which is used.\r\n  * OpenCV libraries are found in `<target>/lib`\r\n\r\nMy temporary work around is to copy the `.cmake` files from `<target>/lib` to `<target>`, and then manually modify the `CMakeCache.txt` so `OpenCV_DIR` and `OpenCV_CONFIG_PATH` point to `<target>/lib`.\r\n\r\nI think the old module files should be removed, and the find package module should search in `<target>/lib` for `OpenCVConfig.cmake`, `OpenCVModules.cmake` and `OpenCVModules-release.cmake`, or the new files should be moved up one directory and \"/lib\" added after every `_IMPORT_PREFIX` reference."},"comment":{"url":"https://api.github.com/repos/mxe/mxe/issues/comments/143309473","html_url":"https://github.com/mxe/mxe/issues/682#issuecomment-143309473","issue_url":"https://api.github.com/repos/mxe/mxe/issues/682","id":143309473,"user":{"login":"tonytheodore","id":537773,"avatar_url":"https://avatars.githubusercontent.com/u/537773?v=3","gravatar_id":"","url":"https://api.github.com/users/tonytheodore","html_url":"https://github.com/tonytheodore","followers_url":"https://api.github.com/users/tonytheodore/followers","following_url":"https://api.github.com/users/tonytheodore/following{/other_user}","gists_url":"https://api.github.com/users/tonytheodore/gists{/gist_id}","starred_url":"https://api.github.com/users/tonytheodore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonytheodore/subscriptions","organizations_url":"https://api.github.com/users/tonytheodore/orgs","repos_url":"https://api.github.com/users/tonytheodore/repos","events_url":"https://api.github.com/users/tonytheodore/events{/privacy}","received_events_url":"https://api.github.com/users/tonytheodore/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T18:05:13Z","updated_at":"2015-09-25T18:05:13Z","body":"Looks related to #598. There's a major version update to opencv waiting, lets see what happens after that."}}