Page 1 of 1

Error building LibVlc 2.0.0-RC4

Posted: 21 Jun 2016 20:05
by pecana
Hello, i successfuly build LibVlc many time with different version but I am not able to build 2.0.0-RC4 here the error I get:

Code: Select all

[armeabi-v7a] SharedLibrary : libanw.10.so [armeabi-v7a] Install : libanw.10.so => libs/armeabi-v7a/libanw.10.so [armeabi-v7a] Compile thumb : anw.13 <= nativewindowpriv.c [armeabi-v7a] SharedLibrary : libanw.13.so [armeabi-v7a] Install : libanw.13.so => libs/armeabi-v7a/libanw.13.so [armeabi-v7a] Compile thumb : anw.14 <= nativewindowpriv.c [armeabi-v7a] SharedLibrary : libanw.14.so [armeabi-v7a] Install : libanw.14.so => libs/armeabi-v7a/libanw.14.so [armeabi-v7a] Compile thumb : anw.18 <= nativewindowpriv.c [armeabi-v7a] SharedLibrary : libanw.18.so [armeabi-v7a] Install : libanw.18.so => libs/armeabi-v7a/libanw.18.so [armeabi-v7a] Compile thumb : anw.21 <= nativewindowpriv.c [armeabi-v7a] SharedLibrary : libanw.21.so [armeabi-v7a] Install : libanw.21.so => libs/armeabi-v7a/libanw.21.so [armeabi-v7a] SharedLibrary : libcompat.7.so [armeabi-v7a] Install : libcompat.7.so => libs/armeabi-v7a/libcompat.7.so [armeabi-v7a] Compile++ thumb: iomx.10 <= iomx.cpp [armeabi-v7a] StaticLibrary : libstdc++.a [armeabi-v7a] SharedLibrary : libiomx.10.so [armeabi-v7a] Install : libiomx.10.so => libs/armeabi-v7a/libiomx.10.so [armeabi-v7a] Compile++ thumb: iomx.13 <= iomx.cpp [armeabi-v7a] SharedLibrary : libiomx.13.so [armeabi-v7a] Install : libiomx.13.so => libs/armeabi-v7a/libiomx.13.so [armeabi-v7a] Compile++ thumb: iomx.14 <= iomx.cpp [armeabi-v7a] SharedLibrary : libiomx.14.so [armeabi-v7a] Install : libiomx.14.so => libs/armeabi-v7a/libiomx.14.so [armeabi-v7a] Compile thumb : vlc <= libvlcjni-modules.c [armeabi-v7a] Compile thumb : vlc <= libvlcjni-symbols.c [armeabi-v7a] Compile thumb : demuxdump2_plugin <= demuxdump2.c In file included from jni/modules/demuxdump2.c:25:0: /home/pecana/Android/cloni/vlc-android-sdk/vlc-android/vlc/include/vlc_common.h: In function 'vlc_memalign': /home/pecana/Android/cloni/vlc-android-sdk/vlc-android/vlc/include/vlc_common.h:866:5: warning: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration] if (unlikely(posix_memalign(&base, align, size))) ^ jni/modules/demuxdump2.c: In function 'Open': jni/modules/demuxdump2.c:117:17: error: 'demux_t' has no member named 'b_force' if (!p_demux->b_force) ^ /home/pecana/Android/Ndk/build/core/build-binary.mk:460: set di istruzioni per l'obiettivo "jni/obj/local/armeabi-v7a/objs/demuxdump2_plugin/modules/demuxdump2.o" non riuscito make: *** [jni/obj/local/armeabi-v7a/objs/demuxdump2_plugin/modules/demuxdump2.o] Errore 1 rm jni/../../android-libs/libbinder.c jni/../../android-libs/libui.c jni/../../android-libs/libstagefright.c jni/../../android-libs/libutils.c jni/../../android-libs/libcutils.c jni/../../android-libs/libhardware.c jni/../../android-libs/libmedia.c make: uscita dalla directory "/home/pecana/Android/cloni/vlc-android-sdk/vlc-android/libvlc" ndk-build failed :compileVlcArmv7a FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileVlcArmv7a'. > Process 'command './compile.sh'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 57 mins 13.763 secs
Any help?

Thank you

Re: Error building LibVlc 2.0.0-RC4

Posted: 22 Jun 2016 11:38
by chouquette
Hi, you are probably using the master branch of VLC instead of using the tested hash (HASH variable in the build script)
You need to ensure your VLC checkout sticks that HASH, or switch to the master branch of vlc-android, which will compile with the version of VLC you're trying to use

Re: Error building LibVlc 2.0.0-RC4

Posted: 22 Jun 2016 13:15
by pecana
Hi, you are probably using the master branch of VLC instead of using the tested hash (HASH variable in the build script)
You need to ensure your VLC checkout sticks that HASH, or switch to the master branch of vlc-android, which will compile with the version of VLC you're trying to use
Hello and thank you, what do you mean exactly ?
Where can I check it?

Re: Error building LibVlc 2.0.0-RC4

Posted: 22 Jun 2016 15:59
by chouquette
The VLC build script will clone vlc.git and switch to a specific revision, for some reasons, it seems your revision isn't the correct one.

In your vlc-android folder, you should find a vlc folder, which is the vlc.git checkout.
Go in that folder and run `git checkout 848f58d` so you use the expected version, and you should be all set!

Re: Error building LibVlc 2.0.0-RC4

Posted: 22 Jun 2016 16:01
by pecana
Thank you!

I will give it a try and I'll let you know!

Re: Error building LibVlc 2.0.0-RC4

Posted: 23 Jun 2016 17:58
by pecana
The VLC build script will clone vlc.git and switch to a specific revision, for some reasons, it seems your revision isn't the correct one.

In your vlc-android folder, you should find a vlc folder, which is the vlc.git checkout.
Go in that folder and run `git checkout 848f58d` so you use the expected version, and you should be all set!
Hello trying your command i get the following error:

error: pathspec '848f58d' did not match any file(s) known to git.

Re: Error building LibVlc 2.0.0-RC4

Posted: 27 Jun 2016 14:31
by chouquette
You might need to git fetch before, or you were in the wrong folder.

Beware: the TESTED_HASH refers to a vlc.git commit, that commit doesn't exist in vlc-android.git

Re: Error building LibVlc 2.0.0-RC4

Posted: 27 Jun 2016 20:04
by pecana
You might need to git fetch before, or you were in the wrong folder.

Beware: the TESTED_HASH refers to a vlc.git commit, that commit doesn't exist in vlc-android.git
I just tryied with 2.0.1 but same error :

Code: Select all

[code][armeabi-v7a] Compile thumb : demuxdump2_plugin <= demuxdump2.c In file included from jni/modules/demuxdump2.c:25:0: /home/pecana/Android/cloni/vlc-android-sdk/vlc-android/vlc/include/vlc_common.h: In function 'vlc_memalign': /home/pecana/Android/cloni/vlc-android-sdk/vlc-android/vlc/include/vlc_common.h:866:5: warning: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration] if (unlikely(posix_memalign(&base, align, size))) ^ jni/modules/demuxdump2.c: In function 'Open': jni/modules/demuxdump2.c:117:17: error: 'demux_t' has no member named 'b_force' if (!p_demux->b_force) ^ /home/pecana/Android/Ndk/build/core/build-binary.mk:460: set di istruzioni per l'obiettivo "jni/obj/local/armeabi-v7a/objs/demuxdump2_plugin/modules/demuxdump2.o" non riuscito make: *** [jni/obj/local/armeabi-v7a/objs/demuxdump2_plugin/modules/demuxdump2.o] Errore 1 rm jni/../../android-libs/libbinder.c jni/../../android-libs/libui.c jni/../../android-libs/libstagefright.c jni/../../android-libs/libutils.c jni/../../android-libs/libcutils.c jni/../../android-libs/libhardware.c jni/../../android-libs/libmedia.c make: uscita dalla directory "/home/pecana/Android/cloni/vlc-android-sdk/vlc-android/libvlc" ndk-build failed :compileVlcArmv7a FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileVlcArmv7a'. > Process 'command './compile.sh'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 56 mins 12.415 secs
[/code]

Did I made something wrong?
I follow this steps:
- git clone https://code.videolan.org/videolan/vlc-android.git
- cd vlc-android
- git tag and I get these:

Code: Select all

0.0.1 0.0.10 0.0.11 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 0.0.8 0.0.9 0.1.0 0.1.1 0.1.2 0.1.3 0.9.0 0.9.1 0.9.10 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.7.1 0.9.8 0.9.9 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.99 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.90 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.9.0 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0-RC1 2.0.0-RC2 2.0.0-RC3 2.0.0-RC4 2.0.1
- git checkout 2.0.1
then
./compile.sh -a armeabi-v7a release-l

Is this corrrect?

Thank you

Re: Error building LibVlc 2.0.0-RC4

Posted: 28 Jun 2016 13:21
by pecana
any help ?

Thank you

Re: Error building LibVlc 2.0.0-RC4

Posted: 03 Jul 2016 11:59
by Jean-Baptiste Kempf
./compile.sh is enough,

Re: Error building LibVlc 2.0.0-RC4

Posted: 04 Jul 2016 08:37
by pecana
./compile.sh is enough,
Hello, if i made a git clone and then compile everything works, otherwise if I try to checkout on of the tags it does not work, is there something I miss after checking out a tag?

Re: Error building LibVlc 2.0.0-RC4

Posted: 04 Jul 2016 18:19
by Jean-Baptiste Kempf
Probably resetting the VLC hash to the right value (see compile-libvlc.sh)

Re: Error building LibVlc 2.0.0-RC4

Posted: 05 Jul 2016 08:26
by pecana
Probably resetting the VLC hash to the right value (see compile-libvlc.sh)
Hello, where can i see the hash of the desired tag?

Re: Error building LibVlc 2.0.0-RC4

Posted: 22 Aug 2016 09:45
by pecana
Hello, another question, how can i enable-sout?
Do I need to do it on the sh script by removing --disable-sout? I tried in this way but libvlc won't compile

Re: Error building LibVlc 2.0.0-RC4

Posted: 24 Aug 2016 17:40
by Jean-Baptiste Kempf
It's a bit hard to do.

Re: Error building LibVlc 2.0.0-RC4

Posted: 26 Aug 2016 14:37
by pecana
It's a bit hard to do.
Where can I find how to do it?
It will be really usefull to save the current playing media, or is there another way to do it?

Re: Error building LibVlc 2.0.0-RC4

Posted: 29 Aug 2016 11:25
by Jean-Baptiste Kempf
It's a bit hard to do.
Where can I find how to do it?
It will be really usefull to save the current playing media, or is there another way to do it?
Enable it for contribs and for VLC. Then, fix the linking flags for that. Then map the calls in JNI. And use it in Java.

Re: Error building LibVlc 2.0.0-RC4

Posted: 29 Aug 2016 16:16
by pecana
It's a bit hard to do.
Where can I find how to do it?
It will be really usefull to save the current playing media, or is there another way to do it?
Enable it for contribs and for VLC. Then, fix the linking flags for that. Then map the calls in JNI. And use it in Java.
That sounds complicated :-(
No one tried this before ???