-
-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Build Fail #1565
Comments
After successful run and new project creation using New game template (with Android support) there is a problem with references inside Visual Studio when trying to build Android project.
|
@ykafia can you help here? You seemed to have made an Android build a few weeks ago...
I don't know if it helps, but I think only the Stride.sln works properly and you set the platforms and graphics APIs to build in the |
I'll try this out |
@Feralnex So your issue is that you installed the NDK and it makes your compilation fail ? |
No. The OP's initial problem seems to be that clang.exe does not exist in folder "windows-x86_64" File: Stride.Native.targets Line 210,5 Error
Visual Studio 2022 installs Clang.exe in folder: |
Path issues with the NDK Since the first couple of errors following changing the folder name(s) in Stride.Native.targets from "windows-x86_64" to "windows" are: 1>C:\Program Files (x86)\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld : error : cannot open crtbegin_so.o: No such file or directory 1>C:\Program Files (x86)\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld : error : cannot open crtend_so.o: No such file or directory crtbegin_so.o is there it's just installed under the relevant API level at: C:\Program Files (x86)\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows\sysroot\usr\lib\x86_64-linux-android |
Progess building Stride.Android.sln File: Stride.Native.targets Perhaps this was a Intellisense/copy-paste error working with a previous version of the NDK, Stride or VStudio? Android Projects |
My issue was that when creating new Android game project there were problems with references (my first comment), the issues with paths didn't cause me as much trouble as with the paths and I didn't know why it's happening. Gonna check new build when I'll have some free time. |
Release Type: Official Release/GitHub (please choose appropriate option)
GitHub
Version: Version number and/or git branch
master
Platform(s): Does the problem occur on Windows, Android...?
Visual Studio 2022 Version 17.4.1 + Android NDK 20.1.5948944 on Windows (Android build).
Describe the bug
Android.sln build fails.
The path C:\Program Files (x86)\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64 doesn't exist in newer version of Visual Studio or Android NDK (probably), now it's C:\Program Files (x86)\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows. Also C:\Program Files (x86)\Android\android-sdk\ndk-bundle\platforms\android-9 should be replaced with C:\Program Files (x86)\Android\android-sdk\ndk-bundle\platforms\android-27 or any other the rest of the solution depends on.
Changing data inside Stride.Native.targets (line 190) from
to
fixes the problem, but i'm not sure about previous/other versions of Visual Studio and/or AndroidNDK.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build project.
The text was updated successfully, but these errors were encountered: