Comments (8)
Try set GTK_LIB_DIR and PATH environment variables.
from examples.
In cmd, I tried to use the command below, but error was still there.
SETX GTK_LIB_DIR C:\msys64\mingw64\lib
SETX PATH C:\msys64\mingw64\bin
from examples.
Hm, you use visual studio linker and tried link with msys64's dlls and libraries?
For pc-windows-msvc you need libraries, imported for MVS from dlls, or try add mingw64/bin to GTK_LIB_DIR too, maybe MVS make import automatically,
in bad case you need MVS version of gtk too.
from examples.
Because msvc is officially recommended. I added mingw64/bin to GTK_LIB_DIR, but it didn't work. So where could the MVS version of gtk be downloaded?
from examples.
2.16 https://sourceforge.net/projects/gladewin32/
http://old.grakovne.org/files/GTK/gtk+-bundle_3.6.4-20130921_win32.zip
Or build it yourself https://www.gtk.org/download/index.php
Or use stable-x86_64-pc-windows-gnu
with msys64, not sure that it works with MVS really
from examples.
Solution 01 seems quite old, so I used solution 02, but had the same problem as this post: gtk-rs/gtk#539
The exe can only run under "%msys_root%\mingw64\bin". So I tried to use Dependency Walker and found many missing dlls, mostly are API-MS-WIN-CORE-.......ones. Not sure how this walker could be helpful, since it would also identify many missing DLLs for a proper executable.
from examples.
Strange, I thought that API-MS-WIN-CORExxx always present on windows.
from examples.
After following the requirements as in http://gtk-rs.org/docs/requirements.html, it worked.
from examples.
Related Issues (20)
- Clone_macros doesn't work HOT 7
- Example for GtkSwitcher usage
- could not compile `gtk-rs-examples` HOT 3
- Add an example with mutable state HOT 1
- How to set app menu bar on macOS? HOT 2
- How to display TreeView backed by a Vec of Rust objects HOT 9
- Example of STYLE_CLASS_* constants
- A command-line flags example
- in basic_subclass exmaple, the Private struct is exposed to gtk
- Fatal Crash with Drag and Drop on Mac OS X HOT 3
- windows build error HOT 1
- macOS Details (menu bar + docks)
- MenuBar and Toolbar with Glade and Actions
- MacOS overlay broken
- Come up with a way to handle panics
- Example with multi selection with header rows
- Cannot build basic.rs HOT 2
- No examples with Popover/PopoverMenu
- Add Glade signal handlers example if applicable HOT 1
- Put DEPRECATION notice in README HOT 4
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 examples.