-
Notifications
You must be signed in to change notification settings - Fork 8
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
Problem installing Webview for Crystal on Windows : WebView2.h: No such file or directory #20
Comments
You need to have WebView2 SDK installed for compilation to work on windows. This shard is just a wrapper against webview library, so if you encounter webview compilation related issues, please refer to |
Thank you. |
I think with #21 this can be closed. @serge-hulne, can you confirm that it works? |
I don't know. I couldn't make the WebView shard work under Windows (but maybe it's just me or maybe Crystal for Windows is still too experimental at this stage). Feel free to close the issue. |
What would really help for my project is if a simple |
Here is how a V-Lang developper has done it. He uses scripts to build the libraries. There is no special tool needed (no requirement to use Microsoft Visual Code or so)
|
@serge-hulne have you checked updated section https://github.com/naqvis/webview#pre-requisite ? Of course, one of the ways could be duplicate build.bat functionality from webview library in shard.yml postinstall. Both approaches has positive and negative sides. Another problem (and maybe another issue) though is support of fibers. Basically, without periodical call of |
Hi, I haven't checked the updated section yet, but I will keep you posted as soon as I have. Thank you! |
I tried the installation procedure from your new documentation. The first step worked:
The second step did't work:
The problem is that
|
actually yes, shard.yml has to be fixed. but if directory |
Apparently not, since:
I wish I could do more to help, but I have no experience with the gcc toolchain under Windows (I use MingW to fake a Unix development environment) |
compilation was complete at previous steps. Mingw isn't needed as webview.dll is all need besides crystal code. |
If |
Problem you are encountering is due to
|
OK. That worked. However, I got the following error when trying to build the app:
|
You have to do |
I am sorry, it doesn't seem to work:
|
have you copied webview.lib on a previous step ( |
Yes. It didn't work.
I have in the meantime started to build my own version of bindings between
Webview (on one hand) and Crystal and V on the other hand.
I'll tell you if it works.
My guess is that that sort of bindings is subtitle and discussion about it
can be confusing.
Still; I thank you for your time, your efforts and your help.
…On Mon, Feb 13, 2023 at 10:12 PM kipar ***@***.***> wrote:
have you copied webview.lib on a previous step (copy
webview\dll\x64\webview.lib to <your crystal installation>\lib)?
—
Reply to this email directly, view it on GitHub
<#20 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKDDRQKPV76NUDXFHUSWLWXKPUDANCNFSM6AAAAAAUVECWCE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It works now, but the correct linking instruction (under Windows) for lib.cr seems to be:
With this instruction, instead of:
|
I guess, in order to use However, in my case, running the install.bat script from https://github.com/webview/webview/tree/master/script did build said library webview.lib locally, but did apparently not copy it to a (standard)location which would be accessible by default to Crystal via a simple @[Link("webview")] , this is basically why the |
The text was updated successfully, but these errors were encountered: