Vulkan-Profiles icon indicating copy to clipboard operation
Vulkan-Profiles copied to clipboard

Android build fail

Open stmazoni opened this issue 1 year ago • 1 comments

To build for Android, it need to add UPDATE_DEPS on and use Ninja command. It might better to change BUILD.md file.

cmake -Bandroid-build
-DCMAKE_TOOLCHAIN_FILE=/build/cmake/android.toolchain.cmake
-DANDROID_PLATFORM=28
-DANDROID_BUILD_TOOLS=30.0.3
-DANDROID_ABI=arm64-v8a

->

cmake -Bandroid-build
-DCMAKE_TOOLCHAIN_FILE=/build/cmake/android.toolchain.cmake
-DANDROID_PLATFORM=28
-DANDROID_BUILD_TOOLS=30.0.3
-DANDROID_ABI=arm64-v8a
-D UPDATE_DEPS=ON -G Ninja

stmazoni avatar Apr 08 '25 05:04 stmazoni

This error message is without '-D UPDATE_DEPS=ON'

-- Detecting C compile features - done CMake Error at CMakeLists.txt:42 (find_package): Could not find a package configuration file provided by "VulkanHeaders" with any of the following names:

VulkanHeadersConfig.cmake
vulkanheaders-config.cmake

Add the installation prefix of "VulkanHeaders" to CMAKE_PREFIX_PATH or set "VulkanHeaders_DIR" to a directory containing one of the above files. If "VulkanHeaders" provides a separate development package or SDK, be sure it has been installed.

This error message is without '-G Ninja'

-- Building for: Visual Studio 17 2022 CMake Error at CMakeLists.txt:19 (project): Failed to run MSBuild command:

stmazoni avatar Apr 10 '25 02:04 stmazoni

I apologize for the late response, thank you for reporting this, I will update the BUILD.md

ziga-lunarg avatar Jun 18 '25 17:06 ziga-lunarg