-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Cannot build GDExtension C++ library for for Android #1700
Comments
Moved to godot-cpp as it's not a Godot build issue but a godot-cpp one. What commands are you using to compile for the two logs you shared? The first one includes options which are macOS specific, and the second one includes options which are specific to Windows builds, it doesn't make much sense that they would be used for the Android platform. Are you copying code from the godot-cpp buildsystem for these platforms in the Android SCons tool? |
For both output I was in the root of the project, which has a structure of: -godot-cpp // The godot-cpp checked out as a submodule at latest from master and I ran this simple command for both platforms: The goal is that I want to export an android .so library, so I can build for Android. Exporting the game works except the problem that it does not find my native library (which I cannot build as per my logs.) The command should build the native scripts and create a .so in my godot project/bin folder. I followed the godot cpp example as a reference And it actually works for macos, but not for android (also followed the steps from the documentation above) Not sure if this answers the question, but please let me know if you need more information. Thank you! EDIT: switched to 4.3 branch on godot-cpp, same result |
Got the solution, This should not be for Android builds. Now the library builds well. |
@BacheyG Does that mean you can close this report? |
Tested versions
Godot 4.3
System information
Mac OS 15
Issue description
Cannot build Godot native library (so) for android on Mac OS 15, using Godot 4.3.
I followed these steps: Compiling for Android — Godot Engine (stable) documentation in English
The SDK and NDK seems to be setup well. Building progresses until linking, where this issue happens:
I tried the setup steps for windows, but similarly Scons fails at linking:
Why? What could I miss? Are there other important settings than ANDROID_HOME environment variable or do I need additional step for the SConstruct file?
Steps to reproduce
Follow Android SDK/NDK setup steps, build GDNative with scons and notice these errors
Minimal reproduction project (MRP)
SCons file:
The text was updated successfully, but these errors were encountered: