compile error on vlc android

VLC for Android and Chrome OS specific usage questions
kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

compile error on vlc android

Postby kc.chen » 30 Jul 2012 10:27

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

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: compile error on vlc android

Postby edwardw » 30 Jul 2012 13:12

Use NDKr8 for now.

hawking2588
New Cone
New Cone
Posts: 6
Joined: 30 Jul 2012 14:05

Re: compile error on vlc android

Postby hawking2588 » 30 Jul 2012 16:37

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

kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

Re: compile error on vlc android

Postby kc.chen » 02 Aug 2012 04:36

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.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: compile error on vlc android

Postby edwardw » 02 Aug 2012 04:39

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).

kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

Re: compile error on vlc android

Postby kc.chen » 03 Aug 2012 09:08

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.

hawking2588
New Cone
New Cone
Posts: 6
Joined: 30 Jul 2012 14:05

Re: compile error on vlc android

Postby hawking2588 » 04 Aug 2012 15:58

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.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 60 guests