Build VLC for Android project failed on Ubuntu 12.04 -
i want work on vlc android project. first need compile project, follow steps on https://wiki.videolan.org/androidcompile/ when sh compile.sh -a armeabi-v7a
@ end have error:
contribs: make failed error:execution failed task ':libvlc:builddebugarmv5'. > process 'command './compile-libvlc.sh'' finished non-zero exit value 1
i working android studio.
update
so have download ubuntu 12.04 vm , have build vlc android project on it. same error appear told me gettext old , should @ 0.19.1 version or later. quit vm , checked gettext version (0.18.4) on real machine, put gettext update , know 0.19.4 version.
i build project , contribs: make failed
error gone know new error :
failure: build failed exception. * where: build file '/home/edouard/3dsoundlabs/android/android/build.gradle' line: 16 * went wrong: problem occurred evaluating root project 'android'. > failed apply plugin [id 'android-sdk-manager'] > specified sdk directory './3dsoundlabs/android/android-sdk-linux/' in 'local.properties' not found. * try: run --stacktrace option stack trace. run --info or --debug option more log output. build failed
here local.properties , it's seems good, don't understand
local.properties :
sdk.dir=./3dsoundlabs/android/android-sdk-linux/ ndk.dir=./3dsoundlabs/android/android-ndk-r10e/
resolved !!
okay second error problem of path, bad. correction : sdk.dir=../android-sdk-linux/ ndk.dir=../android-ndk-r10e/
so principal error version of gettext old, , didn't found @ begening because log did not tell problem.
you have not mentioned bit version of ubuntu using , vlc androidcomile wiki says
very up-to-date versions of tools.
so went ahead , tested on 64-bit ubuntu 14.04.
here did
installed minimum required packages:
sudo apt-get update sudo apt-get install ant autoconf automake autopoint cmake gawk gcc g++ libtool m4 patch pkg-config libprotobuf-dev libprotobuf-c0-dev protobuf-c-compiler ragel subversion unzip
navigated vlc android directory , run:
./compile.sh *** no android_abi defined architecture: using armv7 inflating: ... ... :wrapper build successful total time: 4.992 secs downloading https://services.gradle.org/distributions/gradle-2.2.1-bin.zip ........................................................................... unzipping /home/<user>/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27/gradle-2.2.1-bin.zip /home/<user>/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27 set executable permissions for: /home/<user>/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27/gradle-2.2.1/bin/gradle ------------------------------------------------------------ gradle 2.2.1 ------------------------------------------------------------ build time: 2014-11-24 09:45:35 utc build number: none revision: 6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a groovy: 2.3.6 ant: apache ant(tm) version 1.9.3 compiled on december 23 2013 jvm: 1.7.0_80 (oracle corporation 24.80-b11) os: linux 3.13.0-53-generic amd64 vlc source not found, cloning cloning 'vlc'... vlc source found configuring lots of configuration , make logs ... make[1]: leaving directory `/<...>/vlc/android/vlc/extras/tools/cmake' touch .cmake ready build vlc , contribs bootstraping note: gnu gettext appears missing or out-of-date. please install or update gnu gettext. check if have cvs, dependency of autopoint. otherwise, not able build source tarball. ============================================================== generating modules/**/makefile.am ..... + autoreconf --install --force --verbose -i m4 autoreconf: entering directory `.' autoreconf: running: true --force .... bin/makefile.am: installing 'autotools/depcomp' autoreconf: leaving directory `.' + rm -f po/makevars.template + rm -f stamp-h* + set +x bootstrapped building contribs generating egl pkg-config file generating glesv2 pkg-config file guessing build system... x86_64-linux-gnu creating configuration file... config.mak bootstrap completed. run "make" start compilation. other targets: * make install same "make" * make prebuilt fetch , install prebuilt binaries * make list list packages * make fetch fetch required source tarballs * make fetch-all fetch source tarballs * make distclean clean , undo bootstrap * make mostlyclean clean except source tarballs * make clean clean * make package prepare prebuilt packages curl -f -l -- "http://downloads.videolan.org/pub/contrib/a52dec-0.7.4.tar.gz" > "../../contrib/tarballs/a52dec-0.7.4.tar.gz" lots of fetching , cloning ... lots of configuration , make logs ... libraries have been installed in: /<...>/vlc/android/vlc/contrib/arm-linux-androideabi/lib if ever happen want link against installed libraries in given directory, libdir, must either use libtool, , specify full pathname of library, or use `-llibdir' flag during linking , @ least 1 of following: - add libdir `ld_library_path' environment variable during execution - add libdir `ld_run_path' environment variable during linking - use `-wl,-rpath -wl,libdir' linker flag - have system administrator add libdir `/etc/ld.so.conf' see operating system documentation shared libraries more information, such ld(1) , ld.so(8) manual pages. ---------------------------------------------------------------------- make[4]: leaving directory `/<...>/vlc/android/vlc/contrib/contrib-android-arm-linux-androideabi/gmp' make[3]: leaving directory `/<...>/vlc/android/vlc/contrib/contrib-android-arm-linux-androideabi/gmp' make[2]: leaving directory `/<...>/vlc/android/vlc/contrib/contrib-android-arm-linux-androideabi/gmp' make[1]: leaving directory `/<...>/vlc/android/vlc/contrib/contrib-android-arm-linux-androideabi/gmp' touch .gmp contribs: make failed
make kept failing, everytime different libs, , had repeat ./compile.sh
command several times. after similar error zvbi
make[4]: leaving directory `/<...>/vlc/android/vlc/contrib/contrib-android-arm-linux-androideabi/zvbi' make[3]: leaving directory `/<...>/vlc/android/vlc/contrib/contrib-android-arm-linux-androideabi/zvbi' make[2]: leaving directory `/<...>/vlc/android/vlc/contrib/contrib-android-arm-linux-androideabi/zvbi' make[1]: leaving directory `/<...>/vlc/android/vlc/contrib/contrib-android-arm-linux-androideabi/zvbi' touch .zvbi contribs: make failed
there different error message time:
mkdir -p -- /<...>/vlc/android/vlc/contrib/arm-linux-androideabi/share/aclocal && cd libgpg-error && autoreconf -fiv -i/<...>/vlc/android/vlc/contrib/arm-linux-androideabi/share/aclocal autoreconf: entering directory `.' autoreconf: running: autopoint --force autopoint: *** am_gnu_gettext_version declaration in configure.ac file requires infrastructure gettext-0.19.3 version older. please upgrade gettext-0.19.3 or newer. autopoint: *** stop. autoreconf: autopoint failed exit status: 1 make: *** [.gpg-error] error 1 contribs: make failed $ gettext --version gettext (gnu gettext-runtime) 0.18.3
as of writing vivid (v0.19.2-2) not have high level of gettext. so, cheated , manually downgraded required gettext version 0.18:
$ grep --include=configure.ac -rn am_gnu_gettext_version . ./vlc/configure.ac:439:am_gnu_gettext_version([0.19.2]) ./vlc/contrib/contrib-android-arm-linux-androideabi/gnutls/configure.ac:148:am_gnu_gettext_version([0.18]) ./vlc/contrib/contrib-android-arm-linux-androideabi/libgpg-error/configure.ac:158:am_gnu_gettext_version([0.19.3])
one more ./compile.sh
, bingo:
[armeabi-v7a] sharedlibrary : libvlcjni.so [armeabi-v7a] install : libvlcjni.so => libs/armeabi-v7a/libvlcjni.so rm jni/../../android-libs/libbinder.c jni/../../android-libs/libui.c jni/../../android-libs/libutils.c jni/../../android-libs/libstagefright.c jni/../../android-libs/libcutils.c jni/../../android-libs/libhardware.c jni/../../android-libs/libmedia.c make: leaving directory `/<...>/vlc/android/libvlc' download https://jcenter.bintray.com/com/android/tools/build/gradle/1.2.1/gradle-1.2.1.pom ... > configuring > 0/3 projects > root project
but hanged there forever (probably, because of conflict in proxy configurations). ps x
revealed:
/bin/sh ./compile.sh java -dorg.gradle.appname=gradlew -classpath /<...>/vlc/android/gradle/wrapper/gradle-wrapper.jar org.gradle.wrapper.gradlewrappermain assemblevanillaarmv7debug
so, decided cancel ctrl+c ./compile.sh
, try import project android studio. launched , chose "open existing android studio project". fetched packages jcenter , bingo (this time real)!
information:gradle tasks [:libvlc:generatedebugsources, :libvlc:generatedebugandroidtestsources, :vlc-android:generatechromearmv5debugsources, :vlc-android:generatechromearmv5debugandroidtestsources] :libvlc:prebuild up-to-date :libvlc:predebugbuild up-to-date :libvlc:checkdebugmanifest :libvlc:preparedebugdependencies :libvlc:compiledebugaidl :libvlc:compiledebugrenderscript :libvlc:generatedebugbuildconfig :libvlc:generatedebugassets up-to-date :libvlc:mergedebugassets :libvlc:generatedebugresvalues :libvlc:generatedebugresources :libvlc:packagedebugresources :libvlc:processdebugmanifest :libvlc:processdebugresources :libvlc:generatedebugsources :libvlc:predebugandroidtestbuild up-to-date :libvlc:preparedebugandroidtestdependencies :libvlc:compiledebugandroidtestaidl :libvlc:compilelint :libvlc:copydebuglint up-to-date :libvlc:mergedebugproguardfiles :libvlc:processdebugjavares up-to-date :libvlc:compiledebugjava note: /<...>/vlc/android/libvlc/src/org/videolan/libvlc/libvlcutil.java uses or overrides deprecated api. note: recompile -xlint:deprecation details. note: /<...>/vlc/android/libvlc/src/org/videolan/libvlc/vlcobject.java uses unchecked or unsafe operations. note: recompile -xlint:unchecked details. :libvlc:packagedebugjar :libvlc:compiledebugndk up-to-date :libvlc:packagedebugjnilibs :libvlc:packagedebuglocaljar up-to-date :libvlc:packagedebugrenderscript up-to-date :libvlc:bundledebug :libvlc:compiledebugsources :libvlc:assembledebug :libvlc:processdebugandroidtestmanifest :libvlc:compiledebugandroidtestrenderscript :libvlc:generatedebugandroidtestbuildconfig :libvlc:generatedebugandroidtestassets up-to-date :libvlc:mergedebugandroidtestassets :libvlc:generatedebugandroidtestresvalues :libvlc:generatedebugandroidtestresources :libvlc:mergedebugandroidtestresources :libvlc:processdebugandroidtestresources :libvlc:generatedebugandroidtestsources :vlc-android:prebuild up-to-date :vlc-android:prechromearmv5debugbuild up-to-date :vlc-android:checkchromearmv5debugmanifest :libvlc:copyreleaselint up-to-date :libvlc:mergereleaseproguardfiles :libvlc:prereleasebuild up-to-date :libvlc:checkreleasemanifest :libvlc:preparereleasedependencies :libvlc:compilereleaseaidl :libvlc:compilereleaserenderscript :libvlc:generatereleasebuildconfig :libvlc:generatereleaseassets up-to-date :libvlc:mergereleaseassets :libvlc:generatereleaseresvalues :libvlc:generatereleaseresources :libvlc:packagereleaseresources :libvlc:processreleasemanifest :libvlc:processreleaseresources :libvlc:generatereleasesources :libvlc:processreleasejavares up-to-date :libvlc:compilereleasejava note: /<...>/vlc/android/libvlc/src/org/videolan/libvlc/libvlcutil.java uses or overrides deprecated api. note: recompile -xlint:deprecation details. note: /<...>/vlc/android/libvlc/src/org/videolan/libvlc/vlcobject.java uses unchecked or unsafe operations. note: recompile -xlint:unchecked details. :libvlc:packagereleasejar :libvlc:compilereleasendk up-to-date :libvlc:packagereleasejnilibs :libvlc:packagereleaselocaljar up-to-date :libvlc:packagereleaserenderscript up-to-date :libvlc:bundlerelease :vlc-android:prechromearmv5releasebuild up-to-date :vlc-android:prechromearmv6fpudebugbuild up-to-date :vlc-android:prechromearmv6fpureleasebuild up-to-date :vlc-android:prechromearmv6nofpudebugbuild up-to-date :vlc-android:prechromearmv6nofpureleasebuild up-to-date :vlc-android:prechromearmv7debugbuild up-to-date :vlc-android:prechromearmv7releasebuild up-to-date :vlc-android:prechromearmv8debugbuild up-to-date :vlc-android:prechromearmv8releasebuild up-to-date :vlc-android:prechromemips64debugbuild up-to-date :vlc-android:prechromemips64releasebuild up-to-date :vlc-android:prechromemipsdebugbuild up-to-date :vlc-android:prechromemipsreleasebuild up-to-date :vlc-android:prechromex86debugbuild up-to-date :vlc-android:prechromex86releasebuild up-to-date :vlc-android:prechromex86_64debugbuild up-to-date :vlc-android:prechromex86_64releasebuild up-to-date :vlc-android:pretvarmv5debugbuild up-to-date :vlc-android:pretvarmv5releasebuild up-to-date :vlc-android:pretvarmv6fpudebugbuild up-to-date :vlc-android:pretvarmv6fpureleasebuild up-to-date :vlc-android:pretvarmv6nofpudebugbuild up-to-date :vlc-android:pretvarmv6nofpureleasebuild up-to-date :vlc-android:pretvarmv7debugbuild up-to-date :vlc-android:pretvarmv7releasebuild up-to-date :vlc-android:pretvarmv8debugbuild up-to-date :vlc-android:pretvarmv8releasebuild up-to-date :vlc-android:pretvmips64debugbuild up-to-date :vlc-android:pretvmips64releasebuild up-to-date :vlc-android:pretvmipsdebugbuild up-to-date :vlc-android:pretvmipsreleasebuild up-to-date :vlc-android:pretvx86debugbuild up-to-date :vlc-android:pretvx86releasebuild up-to-date :vlc-android:pretvx86_64debugbuild up-to-date :vlc-android:pretvx86_64releasebuild up-to-date :vlc-android:prevanillaarmv5debugbuild up-to-date :vlc-android:prevanillaarmv5releasebuild up-to-date :vlc-android:prevanillaarmv6fpudebugbuild up-to-date :vlc-android:prevanillaarmv6fpureleasebuild up-to-date :vlc-android:prevanillaarmv6nofpudebugbuild up-to-date :vlc-android:prevanillaarmv6nofpureleasebuild up-to-date :vlc-android:prevanillaarmv7debugbuild up-to-date :vlc-android:prevanillaarmv7releasebuild up-to-date :vlc-android:prevanillaarmv8debugbuild up-to-date :vlc-android:prevanillaarmv8releasebuild up-to-date :vlc-android:prevanillamips64debugbuild up-to-date :vlc-android:prevanillamips64releasebuild up-to-date :vlc-android:prevanillamipsdebugbuild up-to-date :vlc-android:prevanillamipsreleasebuild up-to-date :vlc-android:prevanillax86debugbuild up-to-date :vlc-android:prevanillax86releasebuild up-to-date :vlc-android:prevanillax86_64debugbuild up-to-date :vlc-android:prevanillax86_64releasebuild up-to-date :vlc-android:prepareandroidlibvlcunspecifiedlibrary :vlc-android:preparecomandroidsupportappcompatv72211library :vlc-android:preparecomandroidsupportcardviewv72211library :vlc-android:preparecomandroidsupportrecyclerviewv72211library :vlc-android:preparecomandroidsupportsupportv42211library :vlc-android:preparechromearmv5debugdependencies :vlc-android:compilechromearmv5debugaidl :vlc-android:compilechromearmv5debugrenderscript :vlc-android:generatechromearmv5debugbuildconfig :vlc-android:generatechromearmv5debugassets up-to-date :vlc-android:mergechromearmv5debugassets :vlc-android:generatechromearmv5debugresvalues :vlc-android:generatechromearmv5debugresources :vlc-android:mergechromearmv5debugresources :vlc-android:processchromearmv5debugmanifest :vlc-android:processchromearmv5debugresources warning: string 'advanced_debugging' has no default translation. warning: string 'beta_warning' has no default translation. warning: string 'enable_iomx' has no default translation. warning: string 'enable_wheel_bar' has no default translation. warning: string 'filebrowser_title' has no default translation. warning: string 'main_prefs_category' has no default translation. warning: string 'new_app' has no default translation. warning: string 'new_app_go' has no default translation. warning: string 'new_app_msg' has no default translation. :vlc-android:generatechromearmv5debugsources :vlc-android:prechromearmv5debugandroidtestbuild up-to-date :vlc-android:preparechromearmv5debugandroidtestdependencies :vlc-android:compilechromearmv5debugandroidtestaidl :vlc-android:processchromearmv5debugandroidtestmanifest :vlc-android:compilechromearmv5debugandroidtestrenderscript :vlc-android:generatechromearmv5debugandroidtestbuildconfig :vlc-android:generatechromearmv5debugandroidtestassets up-to-date :vlc-android:mergechromearmv5debugandroidtestassets :vlc-android:generatechromearmv5debugandroidtestresvalues :vlc-android:generatechromearmv5debugandroidtestresources :vlc-android:mergechromearmv5debugandroidtestresources :vlc-android:processchromearmv5debugandroidtestresources :vlc-android:generatechromearmv5debugandroidtestsources information:build successful information:total time: 22.922 secs information:0 errors information:0 warnings information:see complete output in console
pressed shift+f10 and:
uploading file local path: /<...>/vlc/android/vlc-android/build/outputs/apk/vlc-android-chrome-1.4.0-armv5.apk remote path: /data/local/tmp/org.videolan.vlc.debug installing org.videolan.vlc.debug device shell command: pm install -r "/data/local/tmp/org.videolan.vlc.debug" pkg: /data/local/tmp/org.videolan.vlc.debug success launching application: org.videolan.vlc.debug/org.videolan.vlc.gui.mainactivity. device shell command: start -n "org.videolan.vlc.debug/org.videolan.vlc.gui.mainactivity" -a android.intent.action.main -c android.intent.category.launcher starting: intent { act=android.intent.action.main cat=[android.intent.category.launcher] cmp=org.videolan.vlc.debug/org.videolan.vlc.gui.mainactivity }
i put abundant information , logs here hope helpful others.
Comments
Post a Comment