Skip to content

Commit cfd56da

Browse files
committed
Merge pull request #13 from ThorstenBux/master
removed all HTML tag because they were rendered ugly on artoolkit.org
2 parents 6a6d5a0 + 16d18ba commit cfd56da

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

4_Android/android_native.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,21 @@ Building native ARToolKit libraries requires a development environment capable o
66

77
*Note: This is by no means a comprehensive guide on how to setup an NDK development environment. If you need assistance in this area, please search online as there are many tutorials and articles covering this topic and it is outside the scope of this user guide.*
88

9-
> Deprecated development tools and methods:<br/>
10-
> Eclipse IDE<br/>
11-
> ADT Plugin for Eclipse<br/>
12-
> Android NDK plugin for Eclipse<br/>
13-
> Cygwin<br/>
9+
> Deprecated development tools and methods:
10+
>
11+
> - Eclipse IDE
12+
> - ADT Plugin for Eclipse
13+
> - Android NDK plugin for Eclipse
14+
> - Cygwin
1415
1516
The following SDKs and tools should be installed and configured correctly on one of the chosen supported development systems.
1617

1718
#####These are required for standard Android JDK development:
1819

1920
- [Standard Edition Java Development Kit][1] 1.7 or greater
20-
- [Android SDK][2]
21-
<p style="margin-left: 2em;">Downloaded with Android Studio IDE to</p>
22-
<p style="margin-left: 4em;">for Mac OS X:</p>
23-
<p style="margin-left: 6em;">default install path: *"/Users/&lt;user&gt;/Library/Android/sdk"*</p>
24-
<p style="margin-left: 4em;">for Windows Desktop:</p>
25-
<p style="margin-left: 6em;">recommended install path: *"C:\Users\\&lt;user&gt;\\Android\\sdk"*</p>
21+
- [Android SDK][2] (Downloaded with Android Studio IDE)
22+
- for Mac OS X: default install path: *"/Users/&lt;user&gt;/Library/Android/sdk"*
23+
- for Windows Desktop: recommended install path: *"C:\Users\\&lt;user&gt;\\Android\\sdk"*
2624
- [Android Studio IDE][3] - version 1.5.x
2725

2826
#####Requirements for building native code with the NDK within or outside of the Android Studio IDE:
@@ -58,7 +56,8 @@ For help with the Eclipse to Android Studio IDE transition, see the document htt
5856
##Building Native Android Libraries
5957
To build using the Android NDK toolchain, placed in the downloaded NDK is a script file, for Mac OS X, named `ndk-build` or, for Windows Desktop, named `ndk-build.cmd.` When Android Studio is used to download and install the NDK, by default, the NDK is installed directly under the Android SDK root folder. Also, by default, the NDK root folder is named "ndk-bundle."
6058

61-
> Note:<br/>
59+
> Note:
60+
>
6261
> Due to the knife-edge roll of NDK version 11 by developers.android.com, it's recommended that ARToolKit Android developers download, install and use NDK version 11 or greater. Not doing so can result in link incompatibilities between your native libraries and their dependency on ARToolKit prebuilt native libraries.
6362
6463
The next step after installing the Android SDK and NDK is to set some environment variables (recommended for both Mac OS X and Windows Desktop development environments). For Windows Desktop, the following can be defined as Windows system environment variables or exported by the Git bash shell's ".bash_profile" startup file.
@@ -85,19 +84,17 @@ These are the ARToolKit binaries built for the various Android ABIs. The Android
8584

8685
To build the Android Studio example app projects that do include native C/C++ source code and to build the project's C/C++ source, after executing the "./build" script file, execute "./build_native_examples.sh", without arguments. When "build_native_examples.sh" script completes without errors, the native Android Studio example projects are populated with the content of the generated *libs* folder. Using an actual example Android Studio project, "ARSimpleNativeProj," the *libs* folder is copied here:
8786

88-
<div style="margin-left: 2em;">
89-
<p>&lt;ARTK SDK or repo root&gt;/<br/>
90-
AndroidStudioProjects/ARSimpleNativeProj/aRSimpleNative/src/main/
91-
</p>
92-
</div>
87+
```
88+
<ARTK SDK or repo root>/AndroidStudioProjects/ARSimpleNativeProj/aRSimpleNative/src/main/
89+
```
9390

9491
Once the native dependencies are built and copied, open an Android Studio example project and build the project's Java source files. If all builds, deploy to an Android simulated device or a *real* development device. Note: the camera doesn't work on simulated devices so it's best to test with *real* devices.
9592

9693
To use the native ARToolKit binaries in your own Android application, you will need to copy the *libs* folder generated by the "build.sh" script to your Android application project folder using the following project offset:
9794

98-
<p style="margin-left: 2em;">
99-
&lt;Android Studio Project&gt;/&lt;module&gt;/src/main
100-
</p>
95+
```
96+
<Android Studio Project>/<module>/src/main
97+
```
10198

10299
---
103100

0 commit comments

Comments
 (0)