forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 4
Home
savegame edited this page Nov 22, 2018
·
7 revisions
- Clone git repository with right branch
[host]$ git clone -b 2.1_sailfish_sdl2 git@github.com:savegame/godot.git godot_2.1_sailfish- Install some dependencies inside mersdk build target, than build our export templates
# login to **mersdk**
[host]$ ssh mersdk@localhost -i /path/to/SailfishOS_SDK/vmshare/ssh/private_keys/engine/mersdkthan inside mersdk install dependencies
# for arm devices
[mersdk]$ sb2 -t SailfishOS-2.2.0.29-armv7hl -R zypper in SDL2-devel glib2-devel libaudioresource-devel pulseaudio-devel mesa-llvmpipe-libEGL-devel mesa-llvmpipe-libGLESv2-devel scons
# for x86 devices, like Jolla Tablet, or SailfishOS Emulator
[mersdk]$ sb2 -t SailfishOS-2.2.0.29-i486 -R zypper in SDL2-devel glib2-devel libaudioresource-devel pulseaudio-devel mesa-llvmpipe-libEGL-devel mesa-llvmpipe-libGLESv2-devel sconsthan just build export template
[mersdk]$ cd /home/share/path/to/godot_2.1_sailfish # it may be /home/src1/path/to/godot_2.1_sailfish
[mersdk]$ sb2 -t SailfishOS-2.2.0.29-armv7hl scons platform=sailfish tools=no arch=arm target=release
[mersdk]$ sb2 -t SailfishOS-2.2.0.29-i486 scons platform=sailfish tools=no arch=x86 target=releaseafter that, in bin folder you can get 2 export templates
godot.sailfish.opt.arm
godot.sailfish.opt.x86
that templates can be used in official build of Godot Engine.
- push Export button
- in Project Export Settings choose Target tab
- in Export to Platform list choose Linux X11
- in Options
- Disable Debugging Enabled checkbox
- Choose Custom binary for Release
* godot.sailfish.opt.arm - for export your project to arm platform
* godot.sailfish.opt.x86 - for export your project to x86 platform
- In Resources choose pack into executable (or what you want, but i test only pack into executable option)
- Disable 64 Bits checkbox
- Push to Export.. button and set name for your executable, something like harbour-my-awesome-game.
Now harbour-my-awesome-game binary can be run on target platform, in your phone or tablet 😉 If you whant public your game to OpenRepos, you need create .spec file, and pack your game to RPM. Later i public instructions how to do this, with template spec ... maby later, i make it inside Export Platfrom for Godot for SailfishOS
Export templates: https://github.com/savegame/godot-sailfish/releases/tag/v0.1
I am wait your games in SailfishOS! Good luck!