Avutil not found
QtAV, Qt version and platform
add5c5bdbb842e100854be6132b8539be7422d52 Android arm64 on MacOs Qt 5.13.2
or commit id if not using release version
Ffmpeg 4.2 (https://sourceforge.net/projects/avbuild/files/android/ffmpeg-4.2-android-lite.tar.xz)
Reproduction steps
I copied INCLUDEPATH = /Users/manangel/resilient_bis/usr_aarch64/include/ LIBS = -L/Users/manangel/resilient_bis/usr_aarch64/lib/ in QtAV/.qmake.conf (and build_folder/.qmake.conf)
Expected behavior
The finish of compilation of qtav
Actual behavior
avutil not found
Log file
/Users/manangel/resilient_bis/qt/Qt/5.13.2/android_arm64_v8a/bin/qmake /Users/manangel/resilient_bis/src/QtAV/QtAV.pro -spec android-clang Project MESSAGE: BUILD_DIR=/Users/manangel/resilient_bis/build_aarch64/qtav Project MESSAGE: MAKEFILE_GENERATOR=UNIX Project MESSAGE: To disable config tests, you can use 1 of the following methods Project MESSAGE: 1. create '.qmake.conf' in the root source dir, add 'CONFIG += no_config_tests'(Qt5) Project MESSAGE: 2. pass 'CONFIG += no_config_tests' or '-config no_config_tests' to qmake Project MESSAGE: 3. add 'CONFIG += no_config_tests' in /Users/manangel/resilient_bis/src/QtAV/user.conf Project MESSAGE: To manually set a config test result to true, disable config tests and enable config_name like above Checking for avutil... no Project ERROR: avutil is required, but compiler can not find it make: *** [install-qtav] Error 3
Where is the error? I followed the build guide. Thanks
In the config.log I see `executing config test avutil
- cd /Users/manangel/resilient_bis/build_aarch64/qtav/config.tests/avutil && MAKEFLAGS= make distclean
rm -f main.o rm -f *~ core *.core rm -f libavutil.so rm -f libavutil.a rm -f Makefile
- cd /Users/manangel/resilient_bis/build_aarch64/qtav/config.tests/avutil && /Users/manangel/resilient_bis/qt/Qt/5.13.2/android_arm64_v8a/bin/qmake -spec /Users/manangel/resilient_bis/qt/Qt/5.13.2/android_arm64_v8a/mkspecs/android-clang "CONFIG -= qt debug_and_release app_bundle lib_bundle" /Users/manangel/resilient_bis/src/QtAV/config.tests/avutil
- cd /Users/manangel/resilient_bis/build_aarch64/qtav/config.tests/avutil && MAKEFLAGS= make
/Users/manangel/resilient_bis/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -c -D__ANDROID_API__=28 -target aarch64-none-linux-android -gcc-toolchain /Users/manangel/resilient_bis/sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=/Users/manangel/resilient_bis/sdk/ndk-bundle/sysroot -isystem /Users/manangel/resilient_bis/sdk/ndk-bundle/sysroot/usr/include/aarch64-linux-android -isystem /Users/manangel/resilient_bis/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include -isystem /Users/manangel/resilient_bis/sdk/ndk-bundle/sources/android/support/include -isystem /Users/manangel/resilient_bis/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -O2 -O2 -std=gnu++11 -Wall -W -fPIC -D__STDC_CONSTANT_MACROS -I/Users/manangel/resilient_bis/src/QtAV/config.tests/avutil -I. -I/Users/manangel/resilient_bis/usr_aarch64/include -I/Users/manangel/resilient_bis/qt/Qt/5.13.2/android_arm64_v8a/include -I/Users/manangel/resilient_bis/src/QtAV/contrib/dxsdk -I/Users/manangel/resilient_bis/qt/Qt/5.13.2/android_arm64_v8a/mkspecs/android-clang -o main.o /Users/manangel/resilient_bis/src/QtAV/config.tests/avutil/main.cpp In file included from /Users/manangel/resilient_bis/src/QtAV/config.tests/avutil/main.cpp:21: In file included from /Users/manangel/resilient_bis/usr_aarch64/include/libavutil/avutil.h:296: In file included from /Users/manangel/resilient_bis/usr_aarch64/include/libavutil/common.h:33: In file included from /Users/manangel/resilient_bis/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/errno.h:25: /Users/manangel/resilient_bis/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/__config:218:12: fatal error: 'features.h' file not found
include <features.h>
^~~~~~~~~~~~1 error generated. make[1]: *** [main.o] Error 1 test avutil FAILED `
It looks like there are some headers missing or not in the right locations in the c++ installation. Maybe you could look here: https://github.com/android/ndk/issues/688. It says that the header is present, but not in your include path. Check whether your Android toolchain is correctly setup and passes all include paths to the compiler.