Page 1 of 1

compile error on vlc android

Posted: 30 Jul 2012 10:27
by kc.chen
When I run "sh compile.sh", got the error as below:

CXX libspatializer_plugin_la-spatializer.lo
../../../modules/audio_filter/spatializer/spatializer.cpp:37:15: error: new: No such file or directory
../../../modules/audio_filter/spatializer/spatializer.cpp:38: error: 'std::nothrow' has not been declared
../../../modules/audio_filter/spatializer/spatializer.cpp: In function 'int Open(vlc_object_t*)':
../../../modules/audio_filter/spatializer/spatializer.cpp:162: error: 'nothrow' was not declared in this scope
make[4]: *** [libspatializer_plugin_la-spatializer.lo] Error 1
make[4]: Leaving directory `/opt/chenkc/kc-2nd/android/vlc/android/modules/audio_filter'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/opt/chenkc/kc-2nd/android/vlc/android/modules/audio_filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/chenkc/kc-2nd/android/vlc/android/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/chenkc/kc-2nd/android/vlc/android'
make: *** [all] Error 2

Anyone know how to fix? Thanks!!

Re: compile error on vlc android

Posted: 30 Jul 2012 13:12
by edwardw
Use NDKr8 for now.

Re: compile error on vlc android

Posted: 30 Jul 2012 16:37
by hawking2588
Last week I compile vlc android following the androidcompile, step by step, also got the error.
I solve it by adding the following :
1.I add The header path to EXTRA_CFLAGS in compile.sh.
add
EXTRA_CFLAGS="${EXTRA_CFLAGS} -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/include/include -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/include/libs/${ANDROID_ABI}/include"
before
echo "EXTRA_CFLAGS= -g ${EXTRA_CFLAGS}" >> config.mak

Re: compile error on vlc android

Posted: 02 Aug 2012 04:36
by kc.chen
Last week I compile vlc android following the androidcompile, step by step, also got the error.
I solve it by adding the following :
1.I add The header path to EXTRA_CFLAGS in compile.sh.
add
EXTRA_CFLAGS="${EXTRA_CFLAGS} -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/include/include -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/include/libs/${ANDROID_ABI}/include"
before
echo "EXTRA_CFLAGS= -g ${EXTRA_CFLAGS}" >> config.mak
Thanks for your reply, I tried your way and still failed. Now I have to add the header files into vlc/include folder to fix it, although it is not a good solution.

Re: compile error on vlc android

Posted: 02 Aug 2012 04:39
by edwardw
Now I have to add the header files into vlc/include folder to fix it, although it is not a good solution.
Did you not read my response? Use NDKr8 (not NDK r8b).

Re: compile error on vlc android

Posted: 03 Aug 2012 09:08
by kc.chen
Now I have to add the header files into vlc/include folder to fix it, although it is not a good solution.
Did you not read my response? Use NDKr8 (not NDK r8b).
I am using the NDKr8 now.

Re: compile error on vlc android

Posted: 04 Aug 2012 15:58
by hawking2588
the last version of vlc for android can compile with ndkr8b,using the androidcompile tutorial.
I find it is convenient for me to build vlc for android in ubuntu using vmware,Then I read the code in the window 7.
so I git clone git://git.videolan.org/vlc-ports/android.git to rebuild it,and it build successful.
I had not changing anything.
so I guess you can try this again.