{"action":"created","issue":{"url":"https://api.github.com/repos/libjpeg-turbo/libjpeg-turbo/issues/58","repository_url":"https://api.github.com/repos/libjpeg-turbo/libjpeg-turbo","labels_url":"https://api.github.com/repos/libjpeg-turbo/libjpeg-turbo/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/libjpeg-turbo/libjpeg-turbo/issues/58/comments","events_url":"https://api.github.com/repos/libjpeg-turbo/libjpeg-turbo/issues/58/events","html_url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/58","id":135158283,"number":58,"title":"libjpeg-turbo cross-compile to Android fails","user":{"login":"mattgruenke","id":12486514,"avatar_url":"https://avatars.githubusercontent.com/u/12486514?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgruenke","html_url":"https://github.com/mattgruenke","followers_url":"https://api.github.com/users/mattgruenke/followers","following_url":"https://api.github.com/users/mattgruenke/following{/other_user}","gists_url":"https://api.github.com/users/mattgruenke/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgruenke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgruenke/subscriptions","organizations_url":"https://api.github.com/users/mattgruenke/orgs","repos_url":"https://api.github.com/users/mattgruenke/repos","events_url":"https://api.github.com/users/mattgruenke/events{/privacy}","received_events_url":"https://api.github.com/users/mattgruenke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libjpeg-turbo/libjpeg-turbo/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-21T04:28:35Z","updated_at":"2016-02-22T01:05:56Z","closed_at":"2016-02-21T18:12:25Z","body":"I have encountered two issues that I think can't be sidestepped using any of the current CMake options.\r\n\r\n\r\nThe first is that -DUSE_SETMODE is hard-coded, for some executables that are always built.  Many platforms do not have setmode(), and I've even found that some platforms have a setmode() with an incompatible prototype.\r\n\r\nThe second issue is that the installation stage assumes executable filenames have a .exe extension.\r\n\r\nAttached is a patch which resolves these problems.  I have not tested on other platforms.  But, the nature of the patch is such that you'll know if it worked simply by whether the build succeeds.\r\n\r\n[libjpeg-turbo-1.4.2.patch.zip](https://github.com/libjpeg-turbo/libjpeg-turbo/files/139457/libjpeg-turbo-1.4.2.patch.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/libjpeg-turbo/libjpeg-turbo/issues/comments/186957507","html_url":"https://github.com/libjpeg-turbo/libjpeg-turbo/issues/58#issuecomment-186957507","issue_url":"https://api.github.com/repos/libjpeg-turbo/libjpeg-turbo/issues/58","id":186957507,"user":{"login":"dcommander","id":651941,"avatar_url":"https://avatars.githubusercontent.com/u/651941?v=3","gravatar_id":"","url":"https://api.github.com/users/dcommander","html_url":"https://github.com/dcommander","followers_url":"https://api.github.com/users/dcommander/followers","following_url":"https://api.github.com/users/dcommander/following{/other_user}","gists_url":"https://api.github.com/users/dcommander/gists{/gist_id}","starred_url":"https://api.github.com/users/dcommander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcommander/subscriptions","organizations_url":"https://api.github.com/users/dcommander/orgs","repos_url":"https://api.github.com/users/dcommander/repos","events_url":"https://api.github.com/users/dcommander/events{/privacy}","received_events_url":"https://api.github.com/users/dcommander/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T01:05:56Z","updated_at":"2016-02-22T01:05:56Z","body":"Please read the discussions linked to from #56.  I explain in those threads why doing things piecemeal isn't a good option.  Either CMake is fully supported on Un\\*x (and autotools is removed), or it isn't supported on Un\\*x at all.  I've heard all of the arguments, and my decision is to support only one build system per platform, QED.\r\n"}}