Comments (13)
Should have mentioned this here too, I already experimented with a windows build and documented my steps here.
from rnote.
To not show the cmd window on windows when app launches you have to mark app as gui adding cli flag '-mwindows' should do the trick. More info: http://users.wfu.edu/cottrell/cross-gtk/
from rnote.
There is this docker image that could be used to cross-compile to windows, if anyone wants to have a go at it. https://github.com/MGlolenstine/gtk4-cross
from rnote.
Today I was able to get rnote building on Windows (wasn't too hard in the end). I'll do my best to explain the process here.
- Follow these instructions to install Rust
- Follow the instructions to setting up MSYS2
- Run the following command in either a MSYS2 MSYS terminal or in a MSYS2 Mingw64 terminal
pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-pkg-config mingw-w64-x86_64-meson mingw-w64-x86_64-gtk4 mingw-w64-x86_64-libadwaita mingw-w64-x86_64-poppler
- Run
meson setup --prefix={INSTALL_PREFIX} _mesonbuild
You can set {INSTALL_PREFIX} to any directory you like. - Run
meson compile -C _mesonbuild
- If you wish to install it, run
meson install -C _mesonbuild
. If usingC:/Program\ Files/rnote
or similar as the install directory you MUST elevate permissions to admin level. I use gsudo for this (further steps will also require admin rights). - The step above will fail. Unfortunately (at the time of writing) some manual work is required to fix this.
- In the
_mesonbuild
directory, you will see an executable calledrnote.exe
. Copy, paste and rename tornote
- Rerun
meson install -C _mesonbuild
- Rename to
{INSTALL_PREFIX}/bin/rnote
to{INSTALL_PREFIX}/bin/rnote.exe
- Open a terminal in
{INSTALL_PREFIX}/share/glib-2.0/schemas
and run this commandglib-compile-schemas.exe .
- Double click on
rnote.exe
in File Explorer and rnote will run. 🙂
Optional
- To create a start menu shortcut, right click on
rnote.exe
in File Explorer and selectCreate shortcut
. Windows will then ask if you want it created on the desktop. Click "Yes". Then move/copy (depending whether you would like a desktop shortcut as well) the shortcut toC:\ProgramData\Microsoft\Windows\Start Menu\Programs
Screenshot
Additional Notes
- Unfortunately there is no app icon for rnote
- A console appears (although this may be my fault based on the commands I used to build rnote)
- The system colors button does not work (in screenshot I had to set it to dark even though the system theme is set to dark)
- Not sure why the install step fails (unfortunately I don't have the time to get the specific error messages right this moment, sorry). But once this is resolved I am happy to create a GitHub Action script to build a Windows version of rnote
- If you wish I can open a PR that adds the building on Windows information to
CONTRIBUTING.md
- If there is anything that you feel needs fine tuning (or that I've missed key information), let me know so I can update the instructions 🙂
from rnote.
@iwoithe If you would be willing to create a script, that would be very nice. On my machine I am getting a lot of UTF8 validation errors though, resulting in a lot of blank labels in the app, did you experience that too?
from rnote.
For windows a python script might be better. It could then be extended to create a installer at some point I think? If somebody has expertise with that and would like to help, I would really appreciate it!
from rnote.
Whatever works best for you! I read that Inno is most pleasant to write and the only real downside is that it can only produce .exe files, not MSI. But I don't really think we need to worry about this at the moment.
from rnote.
I think this should be solved, there are (currently) up to date and tested instruction how to build on windows available here: https://github.com/flxzt/rnote/blob/main/misc/building/rnote-windows-build.md
from rnote.
I think you're refering to what is now in BUILDING.md, but there never were any build instructions for windows.
But if someone manages to do it, please report back so I can add them, maybe we could even ship a installer (although linux / flatpk will probably stay the target I am focusing on the most)
from rnote.
Can I build it with cargo?
from rnote.
No, rnote uses meson as its build system
from rnote.
On my machine I am getting a lot of UTF8 validation errors though, resulting in a lot of blank labels in the app, did you experience that too?
I haven't actually re-built it in a few weeks but I will check if this occurs for me within the next few days (this was not an issue when I built rnote the first time).
@iwoithe If you would be willing to create a script, that would be very nice.
I am happy to do this. Would you like it to be a Bash or Python script?
from rnote.
For windows a python script might be better.
I'll start working on it.
It could then be extended to create a installer at some point I think?
Yeah, this would be good. I am happy to do this. I'd prefer using Inno Setup as that is what I've had experience in but I am fine to use another setup installer creator if you wish.
from rnote.
Related Issues (20)
- RNote crashes on GNOME 46/Arch HOT 2
- Problem at the moment of Export the archive, HOT 5
- An icon isn't loading correctly from themes HOT 1
- Lag HOT 5
- Crash when adding new workspace HOT 1
- Missing translations HOT 4
- Moving Capability for Toolbars HOT 1
- Web Frontend HOT 1
- PDF blurry inside rnote HOT 2
- Drawing cursor invisible. HOT 1
- Modified file on disk popup appears under bottom toolbar HOT 3
- A Way to append PDFs to a Document HOT 2
- change doc-save-symbolic to floppy-disk like icon HOT 2
- Add preset page format setting HOT 1
- Page layout doesnt get fully persisted HOT 1
- Some errors with touch input
- Wacom pen tablet with windows Ink enabled cause pan + zoom to stop working HOT 4
- Can't open the file, shows error message "Opening file failed". Terminal output "Caused by: decompressing bytes failed" HOT 1
- Color Palette Not Showing Colors HOT 1
- Reduce User input Effort for "Reset Zoom to 100%" (e. g. via Keyboard shortcut or Graphics Tablet / Pen Buttons) HOT 1
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 rnote.