mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
iOS build: make the README a bit more useful
Still not all that useful, though. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
55b6eaae0b
commit
b5c30971b6
1 changed files with 17 additions and 26 deletions
|
@ -1,41 +1,32 @@
|
||||||
Tool repo to crosscompile subsurface to android-arm
|
Tool repo to crosscompile subsurface for iOS
|
||||||
---------------------------------------------------
|
--------------------------------------------
|
||||||
|
|
||||||
Dependencies:
|
Dependencies:
|
||||||
|
|
||||||
1. android_sdk, android_ndk and Qt5.5. See step 0.
|
0. This only works on a Mac
|
||||||
|
1. XCode with iOS SDK and Qt5.5. See below
|
||||||
2. cmake
|
2. cmake
|
||||||
3. ant
|
3. ant
|
||||||
4. Java JDK
|
4. dependencies of libdivecomputer and subsurface -
|
||||||
5. working adb is recommended
|
|
||||||
6. dependencies of libdivecomputer and subsurface -
|
|
||||||
visit http://subsurface.hohndel.org/documentation/building/
|
visit http://subsurface.hohndel.org/documentation/building/
|
||||||
|
|
||||||
Steps to install:
|
Steps to install:
|
||||||
|
|
||||||
Step 0.
|
|
||||||
Grab..
|
|
||||||
Android ndk from: http://developer.android.com/tools/sdk/ndk/index.html
|
|
||||||
Android sdk from: http://developer.android.com/sdk/index.html#download
|
|
||||||
And QT for android from: http://qt-project.org/downloads
|
|
||||||
|
|
||||||
Step 1.
|
Step 1.
|
||||||
Extract and install these into known directories.
|
Install current XCode with the iOS SDK
|
||||||
Have a look in the top of build.sh for where the cross build tool expects
|
And QT for android from: http://qt-project.org/downloads, including the iOS bits
|
||||||
them. By default thats is: ../../../android-ndk-r9d ../../../android-sdk-linux
|
|
||||||
and ../../../Qt/5.5
|
|
||||||
|
|
||||||
Step 2.
|
Step 2.
|
||||||
Run bash build.sh in the terminal. By default it builds for arm but you
|
Extract and install these into known directories.
|
||||||
can pass x86 as first arg to build.sh to have it build for x86. Nice when
|
Have a look in the top of build.sh for where the cross build tool expects
|
||||||
debugging in a fast emulator.
|
them. By default thats is: ../../../Qt/5.5
|
||||||
|
|
||||||
|
Step 2.
|
||||||
|
Run bash build.sh in the terminal.
|
||||||
The script will download and build the whole dependency chain.
|
The script will download and build the whole dependency chain.
|
||||||
|
|
||||||
After this, subsurface will be built for android.
|
After this, Subsurface-mobile will be built for iOS.
|
||||||
|
|
||||||
The output folder is subsurface-build-arm/android_build and your newly
|
The output folder is subsurface-build-ios and your newly created package shows
|
||||||
created apk shows up as:
|
up as:
|
||||||
subsurface-build-arm/android_build/bin/QtApp-debug.apk
|
subsurface-build-ios/.... something
|
||||||
|
|
||||||
Where the x86 apk shows up when built for x86 is left as a exercise for the
|
|
||||||
reader.
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue