-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
[DISCUSSION] compiling on linux #106
Comments
They've already got build CI and release builds set as GH workflows, so it shouldn't be that difficult to simply add one for Linux. I'd do it myself if I knew how... since Linux requires extra steps ( |
I made this edit: diff --git a/Cargo.toml b/Cargo.toml
index eaca0ef..e12ea9d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,7 +30,7 @@ nalgebra = "0.33.0"
once_cell = "1.19.0"
rand = "0.8.5"
reqwest = { version = "0.12.7", features = ["blocking", "json"] }
-rfd = "0.15.0"
+rfd = { version = "0.15.1", default-features = false, features = ["tokio"] }
semver = "1.0.23"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" That seems to compile as well. Is this a better choice than I looks like you can choose either However, this doesn't actually open the file picker for me :( (Ubuntu 24.10) it just hangs. Also, how does this affect the windows build? Does this need to be gated for Linux builds only? |
I'm on Wayland and it also seems to fail displaying the UI
Edit: I also can't manage to get it working on Xorg lol
|
I have same problem |
Hi there! Thank you for the report! I had some problems with the Linux compilation step in the Github Actions CI which were related to Tauri, so I think this is most likely the main problem here. Since I'm coding & testing on Windows, this wasn't one of my top fixing priorities yet - but I guess now it's time to take care of that! Have an amazing start into the new year! |
First of all, this looks like an awesome project // thank you! I briefly tried to compile within an Ubuntu VM running on a newer MacBook Pro (M1 Pro) without immediate luck and didn't have time to debug it. I'm hoping you or someone else gets around to it before I do. But if it happens to me, I'll submit a PR. |
@louis-e my diff supplied above gets it compiling and running on Ubuntu 24.04 LTS. I don't know how to include that into a GH workflow... If I'm bored tomorrow I'll look into it and see if it's relatively easy to set up. The tough part is that the dependencies may change depending on the platform you're building for... I don't know if the diff supplied above will build on Windows. So we may need to figure out how to make cargo choose dependencies based on arch. I'm sure it's possible, but I'm a rust noob so I don't know how at this point. :D Glad to see you want this done though! I look forward to using this tool, it looks awesome |
Okay, looks like I also have most or all of those packages installed that @ulph0 mentioned. It may be wise to build a static exe so the deps get included, otherwise I assume linux users will need to install those. Flatpak is another option but I know nothing about how that works, lol |
Probably this helps: |
RFD patch merged in #127, this issue should be resolved. Unless anyone else is having issues compiling/running. The file picker isn't working for me right now but I'm having a look at it... |
I was able to compile no issues/modifications!! |
If you are failing to compile on Ubuntu, make sure |
Confirmed working on Arch Linux, with latest nightly rust. The tauri gui failed to load existed world(it just freezed the whole app), but the cli part worked just fine. |
hi! at first, many thanks for this great project! i am just trying to compile arni (the xmas release) on linux (ubuntu with gnome). thats hard work, so it would be very nice if you could compile a linux binary into your assets.
i have no clue about the rust build process. i tried to run/build and solve every error. here is what i did:
sudo apt install libwayland-dev gir1.2-glib-2.0-dev libcairo-dev libpango1.0-dev libatk1.0-dev gir1.2-gdk-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
(please write a comment if i forgot one)rfd = "0.15.0"
to
rfd = { version = "0.15.1", default-features = false, features = ["gtk3"] }
that worked. maybe you also could add a linux-binary to your assets? i just created my first world. i wasn't able to select an existing world, which is kind of sad, because of course i would like to fight against some neighbour monsters and also i am at the moment not able to find my home because orientation in the big world i created is complicated, but i will continue to try ...
The text was updated successfully, but these errors were encountered: