I followed the steps as outlines on https://96boards.org/documentation/ConsumerEdition/DragonBoard-410c/Guides/AOSP.md.html
However, there is a compilation error
[ 0% 4/69812] target thumb C: libGLES_mesa_32 <= external/mesa3d/src/egl/main/eglapi.c
FAILED: out/target/product/db410c/obj_arm/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglapi.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang -I external/mesa3d/src/egl/main -I external/mesa3d/src/egl/drivers/dri2 -I external/mesa3d/src -I external/mesa3d/include -I external/mesa3d/src/egl -I out/target/product/db410c/obj_arm/SHARED_LIBRARIES/libGLES_mesa_intermediates -I out/target/product/db410c/gen/SHARED_LIBRARIES/libGLES_mesa_intermediates -I libnativehelper/include_deprecated \$(cat out/target/product/db410c/obj_arm/SHARED_LIBRARIES/libGLES_mesa_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/db410c/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a15 -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ANDROID -D_EGL_BUILT_IN_DRIVER_DRI2 -DHAVE_ANDROID_PLATFORM -Wno-unused-parameter -Wno-date-time -Wno-pointer-arith -Wno-missing-field-initializers -Wno-initializer-overrides -Wno-mismatched-tags -DVERSION=\\\"17.2.0-devel\\\" -DPACKAGE_VERSION=\\\"17.2.0-devel\\\" -DPACKAGE_BUGREPORT=\\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\\" -DANDROID_API_LEVEL=26 -DENABLE_SHADER_CACHE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_PTHREAD=1 -DHAVE_DLOPEN -DHAVE_DL_ITERATE_PHDR -DMAJOR_IN_SYSMACROS -fvisibility=hidden -Wno-sign-compare -DTEXTURE_FLOAT_ENABLED -DHAVE_LIBDRM -fPIC -DDEFAULT_DRIVER_DIR=\\\"/system/lib/dri\\\" -D_USING_LIBCXX -std=c99 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/db410c/obj_arm/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglapi.d -o out/target/product/db410c/obj_arm/SHARED_LIBRARIES/libGLES_mesa_intermediates/main/eglapi.o external/mesa3d/src/egl/main/eglapi.c"
In file included from external/mesa3d/src/egl/main/eglapi.c:94:
In file included from external/mesa3d/src/egl/main/eglglobals.h:37:
In file included from external/mesa3d/src/egl/main/egltypedefs.h:34:
In file included from external/mesa3d/include/EGL/egl.h:39:
external/mesa3d/include/EGL/eglplatform.h:100:10: fatal error: 'android/native_window.h' file not found
Has anyone an idea what’s the cause for the problem?