Compile Android Build

thanks, i failed again tho, something is not right on my work-flow with this tutorial.

the video is Ok, but it does need editing so the flow is in chronological order (you skip a step & later on you have to go back & "patch" your error, i had to wach the thing 2 times to actually make sure & sense of what happened).

Also, another video, but with a commercial game should be added for this version of things
 
In the first post i have documented the process read through that and if anything is still confusing let me know.
 
Wanted to add some info that I stumbled through trying to compile the Android version this week:

  1. You can't use the current Java JDK -- get Java JDK 8u202 (else it will fail with an error about immutable environment variables or some such). This might be documented somewhere, but I missed it if so.
  2. You can't use the ndk-bundle folder that sdk-manager creates, you have to manually download r20b and put it there (else you get an error that the platforms folders are missing)
Once those things are set, the instructions are still accurate otherwise
 
I almost got it , i get this error:

* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.

* Get more help at Gradle | Search for Help with Gradle

manually download r20b
 
got over that hurdle , but now i am stuck with this:

Code:
-------------------------------------------------------
           SVN - Not Found, Installing SVN!
-------------------------------------------------------

7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18


Error:
cannot find archive

-------------------------------------------------------
           SVN - Installation Has Completed!
-------------------------------------------------------
ECHO está desactivado.

BUILD SUCCESSFUL in 2s
4 actionable tasks: 3 executed, 1 up-to-date

> Task :app:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\openbor-master\engine\android\app\src\main\java\org\libsdl\app\SDL.java
 uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :app:generateJsonModelRelease
process_begin: CreateProcess(NULL, "", ...) failed.
process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolchain
s/llvm/prebuilt/windows-x86_64/bin/clang++.exe -print-resource-dir, ...) failed.


> Task :app:externalNativeBuildRelease FAILED
Build openbor armeabi-v7a
process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolchain
s/llvm/prebuilt/windows-x86_64/bin/clang++.exe -print-resource-dir, ...) failed.

[armeabi-v7a] "Compile thumb  ": "openbor <= control.c"
process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolchain
s/llvm/prebuilt/windows-x86_64/bin/clang.exe -MMD -MP -MF C:/openbor-master/engi
ne/android/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/o
penbor/__/__/__/__/sdl/control.o.d -target armv7-none-linux-androideabi16 -fdata
-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canon
ical-prefixes --sysroot C:/android/sdk/ndk-bundle/build//../toolchains/llvm/preb
uilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-co
mmand-line-argument -fno-addrsig -fpic -march=armv7-a -mthumb -Oz -DNDEBUG -IC:/
openbor-master/engine/android/app/jni/openbor/src/ -IC:/openbor-master/engine/an
droid/app/jni/openbor/include/ -IC:/openbor-master/engine/android/app/jni/openbo
r/include/png -IC:/openbor-master/engine/android/app/jni/openbor/include/sdl -IC
:/openbor-master/engine/android/app/jni/openbor/../../../.. -IC:/openbor-master/
engine/android/app/jni/openbor/../../../../sdl -IC:/openbor-master/engine/androi
d/app/jni/openbor/../../../../resources -IC:/openbor-master/engine/android/app/j
ni/openbor/../../../../source -IC:/openbor-master/engine/android/app/jni/openbor
/../../../../source/adpcmlib -IC:/openbor-master/engine/android/app/jni/openbor/
../../../../source/gamelib -IC:/openbor-master/engine/android/app/jni/openbor/..
/../../../source/gfxlib -IC:/openbor-master/engine/android/app/jni/openbor/../..
/../../source/pnglib -IC:/openbor-master/engine/android/app/jni/openbor/../../..
/../source/preprocessorlib -IC:/openbor-master/engine/android/app/jni/openbor/..
/../../../source/ramlib -IC:/openbor-master/engine/android/app/jni/openbor/../..
/../../source/randlib -IC:/openbor-master/engine/android/app/jni/openbor/../../.
./../source/scriptlib -IC:/openbor-master/engine/android/app/jni/openbor/../../.
./../source/openborscript -IC:/openbor-master/engine/android/app/jni/openbor/../
../../../source/tracelib2 -IC:/openbor-master/engine/android/app/jni/openbor/../
../../../source/webmlib -IC:/openbor-master/engine/android/app/jni/openbor/../..
/../../source/webmlib/halloc -IC:/openbor-master/engine/android/app/jni/openbor/
../../../../source/webmlib/nestegg -IC:/android/sdk/ndk-bundle/build//../sources
/cxx-stl/system/include -IC:/android/sdk/ndk-bundle/build//../sources/android/cp
ufeatures -IC:/openbor-master/engine/android/app/jni/openbor -DANDROID -g -O2 -W
all -Werror -Wno-unused-result -fsigned-char -fno-ident -freorder-blocks -DLINUX
 -DSDL=1 -DANDROID=1 -DTREMOR=1 -DWEBM=1 -Wa,--noexecstack -Wformat -Werror=form
at-security -c C:/openbor-master/engine/android/app/jni/openbor/../../../../sdl/
control.c -o C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/r
elease/obj/local/armeabi-v7a/objs/openbor/__/__/__/__/sdl/control.o, ...) failed
.
make (e=2): El sistema no puede encontrar el archivo especificado.
make: *** [C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/rel
ease/obj/local/armeabi-v7a/objs/openbor/__/__/__/__/sdl/control.o] Error 2

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildRelease'.
> Build command failed.
  Error while executing process C:\android\sdk\ndk-bundle\ndk-build.cmd with arg
uments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\openbor-master\engine\android\
app\jni\Android.mk NDK_APPLICATION_MK=C:\openbor-master\engine\android\app\jni\A
pplication.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATF
ORM=android-16 NDK_OUT=C:/openbor-master/engine/android/app/build/intermediates/
ndkBuild/release/obj NDK_LIBS_OUT=C:\openbor-master\engine\android\app\build\int
ermediates\ndkBuild\release\lib APP_PLATFORM=android-16 C:/openbor-master/engine
/android/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libopenb
or.so}
  process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolcha
ins/llvm/prebuilt/windows-x86_64/bin/clang++.exe -print-resource-dir, ...) faile
d.
  [armeabi-v7a] "Compile thumb  ": "openbor <= control.c"
  process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolcha
ins/llvm/prebuilt/windows-x86_64/bin/clang.exe -MMD -MP -MF C:/openbor-master/en
gine/android/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs
/openbor/__/__/__/__/sdl/control.o.d -target armv7-none-linux-androideabi16 -fda
ta-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-can
onical-prefixes --sysroot C:/android/sdk/ndk-bundle/build//../toolchains/llvm/pr
ebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-
command-line-argument -fno-addrsig -fpic -march=armv7-a -mthumb -Oz -DNDEBUG -IC
:/openbor-master/engine/android/app/jni/openbor/src/ -IC:/openbor-master/engine/
android/app/jni/openbor/include/ -IC:/openbor-master/engine/android/app/jni/open
bor/include/png -IC:/openbor-master/engine/android/app/jni/openbor/include/sdl -
IC:/openbor-master/engine/android/app/jni/openbor/../../../.. -IC:/openbor-maste
r/engine/android/app/jni/openbor/../../../../sdl -IC:/openbor-master/engine/andr
oid/app/jni/openbor/../../../../resources -IC:/openbor-master/engine/android/app
/jni/openbor/../../../../source -IC:/openbor-master/engine/android/app/jni/openb
or/../../../../source/adpcmlib -IC:/openbor-master/engine/android/app/jni/openbo
r/../../../../source/gamelib -IC:/openbor-master/engine/android/app/jni/openbor/
../../../../source/gfxlib -IC:/openbor-master/engine/android/app/jni/openbor/../
../../../source/pnglib -IC:/openbor-master/engine/android/app/jni/openbor/../../
../../source/preprocessorlib -IC:/openbor-master/engine/android/app/jni/openbor/
../../../../source/ramlib -IC:/openbor-master/engine/android/app/jni/openbor/../
../../../source/randlib -IC:/openbor-master/engine/android/app/jni/openbor/../..
/../../source/scriptlib -IC:/openbor-master/engine/android/app/jni/openbor/../..
/../../source/openborscript -IC:/openbor-master/engine/android/app/jni/openbor/.
./../../../source/tracelib2 -IC:/openbor-master/engine/android/app/jni/openbor/.
./../../../source/webmlib -IC:/openbor-master/engine/android/app/jni/openbor/../
../../../source/webmlib/halloc -IC:/openbor-master/engine/android/app/jni/openbo
r/../../../../source/webmlib/nestegg -IC:/android/sdk/ndk-bundle/build//../sourc
es/cxx-stl/system/include -IC:/android/sdk/ndk-bundle/build//../sources/android/
cpufeatures -IC:/openbor-master/engine/android/app/jni/openbor -DANDROID -g -O2
-Wall -Werror -Wno-unused-result -fsigned-char -fno-ident -freorder-blocks -DLIN
UX -DSDL=1 -DANDROID=1 -DTREMOR=1 -DWEBM=1 -Wa,--noexecstack -Wformat -Werror=fo
rmat-security -c C:/openbor-master/engine/android/app/jni/openbor/../../../../sd
l/control.c -o C:/openbor-master/engine/android/app/build/intermediates/ndkBuild
/release/obj/local/armeabi-v7a/objs/openbor/__/__/__/__/sdl/control.o, ...) fail
ed.
  make (e=2): El sistema no puede encontrar el archivo especificado.
  make: *** [C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/r
elease/obj/local/armeabi-v7a/objs/openbor/__/__/__/__/sdl/control.o] Error 2


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
17 actionable tasks: 16 executed, 1 up-to-date

C:\openbor-master\engine\android>
 
@oldyz ok try this download ndk version 20b from here then replace you folder in the NDK
toolchains/llvm/prebuilt/windows-x86_64 with the one from 20b then try again.
 
Last edited:
tried in windows 10 machine, same or similar error:
Code:
Missing version build, please add it manually and press ENTER:
6392
Missing version commit, please add it manually and press ENTER:
55
VERSION_BUILD is set to: 6392
VERSION_COMMIT is set to: 55
ECHO está desactivado.
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :app:externalNativeBuildCleanDebug
Clean cpufeatures armeabi-v7a,openbor armeabi-v7a
process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -print-resource-dir, ...) failed.
[armeabi-v7a] "Clean          ": "SDL2 [armeabi-v7a]"
[armeabi-v7a] "Clean          ": "cpufeatures [armeabi-v7a]"
[armeabi-v7a] "Clean          ": "hidapi [armeabi-v7a]"
[armeabi-v7a] "Clean          ": "ogg [armeabi-v7a]"
[armeabi-v7a] "Clean          ": "openbor [armeabi-v7a]"
[armeabi-v7a] "Clean          ": "png [armeabi-v7a]"
[armeabi-v7a] "Clean          ": "stdc++ [armeabi-v7a]"
[armeabi-v7a] "Clean          ": "vorbisidec [armeabi-v7a]"
[armeabi-v7a] "Clean          ": "vpx [armeabi-v7a]"

BUILD SUCCESSFUL in 14s
4 actionable tasks: 3 executed, 1 up-to-date

> Task :app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\openbor-master\engine\android\app\src\main\java\org\libsdl\app\SDL.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :app:externalNativeBuildDebug FAILED
Build openbor armeabi-v7a
process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -print-resource-dir, ...) failed.
[armeabi-v7a] "Compile thumb  ": "openbor <= control.c"
process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -MMD -MP -MF C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/openbor/__/__/__/__/sdl/control.o.d -target armv7-none-linux-androideabi16 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes --sysroot C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -fno-addrsig -fpic -march=armv7-a -mthumb -O0 -UNDEBUG -fno-limit-debug-info -IC:/openbor-master/engine/android/app/jni/openbor/src/ -IC:/openbor-master/engine/android/app/jni/openbor/include/ -IC:/openbor-master/engine/android/app/jni/openbor/include/png -IC:/openbor-master/engine/android/app/jni/openbor/include/sdl -IC:/openbor-master/engine/android/app/jni/openbor/../../../.. -IC:/openbor-master/engine/android/app/jni/openbor/../../../../sdl -IC:/openbor-master/engine/android/app/jni/openbor/../../../../resources -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/adpcmlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/gamelib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/gfxlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/pnglib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/preprocessorlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/ramlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/randlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/scriptlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/openborscript -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/tracelib2 -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/webmlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/webmlib/halloc -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/webmlib/nestegg -IC:/android/sdk/ndk-bundle/build//../sources/cxx-stl/system/include -IC:/android/sdk/ndk-bundle/build//../sources/android/cpufeatures -IC:/openbor-master/engine/android/app/jni/openbor -DANDROID -g -O2 -Wall -Werror -Wno-unused-result -fsigned-char -fno-ident -freorder-blocks -DLINUX -DSDL=1 -DANDROID=1 -DTREMOR=1 -DWEBM=1 -Wa,--noexecstack -Wformat -Werror=format-security -c C:/openbor-master/engine/android/app/jni/openbor/../../../../sdl/control.c -o C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/openbor/__/__/__/__/sdl/control.o, ...) failed.
make (e=2): El sistema no puede encontrar el archivo especificado.
make: *** [C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/openbor/__/__/__/__/sdl/control.o] Error 2

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process C:\android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\openbor-master\engine\android\app\jni\Android.mk NDK_APPLICATION_MK=C:\openbor-master\engine\android\app\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=C:\openbor-master\engine\android\app\build\intermediates\ndkBuild\debug\lib APP_PLATFORM=android-16 C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libopenbor.so}
  process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -print-resource-dir, ...) failed.
  [armeabi-v7a] "Compile thumb  ": "openbor <= control.c"
  process_begin: CreateProcess(NULL, C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -MMD -MP -MF C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/openbor/__/__/__/__/sdl/control.o.d -target armv7-none-linux-androideabi16 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes --sysroot C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -fno-addrsig -fpic -march=armv7-a -mthumb -O0 -UNDEBUG -fno-limit-debug-info -IC:/openbor-master/engine/android/app/jni/openbor/src/ -IC:/openbor-master/engine/android/app/jni/openbor/include/ -IC:/openbor-master/engine/android/app/jni/openbor/include/png -IC:/openbor-master/engine/android/app/jni/openbor/include/sdl -IC:/openbor-master/engine/android/app/jni/openbor/../../../.. -IC:/openbor-master/engine/android/app/jni/openbor/../../../../sdl -IC:/openbor-master/engine/android/app/jni/openbor/../../../../resources -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/adpcmlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/gamelib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/gfxlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/pnglib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/preprocessorlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/ramlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/randlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/scriptlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/openborscript -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/tracelib2 -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/webmlib -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/webmlib/halloc -IC:/openbor-master/engine/android/app/jni/openbor/../../../../source/webmlib/nestegg -IC:/android/sdk/ndk-bundle/build//../sources/cxx-stl/system/include -IC:/android/sdk/ndk-bundle/build//../sources/android/cpufeatures -IC:/openbor-master/engine/android/app/jni/openbor -DANDROID -g -O2 -Wall -Werror -Wno-unused-result -fsigned-char -fno-ident -freorder-blocks -DLINUX -DSDL=1 -DANDROID=1 -DTREMOR=1 -DWEBM=1 -Wa,--noexecstack -Wformat -Werror=format-security -c C:/openbor-master/engine/android/app/jni/openbor/../../../../sdl/control.c -o C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/openbor/__/__/__/__/sdl/control.o, ...) failed.
  make (e=2): El sistema no puede encontrar el archivo especificado.
  make: *** [C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/openbor/__/__/__/__/sdl/control.o] Error 2


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
17 actionable tasks: 15 executed, 2 up-to-date

C:\openbor-master\engine\android>

i will give you this detailed description of what i did:

The win 10 machine is 64 bit, but i used 32 bit components,
with 64 bit components i could not even get to the downloads on command window step...

worflow:
Code:
Oldyz workflow 32 bit components , windows 10 64 bit

Downloaded 32bit Java JDK 8u202

https://mirrors.huaweicloud.com/java/jdk/8u202-b08/

Downloaded the 32 bit Android SDK, "command line tools only" package for windows

sdk-tools-windows-433796


extracted the Android command line tools (windows x86) to folder "C:\android\sdk\".


setup the environment variables, used the search bar to search for "advanced system settings"
that window will have a button at the bottom for "Environment Variables" now select "New" under "user variable":

    "ANDROID_HOME" = "C:\android\sdk"   ################# DO NOT USE QUOTES  #########

java home path:
https://www.youtube.com/watch?v=Bz5zz1HoT08

#####  oldyz note, value equals path  ######

Now setup System Variables -> Path add these lines:

    "C:\Program Files (x86)\Java\jdk1.8.0_202\bin"
    "C:\android\sdk\tools\bin"
    "C:\android\sdk\build-tools\28.0.3"
    "C:\android\sdk\ndk-bundle"


Downloaded openbor master as zip on github

Ran the file "sdk-setup.bat" (found in root of openbor android folder)
it downloaded everything needed...
 
@oldyz
Ok I tested on windows 8.1 x64 and got it to work but the process is a bit different. Install Java JDK for windows x64 I downloaded it from filehippo version 8u281 . Delete you folder "C:\android" now remake the folders "C:\android\sdk" and extract the latest cmdline-tools to this folder so you should have a directory structure like this "C:\android\sdk\cmdline-tools\bin\sdkmanager.bat" now remove these environment variables from PATH:

remove these:
"C:\android\sdk\tools\bin"
"C:\android\sdk\build-tools\28.0.3"
"C:\android\sdk\ndk-bundle"

Do not remove the java path Should have been made when you installed Java. restart your system and from cmd confirm that "Java -version" works. now from the current master build replace the file script.bat with this. Make sure you have the user variable "ANDROID_HOME" = "C:\android\sdk". Add this folder "C:\android\sdk\ndk-bundle\platforms".

script.bat
Code:
@echo off
IF EXIST C:\android\sdk\cmdline-tools\bin\ (
C:\android\sdk\cmdline-tools\bin\sdkmanager.bat --sdk_root=C:\android\sdk "build-tools;28.0.3" "ndk-bundle" "platform-tools" "platforms;android-28" "tools"
) ELSE IF EXIST C:\android\sdk\tools\bin\ (
C:\android\sdk\tools\bin\sdkmanager.bat "build-tools;28.0.3" "ndk-bundle" "platform-tools" "platforms;android-28" "tools"
) ELSE (
echo can't find "Android command line tools only" folder! && echo. example:"C:\android\sdk\cmdline-tools\version\bin\"
)

@rem sdkmanager.bat --list

run sdk-setup.bat then when completed run build.bat I will update the process on my next commit.
 
Last edited:
@msmalik681

so far so good, managed to build an openbor apk using an un-touched master branch extract.
here is the work-flow for windows 7 64 bit:

Code:
Windows 7 64 bit attempt, master branch files, no 6391 merge, no custom apk

Downloaded  Java JDK for windows x64 version 8u281

jdk-8u281-windows-x64.exe

downloaded SDK tools package

commandlinetools-win-8092744_latest.zip

extracted them to C:\android\sdk

result:  directory structure like this C:\android\sdk\cmdline-tools\bin\sdkmanager.bat

Added User variables

ANDROID_HOME
value
C:\android\sdk

JAVA_HOME
value
C:\Program Files\Java\jre1.8.0_281

Added system variables

"C:\Program Files\Java\jre1.8.0_281\bin"
value
C:\Program Files\Java\jre1.8.0_281\bin

modified system variable

Path
added this to value (after the ;):
C:\Program Files\Java\jre1.8.0_281\bin\;

inside C:\openbor-master\engine\android

renamed scrip.bat to scrip.bat.OLD

replaced script.bat in
C:\openbor-master\engine\android

###new script.bat##

@echo off
IF EXIST C:\android\sdk\cmdline-tools\bin\ (
C:\android\sdk\cmdline-tools\bin\sdkmanager.bat --sdk_root=C:\android\sdk "build-tools;28.0.3" "ndk-bundle" "platform-tools" "platforms;android-28" "tools"
) ELSE IF EXIST C:\android\sdk\tools\bin\ (
C:\android\sdk\tools\bin\sdkmanager.bat "build-tools;28.0.3" "ndk-bundle" "platform-tools" "platforms;android-28" "tools"
) ELSE (
echo can't find "Android command line tools only" folder! && echo. example:"C:\android\sdk\cmdline-tools\version\bin\"
)

@rem sdkmanager.bat --list

################################

executed sdk-setup.bat

things downloaded to 100%

created a platforms folder:
C:\android\sdk\ndk-bundle\platforms

executed build.bat

success

but ran onto some trouble making a customized 6391 merge:

Code:
-------------------------------------------------------
           SVN - Not Found, Installing SVN!
-------------------------------------------------------

7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18


Error:
cannot find archive

-------------------------------------------------------
           SVN - Installation Has Completed!
-------------------------------------------------------
ECHO está desactivado.

> Task :app:externalNativeBuildCleanDebug
Clean cpufeatures armeabi-v7a,openbor armeabi-v7a
[armeabi-v7a] Clean          : SDL2 [armeabi-v7a]
[armeabi-v7a] Clean          : cpufeatures [armeabi-v7a]
[armeabi-v7a] Clean          : hidapi [armeabi-v7a]
[armeabi-v7a] Clean          : ogg [armeabi-v7a]
[armeabi-v7a] Clean          : openbor [armeabi-v7a]
[armeabi-v7a] Clean          : png [armeabi-v7a]
[armeabi-v7a] Clean          : vorbisidec [armeabi-v7a]
[armeabi-v7a] Clean          : vpx [armeabi-v7a]

> Task :app:externalNativeBuildCleanRelease
Clean cpufeatures armeabi-v7a,openbor armeabi-v7a
[armeabi-v7a] Clean          : SDL2 [armeabi-v7a]
[armeabi-v7a] Clean          : cpufeatures [armeabi-v7a]
[armeabi-v7a] Clean          : hidapi [armeabi-v7a]
[armeabi-v7a] Clean          : ogg [armeabi-v7a]
[armeabi-v7a] Clean          : openbor [armeabi-v7a]
[armeabi-v7a] Clean          : png [armeabi-v7a]
[armeabi-v7a] Clean          : vorbisidec [armeabi-v7a]
[armeabi-v7a] Clean          : vpx [armeabi-v7a]

BUILD SUCCESSFUL in 2s
4 actionable tasks: 3 executed, 1 up-to-date

> Task :app:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\openbor-master\engine\android\app\src\main\java\org\libsdl\app\SDL.java
 uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :app:externalNativeBuildRelease
Build openbor armeabi-v7a
[armeabi-v7a] Compile thumb  : openbor <= control.c
[armeabi-v7a] Compile thumb  : openbor <= joysticks.c
[armeabi-v7a] Compile thumb  : openbor <= loadgl.c
[armeabi-v7a] Compile thumb  : openbor <= menu.c
[armeabi-v7a] Compile thumb  : openbor <= opengl.c
[armeabi-v7a] Compile thumb  : openbor <= sblaster.c
[armeabi-v7a] Compile thumb  : openbor <= sdlport.c
[armeabi-v7a] Compile thumb  : openbor <= threads.c
[armeabi-v7a] Compile thumb  : openbor <= timer.c
[armeabi-v7a] Compile thumb  : openbor <= video.c
C:/openbor-master/engine/android/app/jni/openbor/../../../../sdl/video.c:11:10:
fatal error: 'android/jni/openbor/video.c' file not found
#include "android/jni/openbor/video.c"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [C:/android/sdk/ndk-bundle/build//../build/core/build-binary.mk:476: C
:/openbor-master/engine/android/app/build/intermediates/ndkBuild/release/obj/loc
al/armeabi-v7a/objs/openbor/__/__/__/__/sdl/video.o] Error 1

> Task :app:externalNativeBuildRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildRelease'.
> Build command failed.
  Error while executing process C:\android\sdk\ndk-bundle\ndk-build.cmd with arg
uments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\openbor-master\engine\android\
app\jni\Android.mk NDK_APPLICATION_MK=C:\openbor-master\engine\android\app\jni\A
pplication.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATF
ORM=android-16 NDK_OUT=C:/openbor-master/engine/android/app/build/intermediates/
ndkBuild/release/obj NDK_LIBS_OUT=C:\openbor-master\engine\android\app\build\int
ermediates\ndkBuild\release\lib APP_PLATFORM=android-16 C:/openbor-master/engine
/android/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libopenb
or.so}
  [armeabi-v7a] Compile thumb  : openbor <= control.c
  [armeabi-v7a] Compile thumb  : openbor <= joysticks.c
  [armeabi-v7a] Compile thumb  : openbor <= loadgl.c
  [armeabi-v7a] Compile thumb  : openbor <= menu.c
  [armeabi-v7a] Compile thumb  : openbor <= opengl.c
  [armeabi-v7a] Compile thumb  : openbor <= sblaster.c
  [armeabi-v7a] Compile thumb  : openbor <= sdlport.c
  [armeabi-v7a] Compile thumb  : openbor <= threads.c
  [armeabi-v7a] Compile thumb  : openbor <= timer.c
  [armeabi-v7a] Compile thumb  : openbor <= video.c
  C:/openbor-master/engine/android/app/jni/openbor/../../../../sdl/video.c:11:10
: fatal error: 'android/jni/openbor/video.c' file not found
  #include "android/jni/openbor/video.c"
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  make: *** [C:/android/sdk/ndk-bundle/build//../build/core/build-binary.mk:476:
 C:/openbor-master/engine/android/app/build/intermediates/ndkBuild/release/obj/l
ocal/armeabi-v7a/objs/openbor/__/__/__/__/sdl/video.o] Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
17 actionable tasks: 15 executed, 2 up-to-date

C:\openbor-master\engine\android>
 
Try to copy the android folder from master build and replace the android folder in 6391 then try to compile again.
 
i did it both ways, copy\paste\repleced all files in 6391

& deleted then pasted the openbor master android folder in 6391...

here is the error:
Code:
-------------------------------------------------------
           SVN - Not Found, Installing SVN!
-------------------------------------------------------

7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18


Error:
cannot find archive

-------------------------------------------------------
           SVN - Installation Has Completed!
-------------------------------------------------------
ECHO está desactivado.

> Task :app:externalNativeBuildCleanDebug
Clean openbor armeabi-v7a,cpu-features cpufeatures
[armeabi-v7a] Clean          : SDL2 [armeabi-v7a]
[armeabi-v7a] Clean          : cpufeatures [armeabi-v7a]
[armeabi-v7a] Clean          : hidapi [armeabi-v7a]
[armeabi-v7a] Clean          : ogg [armeabi-v7a]
[armeabi-v7a] Clean          : openbor [armeabi-v7a]
[armeabi-v7a] Clean          : png [armeabi-v7a]
[armeabi-v7a] Clean          : vorbisidec [armeabi-v7a]
[armeabi-v7a] Clean          : vpx [armeabi-v7a]

BUILD SUCCESSFUL in 2s
4 actionable tasks: 3 executed, 1 up-to-date

> Task :app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\openbor-6391\engine\android\app\src\main\java\org\libsdl\app\SDL.java u
ses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :app:externalNativeBuildDebug
Build openbor armeabi-v7a
[armeabi-v7a] Compile thumb  : openbor <= control.c
[armeabi-v7a] Compile thumb  : openbor <= joysticks.c
[armeabi-v7a] Compile thumb  : openbor <= loadgl.c
[armeabi-v7a] Compile thumb  : openbor <= menu.c
[armeabi-v7a] Compile thumb  : openbor <= opengl.c
[armeabi-v7a] Compile thumb  : openbor <= sblaster.c
[armeabi-v7a] Compile thumb  : openbor <= sdlport.c
[armeabi-v7a] Compile thumb  : openbor <= threads.c
[armeabi-v7a] Compile thumb  : openbor <= timer.c
[armeabi-v7a] Compile thumb  : openbor <= video.c
C:/openbor-6391/engine/android/app/jni/openbor/../../../../sdl/video.c:11:10: fa
tal error: 'android/jni/openbor/video.c' file not found
#include "android/jni/openbor/video.c"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [C:/android/sdk/ndk-bundle/build//../build/core/build-binary.mk:476: C
:/openbor-6391/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/a
rmeabi-v7a/objs-debug/openbor/__/__/__/__/sdl/video.o] Error 1

> Task :app:externalNativeBuildDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process C:\android\sdk\ndk-bundle\ndk-build.cmd with arg
uments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\openbor-6391\engine\android\ap
p\jni\Android.mk NDK_APPLICATION_MK=C:\openbor-6391\engine\android\app\jni\Appli
cation.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=
android-16 NDK_OUT=C:/openbor-6391/engine/android/app/build/intermediates/ndkBui
ld/debug/obj NDK_LIBS_OUT=C:\openbor-6391\engine\android\app\build\intermediates
\ndkBuild\debug\lib APP_PLATFORM=android-16 C:/openbor-6391/engine/android/app/b
uild/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libopenbor.so}
  [armeabi-v7a] Compile thumb  : openbor <= control.c
  [armeabi-v7a] Compile thumb  : openbor <= joysticks.c
  [armeabi-v7a] Compile thumb  : openbor <= loadgl.c
  [armeabi-v7a] Compile thumb  : openbor <= menu.c
  [armeabi-v7a] Compile thumb  : openbor <= opengl.c
  [armeabi-v7a] Compile thumb  : openbor <= sblaster.c
  [armeabi-v7a] Compile thumb  : openbor <= sdlport.c
  [armeabi-v7a] Compile thumb  : openbor <= threads.c
  [armeabi-v7a] Compile thumb  : openbor <= timer.c
  [armeabi-v7a] Compile thumb  : openbor <= video.c
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../sdl/video.c:11:10:
fatal error: 'android/jni/openbor/video.c' file not found
  #include "android/jni/openbor/video.c"
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  make: *** [C:/android/sdk/ndk-bundle/build//../build/core/build-binary.mk:476:
 C:/openbor-6391/engine/android/app/build/intermediates/ndkBuild/debug/obj/local
/armeabi-v7a/objs-debug/openbor/__/__/__/__/sdl/video.o] Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
17 actionable tasks: 16 executed, 1 up-to-date

C:\openbor-6391\engine\android>
 
video error gone, but now its this:
Code:
-------------------------------------------------------
           SVN - Not Found, Installing SVN!
-------------------------------------------------------

7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18


Error:
cannot find archive

-------------------------------------------------------
           SVN - Installation Has Completed!
-------------------------------------------------------
ECHO está desactivado.

> Task :app:externalNativeBuildCleanDebug
Clean openbor armeabi-v7a,cpu-features cpufeatures
[armeabi-v7a] Clean          : SDL2 [armeabi-v7a]
[armeabi-v7a] Clean          : cpufeatures [armeabi-v7a]
[armeabi-v7a] Clean          : hidapi [armeabi-v7a]
[armeabi-v7a] Clean          : ogg [armeabi-v7a]
[armeabi-v7a] Clean          : openbor [armeabi-v7a]
[armeabi-v7a] Clean          : png [armeabi-v7a]
[armeabi-v7a] Clean          : vorbisidec [armeabi-v7a]
[armeabi-v7a] Clean          : vpx [armeabi-v7a]

BUILD SUCCESSFUL in 2s
4 actionable tasks: 3 executed, 1 up-to-date

> Task :app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\openbor-6391\engine\android\app\src\main\java\org\libsdl\app\SDL.java u
ses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :app:externalNativeBuildDebug
Build openbor armeabi-v7a
[armeabi-v7a] Compile thumb  : openbor <= control.c
[armeabi-v7a] Compile thumb  : openbor <= joysticks.c
[armeabi-v7a] Compile thumb  : openbor <= loadgl.c
[armeabi-v7a] Compile thumb  : openbor <= menu.c
[armeabi-v7a] Compile thumb  : openbor <= opengl.c
[armeabi-v7a] Compile thumb  : openbor <= sblaster.c
[armeabi-v7a] Compile thumb  : openbor <= sdlport.c
[armeabi-v7a] Compile thumb  : openbor <= threads.c
[armeabi-v7a] Compile thumb  : openbor <= timer.c
[armeabi-v7a] Compile thumb  : openbor <= video.c
[armeabi-v7a] Compile thumb  : openbor <= videocommon.c
[armeabi-v7a] Compile thumb  : openbor <= openbor.c
[armeabi-v7a] Compile thumb  : openbor <= openborscript.c
[armeabi-v7a] Compile thumb  : openbor <= omath.c
[armeabi-v7a] Compile thumb  : openbor <= stringptr.c
[armeabi-v7a] Compile thumb  : openbor <= stristr.c
[armeabi-v7a] Compile thumb  : openbor <= utils.c
[armeabi-v7a] Compile thumb  : openbor <= adpcm.c
[armeabi-v7a] Compile thumb  : openbor <= anigif.c
[armeabi-v7a] Compile thumb  : openbor <= bitmap.c
[armeabi-v7a] Compile thumb  : openbor <= draw.c
[armeabi-v7a] Compile thumb  : openbor <= draw16.c
[armeabi-v7a] Compile thumb  : openbor <= draw32.c
[armeabi-v7a] Compile thumb  : openbor <= filecache.c
[armeabi-v7a] Compile thumb  : openbor <= filters.c
[armeabi-v7a] Compile thumb  : openbor <= font.c
[armeabi-v7a] Compile thumb  : openbor <= loadimg.c
[armeabi-v7a] Compile thumb  : openbor <= models.c
[armeabi-v7a] Compile thumb  : openbor <= packfile.c
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:439:57: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror,
-Wuser-defined-warnings]
    if((handle = open(filename, O_RDONLY | O_BINARY, 777)) != -1)
                                                        ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:466:59: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror,
-Wuser-defined-warnings]
        if((handle = open(fspath, O_RDONLY | O_BINARY, 777)) != -1)
                                                          ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:496:61: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror,
-Wuser-defined-warnings]
    if((handle = open(packfilename, O_RDONLY | O_BINARY, 777)) == -1)
                                                            ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:1249:56: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror
,-Wuser-defined-warnings]
        pakfd = open(packfile, O_RDONLY | O_BINARY, 777);
                                                       ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:1265:52: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror
,-Wuser-defined-warnings]
    pakfd = open(packfile, O_RDONLY | O_BINARY, 777);
                                                   ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
5 errors generated.
make: *** [C:/android/sdk/ndk-bundle/build//../build/core/build-binary.mk:476: C
:/openbor-6391/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/a
rmeabi-v7a/objs-debug/openbor/__/__/__/__/source/gamelib/packfile.o] Error 1

> Task :app:externalNativeBuildDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process C:\android\sdk\ndk-bundle\ndk-build.cmd with arg
uments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\openbor-6391\engine\android\ap
p\jni\Android.mk NDK_APPLICATION_MK=C:\openbor-6391\engine\android\app\jni\Appli
cation.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=
android-16 NDK_OUT=C:/openbor-6391/engine/android/app/build/intermediates/ndkBui
ld/debug/obj NDK_LIBS_OUT=C:\openbor-6391\engine\android\app\build\intermediates
\ndkBuild\debug\lib APP_PLATFORM=android-16 C:/openbor-6391/engine/android/app/b
uild/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libopenbor.so}
  [armeabi-v7a] Compile thumb  : openbor <= control.c
  [armeabi-v7a] Compile thumb  : openbor <= joysticks.c
  [armeabi-v7a] Compile thumb  : openbor <= loadgl.c
  [armeabi-v7a] Compile thumb  : openbor <= menu.c
  [armeabi-v7a] Compile thumb  : openbor <= opengl.c
  [armeabi-v7a] Compile thumb  : openbor <= sblaster.c
  [armeabi-v7a] Compile thumb  : openbor <= sdlport.c
  [armeabi-v7a] Compile thumb  : openbor <= threads.c
  [armeabi-v7a] Compile thumb  : openbor <= timer.c
  [armeabi-v7a] Compile thumb  : openbor <= video.c
  [armeabi-v7a] Compile thumb  : openbor <= videocommon.c
  [armeabi-v7a] Compile thumb  : openbor <= openbor.c
  [armeabi-v7a] Compile thumb  : openbor <= openborscript.c
  [armeabi-v7a] Compile thumb  : openbor <= omath.c
  [armeabi-v7a] Compile thumb  : openbor <= stringptr.c
  [armeabi-v7a] Compile thumb  : openbor <= stristr.c
  [armeabi-v7a] Compile thumb  : openbor <= utils.c
  [armeabi-v7a] Compile thumb  : openbor <= adpcm.c
  [armeabi-v7a] Compile thumb  : openbor <= anigif.c
  [armeabi-v7a] Compile thumb  : openbor <= bitmap.c
  [armeabi-v7a] Compile thumb  : openbor <= draw.c
  [armeabi-v7a] Compile thumb  : openbor <= draw16.c
  [armeabi-v7a] Compile thumb  : openbor <= draw32.c
  [armeabi-v7a] Compile thumb  : openbor <= filecache.c
  [armeabi-v7a] Compile thumb  : openbor <= filters.c
  [armeabi-v7a] Compile thumb  : openbor <= font.c
  [armeabi-v7a] Compile thumb  : openbor <= loadimg.c
  [armeabi-v7a] Compile thumb  : openbor <= models.c
  [armeabi-v7a] Compile thumb  : openbor <= packfile.c
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:439:57: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werro
r,-Wuser-defined-warnings]
      if((handle = open(filename, O_RDONLY | O_BINARY, 777)) != -1)
                                                          ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:466:59: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werro
r,-Wuser-defined-warnings]
          if((handle = open(fspath, O_RDONLY | O_BINARY, 777)) != -1)
                                                            ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:496:61: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werro
r,-Wuser-defined-warnings]
      if((handle = open(packfilename, O_RDONLY | O_BINARY, 777)) == -1)
                                                              ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:1249:56: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werr
or,-Wuser-defined-warnings]
          pakfd = open(packfile, O_RDONLY | O_BINARY, 777);
                                                         ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:1265:52: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werr
or,-Wuser-defined-warnings]
      pakfd = open(packfile, O_RDONLY | O_BINARY, 777);
                                                     ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  5 errors generated.
  make: *** [C:/android/sdk/ndk-bundle/build//../build/core/build-binary.mk:476:
 C:/openbor-6391/engine/android/app/build/intermediates/ndkBuild/debug/obj/local
/armeabi-v7a/objs-debug/openbor/__/__/__/__/source/gamelib/packfile.o] Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 45s
17 actionable tasks: 15 executed, 2 up-to-date

C:\openbor-6391\engine\android>
 
here is the work-flow
Code:
Patch Older versions, win 7 64 bit
Unmodified gradle file, merge attempt workflow


go to this master build directoty:

C:\openbor-master\engine
 
copy the android folder

go to the 6391 (or older build) directory:

C:\openbor-6391\engine

delete Android folder

paste the new android folder



###########    Video.c patch ###########
https://youtu.be/i_zZrSQmNV4?t=849

go to this master build directory:
C:\openbor-master\engine\sdl

open video.c

copy this line:
#include "android/app/jni/openbor/video.c"

go the older build directoy:
C:\openbor-6391\engine\sdl
 
edit video.c

replace this line:
#include "android/jni/openbor/video.c"
with
#include "android/app/jni/openbor/video.c"

#####   packfile.c for older build  ########

go to this master build directory:
C:\openbor-master\engine\source\gamelib
copy packfile.c

go this older build directory:
C:\openbor-6391\engine\source
 paste packfile.c


then ran build.bat

i also did the packfile.c paste & get these errors:
Code:
-------------------------------------------------------
           SVN - Not Found, Installing SVN!
-------------------------------------------------------

7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18


Error:
cannot find archive

-------------------------------------------------------
           SVN - Installation Has Completed!
-------------------------------------------------------
ECHO está desactivado.

> Task :app:externalNativeBuildCleanDebug
Clean openbor armeabi-v7a,cpu-features cpufeatures
[armeabi-v7a] Clean          : SDL2 [armeabi-v7a]
[armeabi-v7a] Clean          : cpufeatures [armeabi-v7a]
[armeabi-v7a] Clean          : hidapi [armeabi-v7a]
[armeabi-v7a] Clean          : ogg [armeabi-v7a]
[armeabi-v7a] Clean          : openbor [armeabi-v7a]
[armeabi-v7a] Clean          : png [armeabi-v7a]
[armeabi-v7a] Clean          : vorbisidec [armeabi-v7a]
[armeabi-v7a] Clean          : vpx [armeabi-v7a]

BUILD SUCCESSFUL in 2s
4 actionable tasks: 3 executed, 1 up-to-date

> Task :app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\openbor-6391\engine\android\app\src\main\java\org\libsdl\app\SDL.java u
ses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :app:externalNativeBuildDebug
Build openbor armeabi-v7a
[armeabi-v7a] Compile thumb  : openbor <= control.c
[armeabi-v7a] Compile thumb  : openbor <= joysticks.c
[armeabi-v7a] Compile thumb  : openbor <= loadgl.c
[armeabi-v7a] Compile thumb  : openbor <= menu.c
[armeabi-v7a] Compile thumb  : openbor <= opengl.c
[armeabi-v7a] Compile thumb  : openbor <= sblaster.c
[armeabi-v7a] Compile thumb  : openbor <= sdlport.c
[armeabi-v7a] Compile thumb  : openbor <= threads.c
[armeabi-v7a] Compile thumb  : openbor <= timer.c
[armeabi-v7a] Compile thumb  : openbor <= video.c
[armeabi-v7a] Compile thumb  : openbor <= videocommon.c
[armeabi-v7a] Compile thumb  : openbor <= openbor.c
[armeabi-v7a] Compile thumb  : openbor <= openborscript.c
[armeabi-v7a] Compile thumb  : openbor <= omath.c
[armeabi-v7a] Compile thumb  : openbor <= packfile.c
[armeabi-v7a] Compile thumb  : openbor <= stringptr.c
[armeabi-v7a] Compile thumb  : openbor <= stristr.c
[armeabi-v7a] Compile thumb  : openbor <= utils.c
[armeabi-v7a] Compile thumb  : openbor <= adpcm.c
[armeabi-v7a] Compile thumb  : openbor <= anigif.c
[armeabi-v7a] Compile thumb  : openbor <= bitmap.c
[armeabi-v7a] Compile thumb  : openbor <= draw.c
[armeabi-v7a] Compile thumb  : openbor <= draw16.c
[armeabi-v7a] Compile thumb  : openbor <= draw32.c
[armeabi-v7a] Compile thumb  : openbor <= filecache.c
[armeabi-v7a] Compile thumb  : openbor <= filters.c
[armeabi-v7a] Compile thumb  : openbor <= font.c
[armeabi-v7a] Compile thumb  : openbor <= loadimg.c
[armeabi-v7a] Compile thumb  : openbor <= models.c
[armeabi-v7a] Compile thumb  : openbor <= packfile.c
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:439:57: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror,
-Wuser-defined-warnings]
    if((handle = open(filename, O_RDONLY | O_BINARY, 777)) != -1)
                                                        ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:466:59: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror,
-Wuser-defined-warnings]
        if((handle = open(fspath, O_RDONLY | O_BINARY, 777)) != -1)
                                                          ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:496:61: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror,
-Wuser-defined-warnings]
    if((handle = open(packfilename, O_RDONLY | O_BINARY, 777)) == -1)
                                                            ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:1249:56: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror
,-Wuser-defined-warnings]
        pakfd = open(packfile, O_RDONLY | O_BINARY, 777);
                                                       ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/packfi
le.c:1265:52: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werror
,-Wuser-defined-warnings]
    pakfd = open(packfile, O_RDONLY | O_BINARY, 777);
                                                   ^
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute on
 'open':
        __clang_warning_if(!__open_modes_useful(flags) && modes,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sysr
oot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning_i
f'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "war
ning")))
                                                     ^           ~~~~
5 errors generated.
make: *** [C:/android/sdk/ndk-bundle/build//../build/core/build-binary.mk:476: C
:/openbor-6391/engine/android/app/build/intermediates/ndkBuild/debug/obj/local/a
rmeabi-v7a/objs-debug/openbor/__/__/__/__/source/gamelib/packfile.o] Error 1

> Task :app:externalNativeBuildDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process C:\android\sdk\ndk-bundle\ndk-build.cmd with arg
uments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\openbor-6391\engine\android\ap
p\jni\Android.mk NDK_APPLICATION_MK=C:\openbor-6391\engine\android\app\jni\Appli
cation.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=
android-16 NDK_OUT=C:/openbor-6391/engine/android/app/build/intermediates/ndkBui
ld/debug/obj NDK_LIBS_OUT=C:\openbor-6391\engine\android\app\build\intermediates
\ndkBuild\debug\lib APP_PLATFORM=android-16 C:/openbor-6391/engine/android/app/b
uild/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libopenbor.so}
  [armeabi-v7a] Compile thumb  : openbor <= control.c
  [armeabi-v7a] Compile thumb  : openbor <= joysticks.c
  [armeabi-v7a] Compile thumb  : openbor <= loadgl.c
  [armeabi-v7a] Compile thumb  : openbor <= menu.c
  [armeabi-v7a] Compile thumb  : openbor <= opengl.c
  [armeabi-v7a] Compile thumb  : openbor <= sblaster.c
  [armeabi-v7a] Compile thumb  : openbor <= sdlport.c
  [armeabi-v7a] Compile thumb  : openbor <= threads.c
  [armeabi-v7a] Compile thumb  : openbor <= timer.c
  [armeabi-v7a] Compile thumb  : openbor <= video.c
  [armeabi-v7a] Compile thumb  : openbor <= videocommon.c
  [armeabi-v7a] Compile thumb  : openbor <= openbor.c
  [armeabi-v7a] Compile thumb  : openbor <= openborscript.c
  [armeabi-v7a] Compile thumb  : openbor <= omath.c
  [armeabi-v7a] Compile thumb  : openbor <= packfile.c
  [armeabi-v7a] Compile thumb  : openbor <= stringptr.c
  [armeabi-v7a] Compile thumb  : openbor <= stristr.c
  [armeabi-v7a] Compile thumb  : openbor <= utils.c
  [armeabi-v7a] Compile thumb  : openbor <= adpcm.c
  [armeabi-v7a] Compile thumb  : openbor <= anigif.c
  [armeabi-v7a] Compile thumb  : openbor <= bitmap.c
  [armeabi-v7a] Compile thumb  : openbor <= draw.c
  [armeabi-v7a] Compile thumb  : openbor <= draw16.c
  [armeabi-v7a] Compile thumb  : openbor <= draw32.c
  [armeabi-v7a] Compile thumb  : openbor <= filecache.c
  [armeabi-v7a] Compile thumb  : openbor <= filters.c
  [armeabi-v7a] Compile thumb  : openbor <= font.c
  [armeabi-v7a] Compile thumb  : openbor <= loadimg.c
  [armeabi-v7a] Compile thumb  : openbor <= models.c
  [armeabi-v7a] Compile thumb  : openbor <= packfile.c
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:439:57: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werro
r,-Wuser-defined-warnings]
      if((handle = open(filename, O_RDONLY | O_BINARY, 777)) != -1)
                                                          ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:466:59: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werro
r,-Wuser-defined-warnings]
          if((handle = open(fspath, O_RDONLY | O_BINARY, 777)) != -1)
                                                            ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:496:61: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werro
r,-Wuser-defined-warnings]
      if((handle = open(packfilename, O_RDONLY | O_BINARY, 777)) == -1)
                                                              ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:1249:56: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werr
or,-Wuser-defined-warnings]
          pakfd = open(packfile, O_RDONLY | O_BINARY, 777);
                                                         ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  C:/openbor-6391/engine/android/app/jni/openbor/../../../../source/gamelib/pack
file.c:1265:52: error: 'open' has superfluous mode bits; missing O_CREAT? [-Werr
or,-Wuser-defined-warnings]
      pakfd = open(packfile, O_RDONLY | O_BINARY, 777);
                                                     ^
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\bits/fortify/fcntl.h:76:9: note: from 'diagnose_if' attribute
on 'open':
          __clang_warning_if(!__open_modes_useful(flags) && modes,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/android/sdk/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/sy
sroot/usr/include\sys/cdefs.h:139:54: note: expanded from macro '__clang_warning
_if'
  #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "w
arning")))
                                                       ^           ~~~~
  5 errors generated.
  make: *** [C:/android/sdk/ndk-bundle/build//../build/core/build-binary.mk:476:
 C:/openbor-6391/engine/android/app/build/intermediates/ndkBuild/debug/obj/local
/armeabi-v7a/objs-debug/openbor/__/__/__/__/source/gamelib/packfile.o] Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 50s
17 actionable tasks: 15 executed, 2 up-to-date

C:\openbor-6391\engine\android>
 
Well, im still struggling cause im on win10now and was ion win7, not sure why i cant build, i followed video exactly, gradle went ok, but i think sdk-setup.bat did not went well ,
Also im on win64 but i used win32 libs from the video, not sure how that would fail it, its just different path to x86 program files , strange, maybe it downloads different libs for 64 and 32 bit and they just clash with what i installed
 
Last edited:
Back
Top Bottom