Compile Android Build

I have updated the tutorial in the first post and I am uploading a video to YouTube showing how to compile on a fresh install of windows 7 x86 (32-bit). I will upload the video as soon as its ready.

O Ilusionista

What does a brother have to do to make a topic sticky around here ?
 
msmalik681 said:
I have updated the tutorial in the first post and I am uploading a video to YouTube showing how to compile on a fresh install of windows 7 x86 (32-bit). I will upload the video as soon as its ready.

O Ilusionista

What does a brother have to do to make a topic sticky around here ?

He need to ask for it and we will check if it is right to stick it, basically.

By the way, it's sticky now
 
Looks like i have no chance.Java -version command says there is no java file in program files/oracle.Even through the java didnt make a file about that.At least tell me,when will the new update arrive?
 
To whom it may concern the android "command line tools only" has changed the way the folder system needs to be laid out so it does not work with my android compile guide i previously made.  I have updated my guide to work with the latest command line tools I have also updated the source code to accommodate for this.

So to patch a older version of openbor just download the source code for the version you want to use. Now download the latest master build. Next replace the older versions android folder with the one from the master build then find and replace the files "video.c" and "packfile.c" with the master versions and that is it.

one more thing to make sure your compiled version reflects the correct build number open the file "version.sh" and add the line "VERSION_BUILD=6391" without the quotes before the line "function get_revnum {"  this will easily identify the build version you are using.
 
msmalik681

Hey buddy, please can you give me a hand? For a unknow reason I can't compile Android builds anymore, it's returning an error. The only thing changed in my PC was a new Windows 10 update, all other things remain the same.

I already removed and reinstalled everything according to the tutorial, but nothing. I erased all source codes files and downloaded again at the GitHub, the only build I can compile is the latest master. No success for the 6315, 6330, 6391 and the old master build I have.

The JDK tested were the 14.0.2 (this one I used by a long time) and the latest 15.0.2. I downloaded the new cmdlinetools and tried the old one I used, but no success.
An important note, all other platforms like Windows or PSP builds are compiling normally, the problem happens only on the Android build. And the source codes 6315, 6330 and 6391 had no modifications.

Here's some images:
Oge8D3A.png

HTmmxUr.png

3fwewOV.png


EDIT: Sorry man, after to take a look in the GitHub I could see that I forgot the "ANDROID_NDK_HOME" step.
##################
# Build instruction
###################

* Download relevant Android SDK and NDK then and set up `ANDROID_HOME`, and `ANDROID_NDK_HOME` environment variables properly.
* Execute `./gradlew installDebug` it will build and `.apk` then install it on your connected Android device.

After to add the "ANDROID_NDK_HOME" to environment variables, everything worked well using the latest Android folder from the current master build and the latest jdk 15.0.2. Tested in the builds 6391, master and in a custom one too, all compiled ok.

Thanks for the tutorial :)
 
Happy to help I need to get some updates on the compile process added to source but got a lot on right now.
 
Im not sure whats going on but im setting up compiling again, i tried just build bat like always, it stoopped after wii, didnt compiled windows.
So i changed build.sh all to build.sh 5  to compile only win build, now it worked.Why is that.

Anyway. i compiled android build of course after some battle, they messed up gradle new versions, i still recommend old java version 8 and sdk + ndk :
jdk-8u291-windows-x64
android-ndk-r21e-windows-x86_64
sdk-tools-windows-4333796
Add paths and all... for home and ndk home.
It also helped with Android export in godot.
 
yes, got it yesterday from github.it stops after wii so only psp and wii folders are created but when changing to compile only windows then i can compile windows port.
 
Well we have dropped psp so that could be a reason why but yeah i will look at it when i get a chance.
 
msmalik681 said:
Well we have dropped psp so that could be a reason why but yeah i will look at it when i get a chance.

FYI, while we are officially dropping PSP support, I haven't actually taken any action to remove PSP files yet and AFAIK no one else has either.

DC
 
bWWd

Sometimes at the first compilation, some sdk files may not be downloaded or unpacked properly. In this case I suggest checking the folder "tools/win-sdk/" to confirm if the files are there and unpacked.
I downloaded a fresh copy of the source and was able to compile using the "build.sh all".

Another thing is that now you will need to provide a build number manually, and it needs to be made twice when using the "build.sh all" (at the start and at the end of the compilation process, after the "validating platforms" message). If you are compiling for a single platform only and the "engine/releases/" folder is empty, it will be asked once.
 
hello, the tutorial video seems to be down.

right now i am in the proccess of making another apk using my "hack the punchman apk" method, & i think that the part about the "keys"

storePassword=password
keyPassword=password
keyAlias=alias_name
storeFile=../my-key.jks

is something that i think is very important for commercial games, but somehow i still don't quite get.

i will try to document my method of making the sideloaded APK, (its the only way i made it work, this computer never was able to generate a custom apk using the tutorial)
 
Back
Top Bottom