Comments (1)
I use Fedora myself and found cross compiling for Windows quite a pleasant experience. I do not currently have a Windows installation, so I could only test it using wine, but it seemed to work nicely (except for a few missing icons):
sudo dnf install mingw32-gtk3
sudo dnf install mingw64-gtk3
nim compile -d:mingw todo.nim
sudo dnf install wine
WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin/ wine todo.exe
Not having the mingw64-gtk3
package might complicate things somewhat (as you have described). As I do not use a debian based system, I don't think that I can be of much help here. I would however welcome a pull request adding a document describing how it can be done, should you get it to work. I do however think that dynamic linking is the way to go here, primarily for licensing reasons related to the LGPL.
In general GTK (and therefore owlkettle) might not be the best choice for Windows/Cross-Platform development anyway, since (as far as I know), GTK does not adapt its theme correctly to the operating system and therefore looks somewhat out of place. If you still really wanted to target Windows using owlkettle, a better option might be to create a second widgets.nim
file which targets a different backend (instead of GTK). Large parts of owlkettle are not inherently GTK specific and could therefore theoretically be reused. This is of course a lot of work, and currently not one of my personal interests/priorities.
TLDR: Even though cross-compiling owlkettle apps to Windows is not one of my personal aims, if you find a way to get it to work properly, I would accept a pull request which adds a docs/cross_compiling.md
describing the process for Ubuntu/Debian and Fedora.
from owlkettle.
Related Issues (20)
- playground file : cannot open ? HOT 4
- Keyboard shortcuts HOT 1
- how to draw circles HOT 2
- Add the ability to have circular references to Widgets (or at the very least Window) HOT 6
- failed to build examples on macos with nim2.0.0 and Apple M2 HOT 5
- how to feed stdin to external process and redirect stdout ? HOT 2
- Fix or document the usage problems with non-PreferenceRow based Widgets with ExpanderRow HOT 3
- Can't send notifications while using adwaita HOT 1
- Add the ability to dispatch events programmatically to any child within a Widget
- text_view widget : display multiple lines ? HOT 6
- Text View widget : thread process can not change text buffer HOT 15
- [Feature Request] Allow setting custom startup/shutdown events in brew procs HOT 14
- Provide utilities to gracefully shut down the GTK event loop HOT 1
- Fix some examples HOT 2
- Add "Guides" section to owlkettle docs HOT 5
- GlArea example HOT 5
- How to close console window?
- error in Win 10 HOT 11
- Add a "Form-Generating"-feature to Owlkettle HOT 4
- Allow specifying arbitrary adwaita versions HOT 5
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 owlkettle.