Comments (4)
Indeed the Android debug build was missing.
I have updated the Github workflow. You can find the latest build here.
Could you please test this release (when it finished building) and report back whether it works as expected now?
I'm not an Android developer so I can't really test myself. But I think it should be fine now.
Should I submit a PR for your GitHub actions?
I like the simplicity of the Github workflow as it currently is. No need for an extra docker layer.
from gdnative-ropesim.
So, I managed to get it working and had to learn a few things along the way :D Couldn't give up on this beautiful rope extension!
I utilized the docker files from: https://github.com/godotengine/build-containers to build Godot for Android. Then I used Podman to transfer the Ropesim files into the container, after running the following commands:
scons platform=android target=template_debug arch=arm64 -j2
scons platform=android target=template_release arch=arm64 -j2
I could produce the missing ".so" files. Afterward, I moved the files from /demo/addons/ropesim/bin/ to my project's addons ropesim/bin directory. and Now, I can export the project directly from Godot to my phone, and the rope renders correctly.
By the way, I found that the build-containers very neat and user-friendly. Should I submit a PR for your GitHub actions? This way, instead of executing commands directly on GitHub, we could use Podman. The containers would generate artifacts and you could use "podman cp" command to fetch them out. probably the docker images could also use github cache to reduce the build time :)
from gdnative-ropesim.
Could you please test this release (when it finished building) and report back whether it works as expected now?
Yes it works perfectly fine 👍 Thank you!
No need for an extra docker layer.
Great! I'll then write down the steps for a customized build of this (or any other) GDExtension libraries without messing up your local PC. Could be useful for someone with web or iOS requirements:
follow these steps:
-
Clone the build-containers repository:
git clone [email protected]:godotengine/build-containers.git cd build-containers/
-
Make sure you have docker running:
docker run hello-world # or something like this
-
Install Podman (works similar to Docker):
sudo apt install podman
-
Build all the images (you can also build only for one, check the build-containers repo):
./build.sh 4.x f39
-
View all the Docker images:
podman images
-
Run a specific build in a container:
podman run -dit --name test-run [image-hash]
-
Clone the GDNative-Ropesim repository (including its submodules):
git clone --recurse-submodules [email protected]:mphe/GDNative-Ropesim.git cd GDNative-Ropesim
-
Copy the project files into the container:
podman cp . test:/root/
-
Enter the container:
podman exec -it test-run bash
-
Within the container, navigate to the GDNative-Ropesim directory and build, e.g. for Android:
cd GDNative-Ropesim/ scons platform=android target=template_debug arch=arm64 -j2 scons platform=android target=template_release arch=arm64 -j2
-
Copy the built libraries from the container to the local machine (run these outside of the container):
podman cp test:/root/GDNative-Ropesim/demo/addons/ropesim/bin/libropesim.android.template_release.arm64.so . podman cp test:/root/GDNative-Ropesim/demo/addons/ropesim/bin/libropesim.android.template_debug.arm64.so .
This way you keep your PC clean from installing some 20 different libraries.
from gdnative-ropesim.
Fixed in 3c440ce
from gdnative-ropesim.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdnative-ropesim.