Compiling owlkettle
in Windows
#53
Replies: 4 comments 1 reply
-
I think this would be a fantastic thing to add as a page in the nimibook docs of owlkettle. It would let others benefit from the time you had to invest to find these answers, which I think would be quite worthwhile. |
Beta Was this translation helpful? Give feedback.
-
I hope my discussion will be considered outdated soon, since I made this PR: Furthermore, add instructions for Windows would be awesome. And would be happy to do a PR for it too. 🙂 |
Beta Was this translation helpful? Give feedback.
-
This is awesome! Thank you for figuring this out and creating the PR for it 😄 @PhilippMDoerner I also agree that this should be documented in the owlkettle docs. I think it might be worth it to create a new |
Beta Was this translation helpful? Give feedback.
-
BTW, a totally aside message: @can-lehmann, Thank you for owlkettle. This project represents what a good library should be for Nim! Other projects has their own languages just to implement UI and make it declarative and easier to understand (QT with QML and Kivy with KV, for instance). But this project and Nim's metaprogramming allow us to make it seamless, with a beautiful and understandable code... 🙂 It demonstrates how metaprogramming can be used to benefit all of us. |
Beta Was this translation helpful? Give feedback.
-
Hello there, I noticed that
owkettle
doesn't have any build instructions for Windows, nevertheless I wanted to compile usingMsys2
's ecosystem.A priori, I had some problems while trying to compile, specially because of the
ld
. You can see the returned errors in this thread from Discord.How I solved it
Basically, I removed this two lines:
owlkettle/cairo#80
andowlkettle/gtk#80
, and passed manually these arguments viaconfig.nims
with:For some reason, since I can't use
gorge("pkg-config --libs cairo")
into a nims file to pass thepkg-config
's result to--passL
, so I did it manually in my terminal and pasted the result to--passL
.Also, build using
Msys2
orMingw
terminal, it's not working to me while using VsCode's terminal.Updates
So, I tried again and again, and ✨ finally ✨ found the error here, as you can see in this Thread. The above solution works, but if you want to understand what is happening, please read this.
Basically the problem is the
gorge
function.gorge
is returning a multiline string what is breaking theld
's parameters...So, if you write
or
into your main file, and delete the
config.nims
it'll work as well.The proof I found that
gorge
is returning a multiline was:That returns:
Side note: How I installed gtk4
Basically, as I said, I'm using
Msys2
, so I just followed this the official installation instructions:It's all, folks! 🙂
I hope I have helped with something.
Any suggestion or thoughts of how can I made it simpler, you can comment bellow.
Also, thanks @PhilippMDoerner for your support! 🎉
Beta Was this translation helpful? Give feedback.
All reactions