Giter Site home page Giter Site logo

Comments (8)

EPashkin avatar EPashkin commented on June 9, 2024

Try set GTK_LIB_DIR and PATH environment variables.

from examples.

coolit avatar coolit commented on June 9, 2024

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.

EPashkin avatar EPashkin commented on June 9, 2024

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.

coolit avatar coolit commented on June 9, 2024

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.

EPashkin avatar EPashkin commented on June 9, 2024

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.

coolit avatar coolit commented on June 9, 2024

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.

EPashkin avatar EPashkin commented on June 9, 2024

Strange, I thought that API-MS-WIN-CORExxx always present on windows.

from examples.

coolit avatar coolit commented on June 9, 2024

After following the requirements as in http://gtk-rs.org/docs/requirements.html, it worked.

from examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.