-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
Is there any plans to make it work on MacOS? #41
Comments
I'm also interested, thanks. |
I have no knowledge in gtk, meson build system and even rust is very new to me. But here I go with the tinkering: I managed to get dependencies via homebrew on MacOS (M1 chip and arm brew even) and started compilation until following error:
The dependencies I needed to grab on my end (ymmv) are:
The error message |
It's possible to check in a copy of the needed its rules files to a local directory, e.g. |
I attempted a build after installing the dependencies @nilbot had listed, and after running
with the absolute path to rnote being Attempting to run the binary with
I'm not sure what a Unless someone more knowledgeable happens to comes along, I guess I'll have to Google-fu this some other time. |
Line 46 in fab9abe
There is a LINGUAS file here: https://github.com/flxzt/rnote/blob/main/rnote-ui/po/LINGUAS It's just a text file listing the available languages that have translations -- and comes in the same directory as the translations themselves. But it is not in I would replace this: rnote/rnote-ui/data/meson.build Line 46 in ed24e04
with po_dir: '../po', |
This appears to have broken in commit 7d6bc99, which incidentally I think is a good demonstration of why |
thanks, fixed! |
It seems that PR managed to fix the issues regarding the
I'm not sure exactly what's going on here, as I'm not familiar with what a |
I'd forgotten, but it turns out |
I tried changing the path to the
I'm not familiar with GTK or Glib at all, so I'd have to look into what's going on here later. |
I'm also seeing the same error as @y-mx-b
The build and install message shown no error, and p.s. the post installation script handles the copying of files, including the resource error you shown earlier. You would need to install one more dependency via homebrew for the post installation script to work
|
It turns out I was just missing permissions issues related to setting my prefix as
Also, interestingly, running it from
Running the test showed no errors,
so I assume this has to do entirely with runtime-dependencies not being properly copied over? |
It looks like Gio is not finding the compiled gschema. I believe by default Gio looks for settings in see also: |
After exporting the path as @flxzt suggested, I can confirm the app now works. I've tried testing out drawing, erasing, and file saving features, and it all seems functional at the moment. I'll try working on writing up build steps for macOS and adding it to https://github.com/flxzt/rnote/tree/main/misc/building later. |
I've just made the pull request. I hope I didn't mess anything up 😅 Edit: It as now been merged with master! |
Do you think it'd be worth adding macOS-specific build instructions to the build script to have meson generate a proper macOS application (on macOS)? Installing would be as simple as just copying the application to |
I've been looking into creating a (properly relocatable) application bundle, but that requires some changes to the code which I haven't been able to put together myself (I don't speak Rust). But I assume it's fairly easy for someone who already knows Rust. In a nutshell, instead of hardcoded paths like rnote/rnote-ui/src/config.rs.in Lines 14 to 17 in fb05cc5
we need paths being set relative to If someone can make the changes to the code, I can help with the rest. |
@dehesselle thanks for attempting this. I am not at all familiar with macos and how bundled applications work there, but it sounds like you are facing similar issues as I was with my (ongoing) attempt of creating a windows installer. Check out the I believe GIO looks for settings in the path specified by GSETTINGS_SCHEMA_DIR. Not sure about GDK pixbuf loaders, I would need to look into that myself too. |
@flxzt The solution from the Can you provide some working Rust code for:
With that I can make the necessary adjustments and PR them back to you. These are the only two missing pieces of the puzzle, I have everything else covered: (screenshot was taken launching Rnote via Terminal) |
will do. I wonder if there is a way to set these paths without using envs in GTK |
@dehesselle I didn't fully understand what you need to make it work on macos. Regarding the environment variables, I could set up something similar to setup_windows_env, but I would need to know what exactly should be added there. The current path can be retreived fairly easily with |
It's probably best to start over in order to avoid misunderstandings. I need you to put the following into the code however you see fit:
|
Thanks, that clears things up. See PR #470 with those additions. What about |
Thanks for the changes. It might take me a couple of days before I'll get to work on this again, but I'm still committed.
|
I followed "https://github.com/flxzt/rnote/blob/main/misc/building/rnote-macos-build.md" and don't forget : |
(rnote:86171): Gdk-ERROR **: 14:55:13.482: Resource path /com/github/flxzt/rnote/icons/scalable/actions/cursor-dot-medium.svg is not a valid image: Unrecognized image file format brew install librsvg finally it works ! |
thanks to @dehesselle Rnote is now available on MacOS as an app bundle! I added links how to get it to the README and website. |
Since GTK4 got some improvement in supporting Macs
The text was updated successfully, but these errors were encountered: