Build LibVLC Android Demo Application

This forum is about all development around libVLC.
lanamelach
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Nov 2010 13:22

Build LibVLC Android Demo Application

Postby lanamelach » 07 Jun 2016 15:24

I have been trying to build VLC for Android on Ubuntu 16.04 following to this guide:
https://wiki.videolan.org/AndroidCompile

At the "Setup Gradle build system" step when I run compile.sh it fails:
...
:api:prepareReleaseDependencies
:api:compileReleaseAidl
:api:compileReleaseRenderscript
:api:generateReleaseBuildConfig
:api:mergeReleaseShaders
:api:compileReleaseShaders
:api:generateReleaseAssets
:api:mergeReleaseAssets
:api:generateReleaseResValues
:api:generateReleaseResources
:api:mergeReleaseResources
:api:processReleaseManifest
:api:processReleaseResources
:api:generateReleaseSources
:api:incrementalReleaseJavaCompilationSafeguard
:api:compileReleaseJavaWithJavac
:api:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:api:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':api:compileReleaseJavaWithJavac'.
> Could not find tools.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
At /usr/lib/jvm I found these folders:
default-java
java-1.8.0-openjdk-amd64
java-8-openjdk-amd64

It seems like none of them contains tools.jar. What am I missing?
Just in case, I use a clean Ubuntu machine, so there is nothing installed but those things mentioned in the guide and default software.
No milk today

lanamelach
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Nov 2010 13:22

Re: Build LibVLC Android Demo Application

Postby lanamelach » 08 Jun 2016 12:30

Ok, solved it. Now trying to build the LibVlc Android Demo:
https://bitbucket.org/edwardcw/libvlc-android-sample

Compilation fails with the following error:

Code: Select all

/home/yarko/workspace/projects/libvlc-android-demo/libvlc-android-sample/src/com/compdigitec/libvlcandroidsample/VideoActivity.java:26: error: cannot find symbol public class VideoActivity extends Activity implements IVLCVout.Callback, LibVLC.HardwareAccelerationError { ^ symbol: class HardwareAccelerationError location: class LibVLC /home/yarko/workspace/projects/libvlc-android-demo/libvlc-android-sample/src/com/compdigitec/libvlcandroidsample/VideoActivity.java:26: error: VideoActivity is not abstract and does not override abstract method onHardwareAccelerationError(IVLCVout) in Callback public class VideoActivity extends Activity implements IVLCVout.Callback, LibVLC.HardwareAccelerationError { ^ /home/yarko/workspace/projects/libvlc-android-demo/libvlc-android-sample/src/com/compdigitec/libvlcandroidsample/VideoActivity.java:154: error: cannot find symbol libvlc.setOnHardwareAccelerationError(this); ^ symbol: method setOnHardwareAccelerationError(VideoActivity) location: variable libvlc of type LibVLC /home/yarko/workspace/projects/libvlc-android-demo/libvlc-android-sample/src/com/compdigitec/libvlcandroidsample/VideoActivity.java:244: error: method does not override or implement a method from a supertype @Override ^ 4 errors :compileDebugJavaWithJavac FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED
No milk today


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 15 guests