Re: BotE Android (Linux)
Verfasst: Montag 14. März 2016, 14:06
Das Forum zum Birth of the Empires Projekt
http://birth-of-the-empires.de/phpBB3/
http://birth-of-the-empires.de/phpBB3/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 git
Code: Alles auswählen
$ cd && git clone https://sarkanyi@bitbucket.org/sarkanyi/bote-libgdx.git
Code: Alles auswählen
$ cd ~/bote-libgdx && git pull
Code: Alles auswählen
$ tar -zxvf eclipse-inst-linux64.tar.gz
Code: Alles auswählen
$ cd eclipse-installer/ && ./eclipse-inst
Code: Alles auswählen
export PATH=$PATH:/home/developer/eclipse/java-mars/eclipse
Code: Alles auswählen
$ sudo apt-get install lib32stdc++6
Code: 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.sh
Code: Alles auswählen
export PATH=$PATH:/opt/android-studio/bin
Code: Alles auswählen
$ eclipse
Code: Alles auswählen
$ echo "sdk.dir=/home/developer/Android/Sdk" > ~/bote-libgdx/local.properties
Code: Alles auswählen
$ cd /opt/android-studio/bin/ && ./studio.sh
Code: Alles auswählen
$ cd ~/bote-libgdx && ./gradlew generateEclipseDependencies --info
Code: Alles auswählen
$ cd /opt/android-studio/bin/ && ./studio.sh
Code: Alles auswählen
$ eclipse
Code: Alles auswählen
$ cd ~/bote-libgdx && git pull
Code: 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