{"action":"created","issue":{"url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/713","labels_url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/713/comments","events_url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/713/events","html_url":"https://github.com/Unvanquished/Unvanquished/issues/713","id":72126895,"number":713,"title":"Can't cross-compile from Linux to Windows using MinGW","user":{"login":"maek","id":121525,"avatar_url":"https://avatars.githubusercontent.com/u/121525?v=3","gravatar_id":"","url":"https://api.github.com/users/maek","html_url":"https://github.com/maek","followers_url":"https://api.github.com/users/maek/followers","following_url":"https://api.github.com/users/maek/following{/other_user}","gists_url":"https://api.github.com/users/maek/gists{/gist_id}","starred_url":"https://api.github.com/users/maek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maek/subscriptions","organizations_url":"https://api.github.com/users/maek/orgs","repos_url":"https://api.github.com/users/maek/repos","events_url":"https://api.github.com/users/maek/events{/privacy}","received_events_url":"https://api.github.com/users/maek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Unvanquished/Unvanquished/labels/A-Build","name":"A-Build","color":"f7c6c7"},{"url":"https://api.github.com/repos/Unvanquished/Unvanquished/labels/T-Verbosity","name":"T-Verbosity","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-30T10:51:54Z","updated_at":"2015-04-30T11:48:50Z","closed_at":"2015-04-30T11:43:47Z","body":"Following the instructions in the Readme I obtain the following error:\r\n\r\n```\r\n[  0%] Generating CMakeFiles/cgame-nacl.dir/unzip.o\r\n/tmp/Unvanquished/external_deps/mingw32-3/pnacl/bin/pnacl-clang.bat: line 1: @echo: command not found\r\n/tmp/Unvanquished/external_deps/mingw32-3/pnacl/bin/pnacl-clang.bat: line 2: syntax error near unexpected token `('\r\n/tmp/Unvanquished/external_deps/mingw32-3/pnacl/bin/pnacl-clang.bat: line 2: `:: Copyright (c) 2012 The Native Client Authors. All r'ghts reserved.\r\nCMakeFiles/cgame-nacl.dir/build.make:697: recipe for target 'CMakeFiles/cgame-nacl.dir/unzip.o' failed\r\nmake[2]: *** [CMakeFiles/cgame-nacl.dir/unzip.o] Error 2\r\nCMakeFiles/Makefile2:91: recipe for target 'CMakeFiles/cgame-nacl.dir/all' failed\r\nmake[1]: *** [CMakeFiles/cgame-nacl.dir/all] Error 2\r\nMakefile:75: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\nI suppose the build process shoudn't try to run a .bat in Linux, so I changed the CMakeLists.txt at line 154:\r\n\r\n```\r\n-   set( PNACL_BIN_EXT \".bat\" )\r\n+   set( PNACL_BIN_EXT \"\" )\r\n\r\n```\r\n\r\nNow the error is:\r\n\r\n```\r\n[  0%] Generating CMakeFiles/cgame-nacl.dir/unzip.o\r\npnacl-clang: Could not find PNaCl host directory for clang\r\nCMakeFiles/cgame-nacl.dir/build.make:697: recipe for target 'CMakeFiles/cgame-nacl.dir/unzip.o' failed\r\nmake[2]: *** [CMakeFiles/cgame-nacl.dir/unzip.o] Error 255\r\nCMakeFiles/Makefile2:91: recipe for target 'CMakeFiles/cgame-nacl.dir/all' failed\r\nmake[1]: *** [CMakeFiles/cgame-nacl.dir/all] Error 2\r\nMakefile:75: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\nAny suggestion?"},"comment":{"url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/comments/97747284","html_url":"https://github.com/Unvanquished/Unvanquished/issues/713#issuecomment-97747284","issue_url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/713","id":97747284,"user":{"login":"maek","id":121525,"avatar_url":"https://avatars.githubusercontent.com/u/121525?v=3","gravatar_id":"","url":"https://api.github.com/users/maek","html_url":"https://github.com/maek","followers_url":"https://api.github.com/users/maek/followers","following_url":"https://api.github.com/users/maek/following{/other_user}","gists_url":"https://api.github.com/users/maek/gists{/gist_id}","starred_url":"https://api.github.com/users/maek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maek/subscriptions","organizations_url":"https://api.github.com/users/maek/orgs","repos_url":"https://api.github.com/users/maek/repos","events_url":"https://api.github.com/users/maek/events{/privacy}","received_events_url":"https://api.github.com/users/maek/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T11:48:50Z","updated_at":"2015-04-30T11:48:50Z","body":"> The gamelogic is platform-independent\r\n\r\n@Viech Do you mean I can use the one compiled natively on Linux also for Windows?"}}