Android compile issue

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

Android compile issue

Postby pecana » 28 Oct 2016 17:57

Hello,

i rey to clone again the android git to build the updated libvlc but i get this error:

Code: Select all

make: Leaving directory `/home/pecana/Android/cloni/VLC/vlc-android/libvlc' Android NDK: WARNING:private_libs/Android.mk:anw.10: non-system libraries in linker flags: -lhardware Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:private_libs/Android.mk:anw.13: non-system libraries in linker flags: -lhardware Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:private_libs/Android.mk:anw.14: non-system libraries in linker flags: -lhardware Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:private_libs/Android.mk:anw.18: non-system libraries in linker flags: -lhardware Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:private_libs/Android.mk:anw.21: non-system libraries in linker flags: -lhardware Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:private_libs/Android.mk:iomx.10: non-system libraries in linker flags: -lgcc -lstagefright -lmedia -lutils -lbinder -lcutils -lui Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:private_libs/Android.mk:iomx.13: non-system libraries in linker flags: -lgcc -lstagefright -lmedia -lutils -lbinder -lcutils -lui Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:private_libs/Android.mk:iomx.14: non-system libraries in linker flags: -lgcc -lstagefright -lmedia -lutils -lbinder -lcutils -lui Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module make: Entering directory `/home/pecana/Android/cloni/VLC/vlc-android/libvlc' [armeabi-v7a] Compile thumb : anw.10 <= nativewindowpriv.c /bin/sh: 1: Syntax error: "(" unexpected (expecting "done") rm -f private_libs/../../android-libs/libstagefright.c && touch private_libs/../../android-libs/libstagefright.c clang private_libs/../../android-libs/libstagefright.c -shared -o private_libs/../../android-libs/arm-linux-androideabi/libstagefright.so /bin/sh: 1: Syntax error: "(" unexpected (expecting "done") rm -f private_libs/../../android-libs/libmedia.c && touch private_libs/../../android-libs/libmedia.c clang private_libs/../../android-libs/libmedia.c -shared -o private_libs/../../android-libs/arm-linux-androideabi/libmedia.so /bin/sh: 1: Syntax error: "(" unexpected (expecting "done") rm -f private_libs/../../android-libs/libutils.c && touch private_libs/../../android-libs/libutils.c clang private_libs/../../android-libs/libutils.c -shared -o private_libs/../../android-libs/arm-linux-androideabi/libutils.so /bin/sh: 1: Syntax error: "(" unexpected (expecting "done") rm -f private_libs/../../android-libs/libcutils.c && touch private_libs/../../android-libs/libcutils.c clang private_libs/../../android-libs/libcutils.c -shared -o private_libs/../../android-libs/arm-linux-androideabi/libcutils.so /bin/sh: 1: Syntax error: "(" unexpected (expecting "done") rm -f private_libs/../../android-libs/libbinder.c && touch private_libs/../../android-libs/libbinder.c clang private_libs/../../android-libs/libbinder.c -shared -o private_libs/../../android-libs/arm-linux-androideabi/libbinder.so /bin/sh: 1: Syntax error: "(" unexpected (expecting "done") rm -f private_libs/../../android-libs/libui.c && touch private_libs/../../android-libs/libui.c clang private_libs/../../android-libs/libui.c -shared -o private_libs/../../android-libs/arm-linux-androideabi/libui.so /bin/sh: 1: Syntax error: "(" unexpected (expecting "done") rm -f private_libs/../../android-libs/libhardware.c && touch private_libs/../../android-libs/libhardware.c clang private_libs/../../android-libs/libhardware.c -shared -o private_libs/../../android-libs/arm-linux-androideabi/libhardware.so [armeabi-v7a] SharedLibrary : libanw.10.so /home/pecana/Android/cloni/VLC/vlc-android/vlc/modules/video_output/android/nativewindowpriv.c:122: error: undefined reference to 'hw_get_module' clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [private_libs/obj/local/armeabi-v7a/libanw.10.so] Error 1 rm private_libs/../../android-libs/libmedia.c private_libs/../../android-libs/libstagefright.c private_libs/../../android-libs/libhardware.c private_libs/../../android-libs/libbinder.c private_libs/../../android-libs/libcutils.c private_libs/../../android-libs/libui.c private_libs/../../android-libs/libutils.c make: Leaving directory `/home/pecana/Android/cloni/VLC/vlc-android/libvlc' ndk-build failed for private libs
What is wrong?
I am usind ndk 13

Thank you

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

Re: Android compile issue

Postby pecana » 31 Oct 2016 09:09

No one can help ? :-(

Yourname
New Cone
New Cone
Posts: 6
Joined: 15 Oct 2016 00:42

Re: Android compile issue

Postby Yourname » 31 Oct 2016 15:46


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

Re: Android compile issue

Postby pecana » 31 Oct 2016 16:44

Thank you for the link, how can i commit this ?

Code: Select all

try commit from October 7th (fdb66fbfbbc2fe44596a9b0fcd1f75fd91e58c6a)

Yourname
New Cone
New Cone
Posts: 6
Joined: 15 Oct 2016 00:42

Re: Android compile issue

Postby Yourname » 31 Oct 2016 17:23

git reset --hard fdb66fbfbbc2fe44596a9b0fcd1f75fd91e58c6a

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

Re: Android compile issue

Postby pecana » 31 Oct 2016 17:51

git reset --hard fdb66fbfbbc2fe44596a9b0fcd1f75fd91e58c6a
Thank you !

I will give it a try!

rraayy1111
New Cone
New Cone
Posts: 6
Joined: 26 Oct 2016 13:57

Re: Android compile issue

Postby rraayy1111 » 01 Nov 2016 06:28

still have problem using fdb66fbfbbc2fe44596a9b0fcd1f75fd91e58c6a

Code: Select all

[armeabi-v7a] SharedLibrary : libvlc.so ../../modules/arm_neon/volume.c:49: error: undefined reference to 'vlc_CPU' ../../modules/audio_filter/channel_mixer/simple_neon.h:54: error: undefined reference to 'vlc_CPU' ../../modules/audio_filter/channel_mixer/simple_neon.h:56: error: undefined reference to 'vlc_CPU' ../../modules/audio_filter/channel_mixer/simple_neon.h:50: error: undefined reference to 'vlc_CPU' ../../modules/lua/vlc.c:219: error: undefined reference to 'config_GetLibDir' ../../modules/lua/vlc.c:229: error: undefined reference to 'config_GetDataDir' ../../modules/lua/libs/configuration.c:110: error: undefined reference to 'config_GetDataDir' ../../src/misc/threads.c:89: error: undefined reference to 'vlc_addr_timedwait' ../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal' ../../src/misc/threads.c:154: error: undefined reference to 'vlc_addr_broadcast' ../../src/misc/threads.c:173: error: undefined reference to 'vlc_addr_wait' ../../src/misc/threads.c:197: error: undefined reference to 'vlc_addr_timedwait' ../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal' ../../src/misc/threads.c:154: error: undefined reference to 'vlc_addr_broadcast' ../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal' ../../src/misc/messages.c:121: error: undefined reference to 'vlc_thread_id' ../../src/android/thread.c:85: error: undefined reference to 'vlc_thread_id' ../../src/android/thread.c:321: error: undefined reference to 'vlc_addr_broadcast' clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [jni/obj/local/armeabi-v7a/libvlc.so] Error 1

dreamsong
New Cone
New Cone
Posts: 8
Joined: 27 Oct 2016 08:57

Re: Android compile issue

Postby dreamsong » 03 Nov 2016 08:13

Can not found "vlc_CPU" ,what is wrong with the latest Vlc-android?
How to solve the compile error?

armeabi-v7a] SharedLibrary : libvlc.so
../../modules/arm_neon/volume.c:49: error: undefined reference to 'vlc_CPU'
../../modules/audio_filter/channel_mixer/simple_neon.h:54: error: undefined reference to 'vlc_CPU'
../../modules/audio_filter/channel_mixer/simple_neon.h:56: error: undefined reference to 'vlc_CPU'
../../modules/audio_filter/channel_mixer/simple_neon.h:50: error: undefined reference to 'vlc_CPU'
../../modules/lua/vlc.c:219: error: undefined reference to 'config_GetLibDir'
../../modules/lua/vlc.c:229: error: undefined reference to 'config_GetDataDir'
../../modules/lua/libs/configuration.c:110: error: undefined reference to 'config_GetDataDir'
../../src/misc/threads.c:89: error: undefined reference to 'vlc_addr_timedwait'
../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal'
../../src/misc/threads.c:154: error: undefined reference to 'vlc_addr_broadcast'
../../src/misc/threads.c:173: error: undefined reference to 'vlc_addr_wait'
../../src/misc/threads.c:197: error: undefined reference to 'vlc_addr_timedwait'
../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal'
../../src/misc/threads.c:154: error: undefined reference to 'vlc_addr_broadcast'
../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal'
../../src/misc/messages.c:121: error: undefined reference to 'vlc_thread_id'
../../src/android/thread.c:85: error: undefined reference to 'vlc_thread_id'
../../src/android/thread.c:321: error: undefined reference to 'vlc_addr_broadcast'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [jni/obj/local/armeabi-v7a/libvlc.so] Error 1

dreamsong
New Cone
New Cone
Posts: 8
Joined: 27 Oct 2016 08:57

Android compile issue(vlc_CPU)

Postby dreamsong » 03 Nov 2016 08:18

How to solve the below compile error?(NDK13,the latest vlc-android source code )

armeabi-v7a] SharedLibrary : libvlc.so
../../modules/arm_neon/volume.c:49: error: undefined reference to 'vlc_CPU'
../../modules/audio_filter/channel_mixer/simple_neon.h:54: error: undefined reference to 'vlc_CPU'
../../modules/audio_filter/channel_mixer/simple_neon.h:56: error: undefined reference to 'vlc_CPU'
../../modules/audio_filter/channel_mixer/simple_neon.h:50: error: undefined reference to 'vlc_CPU'
../../modules/lua/vlc.c:219: error: undefined reference to 'config_GetLibDir'
../../modules/lua/vlc.c:229: error: undefined reference to 'config_GetDataDir'
../../modules/lua/libs/configuration.c:110: error: undefined reference to 'config_GetDataDir'
../../src/misc/threads.c:89: error: undefined reference to 'vlc_addr_timedwait'
../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal'
../../src/misc/threads.c:154: error: undefined reference to 'vlc_addr_broadcast'
../../src/misc/threads.c:173: error: undefined reference to 'vlc_addr_wait'
../../src/misc/threads.c:197: error: undefined reference to 'vlc_addr_timedwait'
../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal'
../../src/misc/threads.c:154: error: undefined reference to 'vlc_addr_broadcast'
../../src/misc/threads.c:148: error: undefined reference to 'vlc_addr_signal'
../../src/misc/messages.c:121: error: undefined reference to 'vlc_thread_id'
../../src/android/thread.c:85: error: undefined reference to 'vlc_thread_id'
../../src/android/thread.c:321: error: undefined reference to 'vlc_addr_broadcast'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [jni/obj/local/armeabi-v7a/libvlc.so] Error 1


Return to “Development around libVLC”

Who is online

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