Page 1 of 1

Build libVLC for Android - make libxml2 error 77

Posted: 27 Oct 2020 11:22
by user235
command to build:

Code: Select all

buildsystem/compile.sh -l -a all -r
last logs:

Code: Select all

configure: WARNING: unrecognized options: --with-minimal checking whether to enable maintainer-specific portions of Makefiles... yes checking build system type... x86_64-pc-linux-gnu checking host system type... arm-unknown-linux-androideabi checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for arm-linux-androideabi-gcc... /home/test/Android/Sdk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi17-clang checking whether the C compiler works... no configure: error: in `/home/test/Downloads/vlc/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/libxml2': configure: error: C compiler cannot create executables See `config.log' for more details make: *** [../src/libxml2/rules.mak:51: .libxml2] Error 77
How can I solve this issue?

SDK latest 30
NDK r21
Latest cloned vlc andorid git version

Re: Build libVLC for Android - make libxml2 error 77

Posted: 28 Oct 2020 04:53
by mfkl
Use the docker image made for this.

Re: Build libVLC for Android - make libxml2 error 77

Posted: 28 Oct 2020 14:58
by user235
Use the docker image made for this.
I downloaded https://code.videolan.org/videolan/dock ... an-android and built it but what to do next?

Code: Select all

-- Installing: /opt/tools/share/cmake-3.17/editors/emacs/cmake-mode.el -- Installing: /opt/tools/share/aclocal/cmake.m4 -- Installing: /opt/tools/share/cmake-3.17/completions/cmake -- Installing: /opt/tools/share/cmake-3.17/completions/cpack -- Installing: /opt/tools/share/cmake-3.17/completions/ctest Removing intermediate container ac13f808eba6 ---> b04abf483ce6 Step 10/12 : ENV LANG en_US.UTF-8 ---> Running in 848a58eddaef Removing intermediate container 848a58eddaef ---> 8f02cb9ca66f Step 11/12 : USER videolan ---> Running in 97ba9f880f33 Removing intermediate container 97ba9f880f33 ---> b39e35baa9ff Step 12/12 : RUN git config --global user.name "VLC Android" && git config --global user.email buildbot@videolan.org ---> Running in 50531aae594f Removing intermediate container 50531aae594f ---> c7c86c332bb1 Successfully built c7c86c332bb1

Re: Build libVLC for Android - make libxml2 error 77

Posted: 29 Oct 2020 12:51
by mfkl
Learn the basics on how to use docker, there are plenty of tutorials online, this section is about libvlc. You can then build libvlc inside the container.