Open tigrazone opened 1 month ago
if you already have windows vulkan sdk, just need to install android studio. then refer https://github.com/gameknife/gkNextRenderer/blob/main/.github/workflows/android.yml to build it
vcpkg_android.bat -> build_android.bat -> deploy_android.bat, need android studio and adb.exe in PATH
as instruction. I do these steps:
and then you can build
when I call vcpkg_android.bat I have errors: Detecting compiler hash for triplet arm64-android... error: while detecting compiler information: The log file content at "C:\msys64\home\user\from-git\gkNextRenderer-my-ori-dev\build\vcpkg.android\buildtrees\detect_compiler\stdout-arm64-android.log" is: -- Configuring arm64-android CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): Command failed: C:/msys64/home/user/from-git/gkNextRenderer-my-ori-dev/build/vcpkg.android/downloads/tools/ninja/1.10.2-windows/ninja.exe -v Working Directory: C:/msys64/home/user/from-git/gkNextRenderer-my-ori-dev/build/vcpkg.android/buildtrees/detect_compiler/arm64-android-rel/vcpkg-parallel-configure Error code: 1 See logs for more information: C:\msys64\home\user\from-git\gkNextRenderer-my-ori-dev\build\vcpkg.android\buildtrees\detect_compiler\config-arm64-android-rel-CMakeCache.txt.log C:\msys64\home\user\from-git\gkNextRenderer-my-ori-dev\build\vcpkg.android\buildtrees\detect_compiler\config-arm64-android-out.log
Call Stack (most recent call first): scripts/cmake/vcpkg_configure_cmake.cmake:314 (vcpkg_execute_required_process) scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake) scripts/ports.cmake:175 (include)
error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output. Failed with error #1.
How to fix?
https://learn.microsoft.com/en-us/vcpkg/users/platforms/android
this is the key: export ANDROID_NDK_HOME=/home/your-account/Android/Sdk/ndk-bundle
build Android app is not simple. But i try
Which compiler you use on Windows? vcpkg_android.bat say me Visual Studio is not supported
https://github.com/gameknife/gkNextRenderer/blob/main/README.md add android build instruction, set ndk_path is the key step
Which programs I must to install on Windows pc to build for android?