-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
what about android/ios builds #19
Comments
iOS is a bit of a hard one because iOS doesn't allow dynamic libraries. @endragor and @karroffel did heaps of work to allow you to statically compile a GDNative library on iOS but how this works, I don't know. I would really like an Android example too because I need it. If someone can help out I'll update the C example to also include Android instructions |
I managed to work out GDNative for Android on my project, here's a zip file with the .mk files: jni.zip Note: I've only tested this using nativescript-1.0 |
I’ve been working on something similar thanks to Paritoshs work for the
gearvr plugin but i really want to find out if there is a way to make this
happen through scons. It’s confusing to maintain multiple build systems
On Fri, 30 Nov 2018 at 10:01 am, Marcelo Fernandez ***@***.***> wrote:
I managed to work out GDNative for Android on my project, here's a zip
file with the .mk files: jni.zip
<https://github.com/GodotNativeTools/GDNative-demos/files/2631206/jni.zip>
The .mk files in the zip are pretty generic so I guess they can work in
demos or other projects. Though you should change the LOCAL_MODULE :=
libshawynative.android line.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB2vabmdxJ_E15Irw30qpT6Ezfg2-heeks5u0GdXgaJpZM4RhPB0>
.
|
Has there been any progress on this? After spending a day, I got quite far in trying to build a GDNative C++ module for iOS, but now I'm stuck with unresolved symbols for the following:
Assuming I need the C++ bindings for iOS to resolve these issues, I've tried the following, but it failed because the iOS platform is not defined in the SConstruct of godot-cpp:
After some digging on how to build the C++ bindings for iOS, I came across a PR that's waiting to be merged. So I guess currently GDNative C++ for iOS (and possibly Android) is not only undocumented, but it is not even possible without the PR I've linked above. |
In case it's helpful, in the process of researching this topic (for this post) I found this seemingly complete write-up for Android which looks pretty comprehensive: Also, cross-linking to related issue: godotengine/godot-headers#30 Edit: Added link to Reddit thread. |
Now that the pull request above is merged, is there any way to make gdnative libaries for iOS now? |
It has always been possible (since 3.0). You'd just compile a static library instead of a dynamic one. |
@endragor Great! So how do you do it? |
Compile a static library (.a) and specify it in the .gdnlib file for iOS platform. There isn't anything specific beside using static library instead of a dynamic one. |
@endragor And how do you do that? The compiling part. |
About build for Android, i've proposed this pull-request #30, closed without being merged. |
@Didifred The repo has changed a lot since that PR was closed, we now have nice SConstructs for each project, but they are only for desktop at the moment. Improvements are welcome. If someone were to submit another PR that adds Android or iOS support to these new SConstructs, and adds instructions to the READMEs, I would review and merge it in a timely manner. |
I created a gdnative example that successfully compiles the ios version |
Are there any examples of Android/IOS builds. I noticed those are not listed in scons?
The text was updated successfully, but these errors were encountered: