Re: BotE Android (Linux)
Verfasst: Montag 14. März 2016, 14:06
Das Forum zum Birth of the Empires Projekt
http://www.forum.birth-of-the-empires.de/
http://www.forum.birth-of-the-empires.de/viewtopic.php?f=106&t=2678
If you just want to build then clone the repository and then:Vaexling hat geschrieben:Is there an installation guide for linux? I have Ubuntu 14.04 and would like to build from sources.
The archive in the google drive doesn't needs to be built, it's already built, you can simply run the binary. You need to clone https://bitbucket.org/sarkanyi/bote-libgdx for the sources.Vaexling hat geschrieben:I downloaded the file from the google drive and extracted it. So there's no "gradlew" file. Please give me the link to the repository and I'll give it a try. In the long term, I'd also like to contribute code, but I think I can just edit the source code for that, right?
You're right, I extracted it on a non-linux partition and thus, could not execute the bote file (moved it to home and it works like a charm).The archive in the google drive doesn't needs to be built, it's already built, you can simply run the binary.
DeerHunter wrote a german guide on how to import into eclipse, i'll translate it next week, because on the phone it's tediousVaexling hat geschrieben:You're right, I extracted it on a non-linux partition and thus, could not execute the bote file (moved it to home and it works like a charm).The archive in the google drive doesn't needs to be built, it's already built, you can simply run the binary.
"git clone https://sarkanyi@bitbucket.org/sarkanyi/bote-libgdx.git" also worked for me; after building, I found the .jar file in desktop/build/libs and it worked, too.
I installed eclipse but I don't know how to use import>projects, i.e., I don't know which is the root directory containing project information. Anyway, so far I've only played the c++ version and I will now first get familiar with the new one. Thanks a lot for your effort in keeping this game alive!
edited on May, 30th: completed instructionsVaexling hat geschrieben:I will translate the German version when I go through the steps myself..
Code: Alles auswählen
$ sudo apt-get install gitCode: Alles auswählen
$ cd && git clone https://sarkanyi@bitbucket.org/sarkanyi/bote-libgdx.gitCode: Alles auswählen
$ cd ~/bote-libgdx && git pullCode: Alles auswählen
$ tar -zxvf eclipse-inst-linux64.tar.gzCode: Alles auswählen
$ cd eclipse-installer/ && ./eclipse-instCode: Alles auswählen
export PATH=$PATH:/home/developer/eclipse/java-mars/eclipseCode: Alles auswählen
$ sudo apt-get install lib32stdc++6Code: Alles auswählen
$ unzip android-studio-ide-141.2456560-linux.zip
$ sudo mv android-studio /opt/Code: Alles auswählen
$ cd /opt/android-studio/ && ./studio.shCode: Alles auswählen
export PATH=$PATH:/opt/android-studio/binCode: Alles auswählen
$ eclipseCode: Alles auswählen
$ echo "sdk.dir=/home/developer/Android/Sdk" > ~/bote-libgdx/local.propertiesCode: Alles auswählen
$ cd /opt/android-studio/bin/ && ./studio.shCode: Alles auswählen
$ cd ~/bote-libgdx && ./gradlew generateEclipseDependencies --infoCode: Alles auswählen
$ cd /opt/android-studio/bin/ && ./studio.shCode: Alles auswählen
$ eclipseCode: Alles auswählen
$ cd ~/bote-libgdx && git pullCode: Alles auswählen
remote: Counting objects: 96, done.
[...]
Fast-forward
CHANGES | 4 +
android/AndroidManifest.xml | 4 +-
android/assets/data/de/strings/stringtable.xml | 7 +-
android/assets/data/it/strings/stringtable.xml | 3 +
[...]
core/src/com/blotunga/bote/utils/KryoV.java | 20 ++++
19 files changed, 274 insertions(+), 95 deletions(-)
create mode 100644 core/src/com/blotunga/bote/utils/KryoV.java