Skip to content

Commit 3eb13ae

Browse files
ford-prefectsdroege
authored andcommitted
android: Use full path for gst android root path
This is needed in case we want to use any of the files from the unpacked GStreamer for Android package in LOCAL_SRC_FILES (such as for prebuilt libraries).
1 parent 2124440 commit 3eb13ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ https://coaxion.net/blog/2014/10/gstreamer-remote-controlled-testing-application
1010

1111
* Open the android-launch/ directory in Android Studio
1212
* If you downloaded the GStreamer for Android binary, set
13-
`gstAndroidRoot = /path/to/gst-android-binaries` in `~/.gradle/gradle.properties`
13+
`gstAndroidRoot = /path/to/gst-android-binaries` in `~/.gradle/gradle.properties` -- this must be an absolute path
1414
* If you built GStreamer for Android using Cerbero, you're good to go
15-
* Set up the NDK in Android Studio (under Project Structure, or set ANDROID_NDK_HOME in the environment, or ndk.dir in `local.properties`
15+
* Set up the NDK in Android Studio (under Project Structure, or set `ANDROID_NDK_HOME` in the environment, or ndk.dir in `local.properties`
1616
* Build the project in Android Studio like any other project

android-launch/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def getNdkCommandLine(ndkRoot, target) {
77
if (project.hasProperty('gstAndroidRoot'))
88
gstRoot = project.gstAndroidRoot
99
else
10-
gstRoot = '~/cerbero/dist/android_arm'
10+
gstRoot = System.properties['user.home'] + '/cerbero/dist/android_arm'
1111

1212
if (ndkRoot == null)
1313
throw new GradleException('NDK not configured')

0 commit comments

Comments
 (0)