chromeos / vulkanphotobooth

Apache License 2.0
10 stars 2 forks source link

Cannot compile: missing header/library #1

Open ricardoquesada opened 4 years ago

ricardoquesada commented 4 years ago

I've just cloned the repo. And then did: ./gradlew build and I got:

~/src/vulkanphotobooth (master)$ ./gradlew build

> Task :app:externalNativeBuildDebug FAILED
Build multiple targets native-lib_armeabi-v7a vulkan-utils_armeabi-v7a
ninja: Entering directory `/home/riq/src/vulkanphotobooth/app/.cxx/cmake/debug/armeabi-v7a'
ninja: error: '/home/riq/Library/Android/sdk/ndk/21.0.6113669/sources/third_party/shaderc/libs/c++_static/armeabi-v7a/libshaderc.a', needed by '/home/riq/src/vulkanphotobooth/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-lib.so', missing and no known rule to make it

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process /home/riq/Library/Android/sdk/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/riq/src/vulkanphotobooth/app/.cxx/cmake/debug/armeabi-v7a native-lib vulkan-utils}
  ninja: Entering directory `/home/riq/src/vulkanphotobooth/app/.cxx/cmake/debug/armeabi-v7a'

  ninja: error: '/home/riq/Library/Android/sdk/ndk/21.0.6113669/sources/third_party/shaderc/libs/c++_static/armeabi-v7a/libshaderc.a', needed by '/home/riq/src/vulkanphotobooth/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-lib.so', missing and no known rule to make it

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 931ms
14 actionable tasks: 2 executed, 12 up-to-date

The error seems to be:

  ninja: error: '/home/riq/Library/Android/sdk/ndk/21.0.6113669/sources/third_party/shaderc/libs/c++_static/armeabi-v7a/libshaderc.a', needed by '/home/riq/src/vulkanphotobooth/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-lib.so', missing and no known rule to make it
07ItachiUchiha commented 1 year ago

The error message you've provided indicates that the Ninja build system is unable to find the libshaderc.a static library, which is required for building libnative-lib.so. This library is a part of the Shaderc library, and its absence is causing the build to fail.