Android Build Failed

Getting this error:

C:\raylib\templates\simple_game>mingw32-make PLATFORM=PLATFORM_ANDROID
mingw32-make -f Makefile.Android
mingw32-make[1]: Entering directory 'C:/raylib/templates/simple_game'
if not exist android.simple_game mkdir android.simple_game
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
Makefile.Android:142: recipe for target 'create_temp_project_dirs' failed
mingw32-make[1]: *** [create_temp_project_dirs] Error 258
mingw32-make[1]: Leaving directory 'C:/raylib/templates/simple_game'
Makefile:293: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

what I don't get is how a '/usr/bin/sh' gets in there while it is being setup and published as cross-platform.


  • Issue is probably related to "if not exist" not supported on Linux, just on Windows... Android Makefile is expected to be called from Windows host system...
  • Hi Ray, so the android build is broken on windows? you can see I'm trying to build it on windows..
  • edited August 29
    ouch, sorry. Windows build should work ok. Are you launching Makefile from CMD? Or are you using other shell system?
  • yes it's mingw32-make from cmd.
Sign In or Register to comment.