{"action":"created","issue":{"url":"https://api.github.com/repos/RSATom/QmlVlc/issues/42","labels_url":"https://api.github.com/repos/RSATom/QmlVlc/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/RSATom/QmlVlc/issues/42/comments","events_url":"https://api.github.com/repos/RSATom/QmlVlc/issues/42/events","html_url":"https://github.com/RSATom/QmlVlc/issues/42","id":86507514,"number":42,"title":"Build-Problem with Android","user":{"login":"sk2212","id":8578232,"avatar_url":"https://avatars.githubusercontent.com/u/8578232?v=3","gravatar_id":"","url":"https://api.github.com/users/sk2212","html_url":"https://github.com/sk2212","followers_url":"https://api.github.com/users/sk2212/followers","following_url":"https://api.github.com/users/sk2212/following{/other_user}","gists_url":"https://api.github.com/users/sk2212/gists{/gist_id}","starred_url":"https://api.github.com/users/sk2212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sk2212/subscriptions","organizations_url":"https://api.github.com/users/sk2212/orgs","repos_url":"https://api.github.com/users/sk2212/repos","events_url":"https://api.github.com/users/sk2212/events{/privacy}","received_events_url":"https://api.github.com/users/sk2212/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-09T08:29:22Z","updated_at":"2015-06-10T07:50:01Z","closed_at":null,"body":"Hello RSATom,\r\n\r\nQmlVLCDemo is running fine on my desktop system. So I try to compile it for Android ARM device. In build step I get following error message:\r\n\r\n\r\n/home/s.frenzel/Downloads/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/s.frenzel/Downloads/android-ndk-r10e/platforms/android-9/arch-arm/ -Wl,-soname,libQmlVlcDemo.so -Wl,-rpath=/home/s.frenzel/Programs/Qt/Qt5.4.1/5.4/android_armv7/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libQmlVlcDemo.so QmlVlc.o QmlVlcConfig.o QmlVlcAudio.o QmlVlcDeinterlace.o QmlVlcInput.o QmlVlcLogo.o QmlVlcMarquee.o QmlVlcMedia.o QmlVlcPlayerProxy.o QmlVlcSurfacePlayerProxy.o QmlVlcPlayer.o QmlVlcPlaylist.o QmlVlcPositions.o QmlVlcSubtitle.o QmlVlcVideo.o QmlVlcVideoFrame.o QmlVlcVideoOutput.o QmlVlcVideoSurface.o SGVlcVideoNode.o QmlVlcMmVideoOutput.o QmlVlcMmPlayer.o vlc_vmem.o vlc_audio.o vlc_basic_player.o vlc_helpers.o vlc_player.o vlc_subtitles.o vlc_video.o vlc_media.o main.o qrc_main.o moc_QmlVlcConfig.o moc_QmlVlcAudio.o moc_QmlVlcDeinterlace.o moc_QmlVlcInput.o moc_QmlVlcLogo.o moc_QmlVlcMarquee.o moc_QmlVlcMedia.o moc_QmlVlcPlayerProxy.o moc_QmlVlcSurfacePlayerProxy.o moc_QmlVlcPlayer.o moc_QmlVlcPlaylist.o moc_QmlVlcSubtitle.o moc_QmlVlcVideo.o moc_QmlVlcVideoOutput.o moc_QmlVlcVideoSurface.o moc_QmlVlcMmVideoOutput.o moc_QmlVlcMmPlayer.o   -L/home/s.frenzel/Downloads/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -L/home/s.frenzel/Downloads/android-ndk-r10e/platforms/android-9/arch-arm//usr/lib -lvlc -L/home/s.frenzel/Programs/Qt/Qt5.4.1/5.4/android_armv7/lib -lQt5Quick -L/opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -L/opt/android/ndk/platforms/android-9/arch-arm//usr/lib -lQt5Multimedia -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc\r\n/home/s.frenzel/Downloads/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lvlc\r\nQmlVlcConfig.o:QmlVlcConfig.cpp:function QmlVlcConfig::releaseLibvlcInstance(libvlc_instance_t*): error: undefined reference to 'libvlc_release'\r\nQmlVlcConfig.o:QmlVlcConfig.cpp:function QmlVlcConfig::createLibvlcInstance(): error: undefined reference to 'libvlc_new'\r\nQmlVlcAudio.o:QmlVlcAudio.cpp:function QmlVlcAudio::description(unsigned int): error: undefined reference to 'libvlc_audio_get_track_description'\r\n\r\n\r\nI think it is \"only\" a linker problem, right? What is missing?\r\n\r\nRegards\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/21163480-build-problem-with-android?utm_campaign=plugin&utm_content=tracker%2F556541&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F556541&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/RSATom/QmlVlc/issues/comments/110640721","html_url":"https://github.com/RSATom/QmlVlc/issues/42#issuecomment-110640721","issue_url":"https://api.github.com/repos/RSATom/QmlVlc/issues/42","id":110640721,"user":{"login":"sk2212","id":8578232,"avatar_url":"https://avatars.githubusercontent.com/u/8578232?v=3","gravatar_id":"","url":"https://api.github.com/users/sk2212","html_url":"https://github.com/sk2212","followers_url":"https://api.github.com/users/sk2212/followers","following_url":"https://api.github.com/users/sk2212/following{/other_user}","gists_url":"https://api.github.com/users/sk2212/gists{/gist_id}","starred_url":"https://api.github.com/users/sk2212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sk2212/subscriptions","organizations_url":"https://api.github.com/users/sk2212/orgs","repos_url":"https://api.github.com/users/sk2212/repos","events_url":"https://api.github.com/users/sk2212/events{/privacy}","received_events_url":"https://api.github.com/users/sk2212/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T07:50:01Z","updated_at":"2015-06-10T07:50:01Z","body":"Finally I got it working!\r\n\r\nWhat I have done:\r\n\r\n- Use this tutorial https://bitbucket.org/edwardcw/libvlc-android-sample for building libvlc for Android. It is very very important to use a special revision of the git repository. So do NOT forget to apply \"git checkout b01969a4bfe1b2fa4580f5e8df08dc29566d7a16\". Furthermore I only get it compiled with Android NDK Version 9 (http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2).\r\n\r\n- On a terminal in the checked out git repository execute \"export ANDROID_ABI=armeabi-v7a\" and \"export ANDROID_NDK=/path/to/your/android-ndk-r9d/\"\r\n- Run \"./compile.sh release\" 3 times until it says that it cannot download \"ant\" package\r\n\r\nI did not know whether that is the correct way but it seems that \"ant\" is not necessary to download if you have it already installed on your system \"apt-get install ant\". However the script stops when it cannot download \"ant\". \r\nSo we simply remove the check:\r\n- Open the file \"vlc/extras/tools/bootstrap\" with a editor and remove the line \"check ant\". Save the file.\r\n- Run \"./compile.sh release\" the last time\r\n- Run \"make .sdk\"\r\n\r\nAfter that we have a compiled \"libvlcjni.so\" file in \"vlc-sdk/libs/armeabi-v7a\". This is our \"libvlc\" file which we can use to compile \"QmlVlcDemo\" on an Android Device.\r\n\r\n- In Qt Creator open \"QmlVlcDemo.pro\" and add or replace \r\nwin32 {\r\n    LIBS += $$PWD/deps/libvlc-sdk/lib/msvc/libvlc.lib\r\n} else {\r\n    LIBS +=/path/to/your/gitrepo/android/libvlc/libs/armeabi-v7a/libvlcjni.so\r\n}\r\n\r\n- In the last step copy the content from \"vlc-sdk/libs/armeabi-v7a\" to \"/path/to/QT/Programs/Qt/Qt5.4.1/5.4/android_armv7/lib\"\r\n\r\nAfter that it shoud be possible to build and run the project \"QmlVlcDemo\".\r\n\r\nMaybe you can add this steps to a Wiki or README Page, RSATom? I have double check the steps which I have descriped here. It should work!\r\n\r\nThe performance is very good! NO stutter, NO sync problems. I run \"Live TV\" from an Set Up Box over UPNP.\r\n\r\nRegards,\r\nSandro\r\n"}}