![]() However, CMake insists on appending CMAKE_SYSROOT to EVERY search path - including, for some reason, sysroot itself. Here’s -debug-find output, and that’s where things get interesting: Make Debug Log at C:/Program Files/CMake/share/cmake-3.27/Modules/FindOpenGL.cmake:265 (find_path):įind_path called with the following settings:ĬMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH: 0įind_path considered the following locations:Ĭ:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/21/include/aarch64-linux-android/EGL/egl.hĬ:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/21/include/EGL/egl.hĬ:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/21/EGL/egl.hĬ:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot/Microsoft/AndroidNDK/android-ndk-r23c/sysroot/usr/include/EGL/egl.hĮgl.h actually exists at “c:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\include\EGL\egl.h”. DCMAKE_ANDROID_STANDALONE_TOOLCHAIN=C:/Microsoft/AndroidNDK/android-ndk-r23c/build/cmake/ -A ARM64 -G "Visual Studio 17 2022" -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=FALSE -debug-find 2> 0Īs you can notice, I’m disabling CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH, because otherwise find_package searches in folders in PATH environment variable, and I don’t want that (also, it pollutes -debug-find logs a lot). Could NOT find OPENGLES1 (missing: OPENGLES1_INCLUDE_DIR)Ĭmake. Could NOT find OPENGLES2 (missing: OPENGLES2_INCLUDE_DIR) ![]() However, find_package(OpenGL) fails with: - Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) I have NDK installed in C:\Microsoft\AndroidNDK\android-ndk-r23c and SDK installed in C:\Microsoft\AndroidSDK. ![]() ![]() I’m trying to compile a library for Android that depends on EGL. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |