• All, Gmail is currently rejecting messages from my host. I have a ticket in process, but it may take some time to resolve. Until further notice, do NOT use Gmail for your accounts. You will be unable to receive confirmations and two factor messages to login.

Compile Android Build

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
try to follow the instructions/workflow descriptions i have posted for the first steps (downloads , variables, setup), i will do the merge steps later once i get them working...

skip the "path" thing in windows 10 64 bit

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
 
it compiled, but it still crashing when i choose game from pak selector, this is so strange !!
when i want to build msmalik android test version , im getting these errors , another set of deprecated libs ! i hate it so much, "Deprecated" must be most hated word in programming community
So far me = 0 , android sdk = over 9000, im done with it, it sbeen 10 hours, i dont want another allnighter.will try something else next time, feel free to suggest what might be happening.
Code:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 31s

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\OpenBOR\android test_\engine\android\app\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
     You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.
 
Last edited:
Have a busy weekend as its my sons birthday but i will get around to testing this. The issue is that the command line tools package as well as the files downloaded keep changing with updates. But build 6391 is stuck as the latest release until the next openbor release but its a big release so its taking some time.

@bWWd what about the apk i made in releases, does that crash too ?

@oldyz it must have been a good feeling to finally see the build complete lol. Does your build also crash when opening paks ?
 
@bWWd the error is clearly telling you to install java 11 !!

Sorry your having such a hard time with this. Everything will be better when openbor 4.0 is released.
 
Ill try in the morning but this is my log from phone

********** An Error Occurred **********
* Shutting Down *

Assertion `keyboardDeviceID >= 0' failed in function 'control_update_android_touch' at D:/OpenBOR/openbor-master/engine/android/app/jni/openbor/../../../../sdl/control.c:1046.
This is an OpenBOR bug. Please report this at www.chronocrash.com.
 
@oldyz it must have been a good feeling to finally see the build complete lol. Does your build also crash when opening paks ?
Blast , havent thought of to test that aspect yet.

i posted my version of the instructions so Bwwd could get the hang of the thing,

he might have needed a system reboot for java to take hold tho.

later on the next few hours i should get to another attempt at a 39something build.

Hope your kid has/had a blast of a B-day

12764369_1410720312277803_1167787104713941885_o.jpg
 
@msmalik681

i have tested now with both windows 10 & windows 7 64 bit & uploaded the 2 sets of instructions as text files on resources.

what i like to call "step 1" seems to be successful so far with no fail thanks to your updates, and i am about to do part 2 (making a build of older version, custom icons, name , etc) so lets see how that goes.

update: not well

Try 6391 without as is with its default android folder and apply just the video.c patch
this the result:
Code:
Building libraries from OpenBOR source...
-----------------------------------------------------------------------
"ndk-build" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
-----------------------------------------------------------------------
Compiling APK ...
-----------------------------------------------------------------------
"ant" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
-----------------------------------------------------------------------
Presione una tecla para continuar . . .

next i tried a hybrid files approach, where i take the contents of master build android folder, and paste them to 6391 android folder without replacing the files. same error about "ant"

Bwwd's issue might be because "master build's" openbor may have that selection bug, I think that if we get a 6391 build the issue may go away...
 
Ant was the old compile application we used before migration to gradle
well, the only thing i can guess is that some files from the android master folder will need to be pasted.

the 6391 android folder is missing a bunch of files, so i thought a paste without replacing would take care of it, but i suppose some more/other files have to be patched, or replaced, so far i can't get a 6391 compile...

@Kratus, when is the last time you compiled your custom openbor for android? & what java did you use & what spk tools version did you use?
(and the next question is whether those files can still work with the new master build's files)
 
no luck with 6391, cause it complains about ant no luck with msmalik android test build i got from mediafire, the only one that compiles is the main build and that one closes when i select pak from the list , also following oldyz build makes ndk not recognizable in commandline which breaks it for other builds, adding ndk to paths kinda solves it t o test ndk-buid but it wont build properly anyway.
I want to install msmalik version that lets me use pak file inside of apk, i dont care much about main and other builds atm
This is the one : android test .tar
msmalik if thats the version you have in system compiling, can you tell me your env variables in windows ? I wiped .android and .gradle from user folder, i wont attempt more experiments cause i did it over and over and over again with the same result already, i want to follow somone that actually have that version compiling in his own system at this moment in time, cause they deprecate older versions all the time and week difference before setups can create issues thats out of our control even if all the commands are the same, their servers contain new version of libraries, libraries are changed silently and are missing some stuff in new versions, paths are changed etc. im a bit tired of this all.
 
Last edited:
..... their servers contain new version of libraries, libraries are changed silently and are missing some stuff in new versions, paths are changed etc. im a bit tired of this all.
That is something i have thought about too.....

the best way to do this process is to actually share all working files as a "portable" pack of files & folders of sorts & not rely on commands that need internet downloads.

granted, the android folder alone gets really big, 4gb plus after the sdk-setup.bat is done.
Bigger than just downloading android studio????
 
I compiled android build from May 18, 2021 on github ( cause it worked for me last time ) of course after some battle with ndk-bundle that sdksetup.bat should get 100% right but doesnt(ndk-bundle is missing platforms folder ) :

get this sourcecode version GitHub - DCurrent/openbor at f5261e7cb97786909276c0b87f8f9f63504d2844 :
jdk-8u291-windows-x64.exe
android-ndk-r21e-windows-x86_64.zip
sdk-tools-windows-4333796.zip


sdk-tools-windows-4333796 extract bin and lib to C:\android\sdk\cmdline-tools\version\
(for x86 legacy 32bit windows version use C:\android\sdk\tools\bin )

Now add system variables :
ANDROID_HOME
C:\android\sdk

install jdk-8u291-windows-x64.exe
also this in system variable path while java jdk-8u291-windows-x64.exe is installing
C:\Program Files\Java\jdk-8u291\bin
C:\android\sdk\cmdline-tools\version\bin (for x86 legacy version use C:\android\sdk\tools\bin )

on 64bit win change contents of the bat file sdk-setup.bat from android folder in src code to (cause it was not made for 64bit, leav as is if youre on 32bit win):

cmd /k " C:\android\sdk\cmdline-tools\version\bin\sdkmanager.bat "build-tools;28.0.3" "ndk-bundle" "platform-tools" "platforms;android-28" "tools" "
@rem sdkmanager.bat --list


run sdk-setup.bat to install sdk and ndk
and you can add these to path in system variable:
C:\Android\sdk\cmdline-tools\build-tools\28.0.3
C:\Android\sdk\cmdline-tools\ndk-bundle

add this to system variable as well and we will repair ndk-bundle cause its missing A LOT (they removed it and it causes most issues)
more on this here : Getting warning "NDK is missing a 'platforms" directory.' with no NDK

ANDROID_NDK_HOME
C:\Android\sdk\cmdline-tools\ndk-bundle

to repair it , rename ndk-bundle to "useless crap" then extract files from android-ndk-r21e-windows-x86_64 to C:\Android\sdk\cmdline-tools\ and change folder name to ndk-bundle

check these if needed
ndk-build java -version
 
Last edited:
@bWWd @oldyz I am very sorry just tried to compile android build from 6391 and indeed some source files are missing I have no idea what happened to them or where they have gone ???

I will come up with a fix soon but again very sorry for all the stress.
 
yeah no rush im with the kid now as well but it would be nice to get your version compiled and documented exactly what sdk versions are required and sdkbuild.bat contents for it also gradle.
Do we really have to get build-tools;28.0.3 ? its missing platforms directory after installation, why its this particular one that has to be used?

What Android API level should I use?


When you upload an APK, it must meet Google Play's target API level requirements. New apps and app updates must target Android 11 (API level 30) or higher; except for Wear OS apps, which must target API level 28 or higher.

I teied to install newest java 11 , newest jdk and newest gradle and all i got from cmdline is this :
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

Whcih is funny cause gradle 8 does not exist yet.

From what i figured so far, ndk thats being downloaded by sdk-setup.bat file is totally wrong, its missing ndk libraries so i got it working only by replacing ndk-bundle with contents of android-ndk-r21e-windows-x86_64.zip, they have shitty libraries online, maybe they do work for some simple projects, tbut not for this one cause they did work back then with whats setup in bat files , right ? so why suddenly it doesnt work ? they changed things around.
So paths to directories and all are easy to debug and figure out but their online libraries are pita, you need exactly good gradle, and exactly good sdk and exactly compatible ndk with all libraries needed, but they updated these and switched around backwards so much it wont work.
So the way to deal with this is to check what they removed in what gradle, whad sdk and what platform tools compated to whats needed to comiple openbor and use frankensteined libraries from 2 zips or something.You cant rely on their online database to get it right on first try at least on the new openbor builds.
 
Last edited:
@Kratus, when is the last time you compiled your custom openbor for android? & what java did you use & what spk tools version did you use?
(and the next question is whether those files can still work with the new master build's files)
@oldyz
This is strange, during the SOR2X v2.3.1 development I was able to compile many different builds with the files I have, including 6330,6391, 7123 and main source.
I formatted my PC a few months ago and since then I didn't try again to compile for Android, but if I'm not wrong the only problem I had was a small step I forgot about the ndk.

I will try again today to see what's happening.
 
@oldyz
Okay, I reinstalled everything again and was able to compile with no problems using the same files as before. Tested the engine builds 6330, 6391, 7123 (this last one is the same used on SOR2X v2.3.1) and the main source, all of them using BlueStacks.

Here's the files I'm using:

Ndk version r21e-windows-x86_64
Command line tools win-6858069
Jdk 15.0.2_windows-x64

This time the only step I skipped was the 3 android/sdk system variables, all other things (including the java/jdk) follow Malik's tutorial.

enviroment variables.png
 
@oldyz
Okay, I reinstalled everything again and was able to compile with no problems using the same files as before. Tested the engine builds 6330, 6391, 7123 (this last one is the same used on SOR2X v2.3.1) and the main source, all of them using BlueStacks.
Thanks Kratus, just one question , you used bluestacks just for testing or is it part of the process some-how?
 
Thanks Kratus, just one question , you used bluestacks just for testing or is it part of the process some-how?
This is only for testing purposes, I always use this program before to test on a real Android device.
 
Well, i have all the paths like kratus, and files extracted to android/sdk and ndk , all i get is this when running install.bat in src of 6391.Which measn that its not enough to have only ANDROID_HOME and ANDROID_NDK_HOME + java path unless immissing something ?
Code:
D:\OpenBOR\openbor-6391\engine\android>call build
-----------------------------------------------------------------------
Building libraries from OpenBOR source...
-----------------------------------------------------------------------
'ndk-build' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------------------------------------
Compiling APK ...
-----------------------------------------------------------------------
'ant' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------------------------------------
Press any key to continue . . .

So after adding C:\android\ndk and C:\android\sdk to paths , it moves forward but still stuck on this, it says ant is not recognized ,so do i need apache ant installed as well ?
Code:
D:\OpenBOR\openbor-6391\engine\android>call build
-----------------------------------------------------------------------
Building libraries from OpenBOR source...
-----------------------------------------------------------------------
Android NDK: Found platform level in ./project.properties. Setting APP_PLATFORM to android-19.
[armeabi-v7a] Install        : libSDL2.so => libs/armeabi-v7a/libSDL2.so
[armeabi-v7a] Compile thumb  : openbor <= spritex8p32.c
[armeabi-v7a] Compile thumb  : openbor <= soundmix.c
[armeabi-v7a] Compile thumb  : openbor <= palette.c
[armeabi-v7a] Compile thumb  : openbor <= sprite.c
[armeabi-v7a] Compile thumb  : openbor <= screen.c
[armeabi-v7a] Compile thumb  : openbor <= transform.c
[armeabi-v7a] Compile thumb  : openbor <= translation.c
[armeabi-v7a] Compile thumb  : openbor <= spriteq.c
[armeabi-v7a] Compile thumb  : openbor <= screen32.c
[armeabi-v7a] Compile thumb  : openbor <= spritex8p16.c
[armeabi-v7a] Compile thumb  : openbor <= screen16.c
[armeabi-v7a] Compile thumb  : openbor <= pixelformat.c
[armeabi-v7a] Compile thumb  : openbor <= packfile.c
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
5 errors generated.
make: *** [C:/Android/ndk/build//../build/core/build-binary.mk:476: obj/local/armeabi-v7a/objs/openbor/__/__/__/source/gamelib/packfile.o] Error 1
-----------------------------------------------------------------------
Compiling APK ...
-----------------------------------------------------------------------
'ant' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------------------------------------
Press any key to continue . . .
 
Last edited:
Well, i have all the paths like kratus, and files extracted to android/sdk and ndk , all i get is this when running install.bat in src of 6391.Which measn that its not enough to have only ANDROID_HOME and ANDROID_NDK_HOME + java path unless immissing something ?
Code:
D:\OpenBOR\openbor-6391\engine\android>call build
-----------------------------------------------------------------------
Building libraries from OpenBOR source...
-----------------------------------------------------------------------
'ndk-build' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------------------------------------
Compiling APK ...
-----------------------------------------------------------------------
'ant' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------------------------------------
Press any key to continue . . .

So after adding C:\android\ndk and C:\android\sdk to paths , it moves forward but still stuck on this, it says ant is not recognized ,so do i need apache ant installed as well ?
Code:
D:\OpenBOR\openbor-6391\engine\android>call build
-----------------------------------------------------------------------
Building libraries from OpenBOR source...
-----------------------------------------------------------------------
Android NDK: Found platform level in ./project.properties. Setting APP_PLATFORM to android-19.
[armeabi-v7a] Install        : libSDL2.so => libs/armeabi-v7a/libSDL2.so
[armeabi-v7a] Compile thumb  : openbor <= spritex8p32.c
[armeabi-v7a] Compile thumb  : openbor <= soundmix.c
[armeabi-v7a] Compile thumb  : openbor <= palette.c
[armeabi-v7a] Compile thumb  : openbor <= sprite.c
[armeabi-v7a] Compile thumb  : openbor <= screen.c
[armeabi-v7a] Compile thumb  : openbor <= transform.c
[armeabi-v7a] Compile thumb  : openbor <= translation.c
[armeabi-v7a] Compile thumb  : openbor <= spriteq.c
[armeabi-v7a] Compile thumb  : openbor <= screen32.c
[armeabi-v7a] Compile thumb  : openbor <= spritex8p16.c
[armeabi-v7a] Compile thumb  : openbor <= screen16.c
[armeabi-v7a] Compile thumb  : openbor <= pixelformat.c
[armeabi-v7a] Compile thumb  : openbor <= packfile.c
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
jni/openbor/../../../source/gamelib/packfile.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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/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/ndk/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\sys/cdefs.h:135:54: note: expanded
      from macro '__clang_warning_if'
#define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning")))
                                                     ^           ~~~~
5 errors generated.
make: *** [C:/Android/ndk/build//../build/core/build-binary.mk:476: obj/local/armeabi-v7a/objs/openbor/__/__/__/source/gamelib/packfile.o] Error 1
-----------------------------------------------------------------------
Compiling APK ...
-----------------------------------------------------------------------
'ant' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------------------------------------
Press any key to continue . . .

Installed ant, made paths, it went few lines more, and stuck again... looking for non existing xml... this is just not fun.
 
Back
Top Bottom