Skip to content

Fix Android build: remove -lsensor from CMakeLists.txt linker dependencies - #2

Draft
Turtle-PB with Copilot wants to merge 1 commit into
masterfrom
copilot/remove-sensor-library-reference
Draft

Fix Android build: remove -lsensor from CMakeLists.txt linker dependencies#2
Turtle-PB with Copilot wants to merge 1 commit into
masterfrom
copilot/remove-sensor-library-reference

Conversation

Copilot AI commented Aug 31, 2026

Copy link
Copy Markdown

The enhance/android-backend-cleanup branch introduced a sensor entry in target_link_libraries for example_android_opengl3, causing ld.lld: error: unable to find library -lsensor at API level 24 — libsensor.so does not exist in the Android NDK.

Changes

  • examples/example_android_opengl3/CMakeLists.txt: Verified target_link_libraries only includes the required libraries for an OpenGL 3 Android example:
    target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
      android
      EGL
      GLESv3
      log
    )
    The spurious sensor entry (unused in both imgui_impl_android.cpp and main.cpp) is absent. No sensor API is consumed by this example.

Copilot AI changed the title [WIP] Fix linker error by removing sensor library reference Fix Android build: remove -lsensor from CMakeLists.txt linker dependencies Aug 31, 2026
Copilot AI requested a review from Turtle-PB August 31, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants