Problems With Compiling VLC on Android
Posted: 30 Nov 2012 23:13
I'm writing an android app which needs a media player (over rtsp) and after a lot of research I found that the best way to this is to compile the VLC app and start from there.
I've been trying to compile VLC on android. I followed "wiki.videolan.org/AndroidCompile" but didn't succeed.
Here is what I've done:
I'm using Kubuntu 12.10 and Eclipse juno (maybe irrelevant at this point)
All the packages mentioned in the AndroidCompile page are installed.
I don't see any error messages.
I uploaded the output of compile.sh here:
https://www.dropbox.com/s/s2867xttwu2o3 ... output.txt
The AndroidCompile page says that by now I should have an autogenerated debug apk in the bin/ folder. There is no bin/ folder in ~/workspace/android/ and there is no *.apk file *anywhere*. I thought if it has compiled correctly at least there should be some *.so files:
one more thing, in ~/workspace/android/ there is a script named gen-env.sh that supposedly generates a file named env.txt into vlc-android/assets/ and this script gets called by the make file. But there is no env.txt and in the output of compile.sh there is no mention of gen-env.sh
Anyway, I imported the vlc-android project into eclipse. Running it on its own of course doesn't work first I get an exception which can be fixed if I manually run gen-env.sh but then I get an error saying it couldn't load libvlcjni
So I tried to compile the native code.
I checked the Android.mk file and turns out VLC_SRC_DIR is not set. So:
I don't know what to do next. Am I doing something wrong? because these things haven't been mentioned in AndroidCompile. It just says run "sh compile.sh", import project into eclipse then run & enjoy!
I'd appreciate any help... I've been spending hours trying to get this to work.
Thanks
I've been trying to compile VLC on android. I followed "wiki.videolan.org/AndroidCompile" but didn't succeed.
Here is what I've done:
I'm using Kubuntu 12.10 and Eclipse juno (maybe irrelevant at this point)
All the packages mentioned in the AndroidCompile page are installed.
Code: Select all
shahab@maloos{~}: echo $ANDROID_SDK
/home/shahab/android-sdks/
shahab@maloos{~}: echo $ANDROID_NDK
/home/shahab/android-ndk-r8b/
shahab@maloos{~}: echo $ANDROID_ABI
x86
shahab@maloos{~}: echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/shahab/android-sdks//platform-tools:/home/shahab/android-sdks//tools
shahab@maloos{~}: cd workspace/android/
shahab@maloos{~/workspace/android}: sh compile.sh
I uploaded the output of compile.sh here:
https://www.dropbox.com/s/s2867xttwu2o3 ... output.txt
The AndroidCompile page says that by now I should have an autogenerated debug apk in the bin/ folder. There is no bin/ folder in ~/workspace/android/ and there is no *.apk file *anywhere*. I thought if it has compiled correctly at least there should be some *.so files:
Code: Select all
shahab@maloos{~/workspace/android}: find . -name "*.apk"
shahab@maloos{~/workspace/android}: find . -name "*.so"
./vlc/contrib/android/iconv/preload/.libs/libiconv.so
./vlc/contrib/android/iconv/preload/preloadable_libiconv.so
./vlc/contrib/i686-linux-android/lib/preloadable_libiconv.so
Anyway, I imported the vlc-android project into eclipse. Running it on its own of course doesn't work first I get an exception which can be fixed if I manually run gen-env.sh but then I get an error saying it couldn't load libvlcjni
So I tried to compile the native code.
Code: Select all
shahab@maloos{~/workspace/android}: cd vlc-android/
shahab@maloos{~/workspace/android/vlc-android}: ~/android-ndk-r8b/ndk-build
Gdbserver : [x86-4.6] libs/x86/gdbserver
Gdbsetup : libs/x86/gdb.setup
make: *** No rule to make target `jni/..//modules/codec/omxil/iomx.cpp', needed by `obj/local/x86/objs-debug/iomx-gingerbread/__//modules/codec/omxil/iomx.o'. Stop.
Code: Select all
shahab@maloos{~/workspace/android/vlc-android}: export VLC_SRC_DIR=../vlc/
shahab@maloos{~/workspace/android/vlc-android}: ~/android-ndk-r8b/ndk-build
Gdbserver : [x86-4.6] libs/x86/gdbserver
Gdbsetup : libs/x86/gdb.setup
Compile++ x86 : iomx-gingerbread <= iomx.cpp
jni/../../vlc//modules/codec/omxil/iomx.cpp:27:41: fatal error: media/stagefright/OMXClient.h: No such file or directory
compilation terminated.
make: *** [obj/local/x86/objs-debug/iomx-gingerbread/__/__/vlc//modules/codec/omxil/iomx.o] Error 1
I'd appreciate any help... I've been spending hours trying to get this to work.
Thanks