Error trying to compile vlc-android on Ubuntu 64 bit

This forum is about all development around libVLC.
RadoslavYankov
New Cone
New Cone
Posts: 1
Joined: 26 Aug 2016 17:12

Error trying to compile vlc-android on Ubuntu 64 bit

Postby RadoslavYankov » 07 Sep 2016 15:33

I'm following the android build wiki and I get this error:

Code: Select all

configure: error: C compiler cannot create executables
I've looked everywhere and a lot of people have a similar problem but noone seems to have this exact one. I've looked though the config.log, but I'm probably missing something. Here is the full config.log
The problem seems to be in the ndk, I think. I tried with version 11c (the one from the compile wiki) and the newest one, none worked.

Code: Select all

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi --datarootdir=/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/share --includedir=/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/include --libdir=/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/lib --build=x86_64-linux-gnu --host=arm-linux-androideabi --target=arm-linux-androideabi --program-prefix= --enable-static --disable-shared --disable-dependency-tracking --with-pic ## --------- ## ## Platform. ## ## --------- ## hostname = radoslav-VirtualBox uname -m = x86_64 uname -r = 4.4.0-36-generic uname -s = Linux uname -v = #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/bin PATH: /home/radoslav/AndroidProjects/vlc-android/vlc/extras/tools/build/bin PATH: /home/radoslav/AndroidProjects/vlc-android/vlc/extras/tools/build/bin PATH: /home/radoslav/Android/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin PATH: /home/radoslav/bin PATH: /home/radoslav/.local/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: NDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin PATH: /snap/bin PATH: /home/radoslav/Android/Sdk/platform-tools PATH: /home/radoslav/Android/Sdk/tools PATH: /home/radoslav/AndroidProjects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/../arm-linux-androideabi/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2530: checking for a BSD-compatible install configure:2598: result: /usr/bin/install -c configure:2609: checking whether build environment is sane configure:2664: result: yes configure:2723: checking for arm-linux-androideabi-strip configure:2750: result: arm-linux-androideabi-strip configure:2815: checking for a thread-safe mkdir -p configure:2854: result: /bin/mkdir -p configure:2861: checking for gawk configure:2877: found /usr/bin/gawk configure:2888: result: gawk configure:2899: checking whether make sets $(MAKE) configure:2921: result: yes configure:2950: checking whether make supports nested variables configure:2967: result: yes configure:3097: checking whether to enable maintainer-specific portions of Makefiles configure:3106: result: no configure:3123: checking build system type configure:3137: result: x86_64-pc-linux-gnu configure:3157: checking host system type configure:3170: result: arm-unknown-linux-androideabi configure:3199: checking for arm-linux-androideabi-gcc configure:3226: result: clang configure:3495: checking for C compiler version configure:3504: clang --version >&5 Ubuntu clang version 3.5.2-3ubuntu1 (tags/RELEASE_352/final) (based on LLVM 3.5.2) Target: x86_64-pc-linux-gnu Thread model: posix configure:3515: $? = 0 configure:3504: clang -v >&5 Ubuntu clang version 3.5.2-3ubuntu1 (tags/RELEASE_352/final) (based on LLVM 3.5.2) Target: x86_64-pc-linux-gnu Thread model: posix Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/5.4.1 Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/6.2.0 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7.4 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9.3 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.1 ... rest of stderr output deleted ... configure:3515: $? = 0 configure:3504: clang -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3515: $? = 1 configure:3504: clang -qversion >&5 clang: error: unknown argument: '-qversion' clang: error: no input files configure:3515: $? = 1 configure:3535: checking whether the C compiler works configure:3557: clang -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/include -g -O2 -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/include -L/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -lgnustl_static -L/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/lib conftest.c >&5 clang: warning: argument unused during compilation: '-mfpu=vfpv3-d16' clang: warning: argument unused during compilation: '-mcpu=cortex-a8' clang: warning: argument unused during compilation: '-mthumb' clang: warning: argument unused during compilation: '-mfloat-abi=softfp' clang: warning: argument unused during compilation: '-mfpu=vfpv3-d16' clang: warning: argument unused during compilation: '-mcpu=cortex-a8' clang: warning: argument unused during compilation: '-mthumb' clang: warning: argument unused during compilation: '-mfloat-abi=softfp' /usr/bin/ld: skipping incompatible /home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a when searching for -lgnustl_static /usr/bin/ld: cannot find -lgnustl_static clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:3561: $? = 1 configure:3599: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "a52dec" | #define VERSION "0.7.4" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3604: error: in `/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec': configure:3606: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-pc-linux-gnu ac_cv_env_CC_set=set ac_cv_env_CC_value=clang ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=' -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/include -g -O2' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=' -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/include' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=' -L/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -lgnustl_static -L/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/lib' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=arm-linux-androideabi ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=arm-linux-androideabi ac_cv_host=arm-unknown-linux-androideabi ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CC=clang ac_cv_prog_STRIP=arm-linux-androideabi-strip ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## A52DEC_CFLAGS='' ACLOCAL='${SHELL} /home/radoslav/AndroidProjects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing aclocal-1.15' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='arm-linux-androideabi-ar' AS='' AUTOCONF='${SHELL} /home/radoslav/AndroidProjects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing autoconf' AUTOHEADER='${SHELL} /home/radoslav/AndroidProjects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing autoheader' AUTOMAKE='${SHELL} /home/radoslav/AndroidProjects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing automake-1.15' AWK='gawk' CC='clang' CCDEPMODE='' CFLAGS=' -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/include -g -O2' CPP='' CPPFLAGS=' -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/include' CYGPATH_W='echo' DEFS='' DEPDIR='' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FGREP='' GREP='' INCLUDES='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='arm-linux-androideabi-ld' LDFLAGS=' -L/home/radoslav/Android/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -lgnustl_static -L/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/lib' LIBA52_CFLAGS='' LIBA52_LIBS='' LIBAO_LIBS='' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /home/radoslav/AndroidProjects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing makeinfo' MANIFEST_TOOL='' MKDIR_P='/bin/mkdir -p' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='a52dec' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' RANLIB='arm-linux-androideabi-ranlib' SED='' SET_MAKE='' SHELL='/bin/bash' STRIP='arm-linux-androideabi-strip' VERSION='0.7.4' ac_ct_AR='' ac_ct_CC='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='' am__isrc='' am__leading_dot='.' am__nodep='' am__quote='' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='x86_64-linux-gnu' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host='arm-unknown-linux-androideabi' host_alias='arm-linux-androideabi' host_cpu='arm' host_os='linux-androideabi' host_vendor='unknown' htmldir='${docdir}' includedir='/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/radoslav/AndroidProjects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/install-sh' libdir='/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/home/radoslav/AndroidProjects/vlc-android/vlc/contrib/arm-linux-androideabi' program_transform_name='s&^&&' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='arm-linux-androideabi' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "a52dec" #define VERSION "0.7.4" configure: exit 77
]

The NDK version is 11c, not 12b like it says.

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests