Error building LibVlc 2.0.0-RC4

This forum is about all development around libVLC.
pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Error building LibVlc 2.0.0-RC4

Postby pecana » 21 Jun 2016 20:05

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

chouquette
Developer
Developer
Posts: 291
Joined: 15 Apr 2010 00:54

Re: Error building LibVlc 2.0.0-RC4

Postby chouquette » 22 Jun 2016 11:38

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

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 22 Jun 2016 13:15

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?

chouquette
Developer
Developer
Posts: 291
Joined: 15 Apr 2010 00:54

Re: Error building LibVlc 2.0.0-RC4

Postby chouquette » 22 Jun 2016 15:59

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!

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 22 Jun 2016 16:01

Thank you!

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

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 23 Jun 2016 17:58

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.

chouquette
Developer
Developer
Posts: 291
Joined: 15 Apr 2010 00:54

Re: Error building LibVlc 2.0.0-RC4

Postby chouquette » 27 Jun 2016 14:31

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

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 27 Jun 2016 20:04

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

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 28 Jun 2016 13:21

any help ?

Thank you

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Error building LibVlc 2.0.0-RC4

Postby Jean-Baptiste Kempf » 03 Jul 2016 11:59

./compile.sh is enough,
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 04 Jul 2016 08:37

./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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Error building LibVlc 2.0.0-RC4

Postby Jean-Baptiste Kempf » 04 Jul 2016 18:19

Probably resetting the VLC hash to the right value (see compile-libvlc.sh)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 05 Jul 2016 08:26

Probably resetting the VLC hash to the right value (see compile-libvlc.sh)
Hello, where can i see the hash of the desired tag?

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 22 Aug 2016 09:45

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Error building LibVlc 2.0.0-RC4

Postby Jean-Baptiste Kempf » 24 Aug 2016 17:40

It's a bit hard to do.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 26 Aug 2016 14:37

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Error building LibVlc 2.0.0-RC4

Postby Jean-Baptiste Kempf » 29 Aug 2016 11:25

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Error building LibVlc 2.0.0-RC4

Postby pecana » 29 Aug 2016 16:16

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 ???


Return to “Development around libVLC”

Who is online

Users browsing this forum: Google [Bot] and 8 guests