Gir.Core-Gtk4 always checks Path environment variable for native libraries, but not executable directory #1019
Replies: 2 comments 5 replies
-
I can only guess what the problem is as I'm not using the binaries with windows:
|
Beta Was this translation helpful? Give feedback.
-
Okay, so after finding that the issue was missing dependencies, I did some research into what libgtk-4-1.dll needs as dependencies. And to do that, I used the
Now, I can rule out all the native OS libraries that are in the So that leaves just these libraries that are needed for libgtk-4-1.dll to work:
I'll definitely check the other GObject-related libraries and document them as well, to see which native libraries are needed for each of them. |
Beta Was this translation helpful? Give feedback.
-
I'm probably missing something in the .csproj file of the project, or is this what the bindings requires? When I remove the environment variable for the required native libraries and run the executable for the project I'm developing, it will come up with this error:
Followed by this error in the command line after it has finished with those error dialogs:
And yet, all the required native libraries are in the same directory as the executable:
The reason I'm asking, is because I plan to package future projects with the native libraries, so that it won't require the end user to install GTK4 libraries elsewhere just in order to run it.
Here's how the csproj looks like as of now:
And in the bundle_gtk.targets:
I've even tried using
ContentWithTargetLink
in there, made no difference. So I'm quite puzzled over this.I'm really curious to know what I'm missing.
Beta Was this translation helpful? Give feedback.
All reactions