J'utilise OpenGL ES2 dans une application Android à l'intérieur du code C++. Compiling et l'exécution du programme fonctionne comme prévu, mais l'IDE lui-même ne peut pas trouver les fichiers d'en-tête NDK laissant mon code fichiers laid:Android Studio IDE ne trouve pas les fichiers d'en-tête NDK
Mon fichier CMake:
cmake_minimum_required(VERSION 3.4.1)
add_library(native-lib
SHARED
openGLRenderer.cpp
androidInterface.cpp
)
target_link_libraries(native-lib
android
log
EGL
GLESv2
)
build.gradle:
...
externalNativeBuild {
cmake {
cppFlags "-frtti"
arguments '-DANDROID_PLATFORM=android-21',
'-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=gnustl_static'
}
...
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}
Que dois-je faire pour résoudre ce problème? Je vous remercie!