Code Monkey home page Code Monkey logo

Comments (8)

zoujiaqing avatar zoujiaqing commented on August 27, 2024

GTK_BASEPATH is GTK 2.x, Because of Gtk 2.x used for MonoDevelop ...
Please, Can not rely on GTK_BASEPATH?
Like QT that, as long as can find DLL file can run.
My Glade 3.14.2 can run. :)
Can you fix it? thank you!

from gtkd.

zoujiaqing avatar zoujiaqing commented on August 27, 2024

I set GTK_BASEPATH to GTK 3.6.1, error is:
object.Exception@gtkc\Loader.d(123): Library load failed: libgmodule-2.0-0.dll

from gtkd.

zoujiaqing avatar zoujiaqing commented on August 27, 2024

Unable to locate Program input point g_private_get in dynamic link library C:\Program Files (x86)\Gtk-Runtime\bin\libgmodule-2.0-0.dll?

from gtkd.

zoujiaqing avatar zoujiaqing commented on August 27, 2024

I found that GTKD compatibility is very poor... God..

from gtkd.

MikeWey avatar MikeWey commented on August 27, 2024

You should be able to remove the GTK_BASEPATH environment variable completely. It's a leftover from old Gtk+ installers that used it instead of the PATH, and for gtkD it currently overrides searching the PATH for the libs.

As for installing both Gtk+ 2.x and 3.x on the same windows machine will take some doing, due to the good old dll hell.

Some libraries are installed for both Gtk 3 and Gtk 2 but there versions differ, and because Windows doesn't try to load a library when a version is already in memory problems will arise when the old version is loaded first.
To get things to work correctly only the newest version of the libraries shared by both Gtk 2 and Gtk 3 should be installed, but i don't know how forward compatible the applications are with the newer versions.

from gtkd.

zoujiaqing avatar zoujiaqing commented on August 27, 2024

You should ignore GTK_BASEPATH configuration, or when cannot find DLL file to use GTK_BASEPATH loading.

from gtkd.

MikeWey avatar MikeWey commented on August 27, 2024

So, only try the GTK_BASEPATH when loading from the PATH fails.
That would solve some of the issues with an incorrect GTK_BASEPATH still hanging around from a previous install.

But installing more than one copy of Gtk+ on Windows has always been a problem, i might be able to create an installer that would install both Gtk2 and Gtk3 without causing issues with the wrong dll being loaded.

So is the Gtk2 version that comes with Monodevelop installed separately?

from gtkd.

MikeWey avatar MikeWey commented on August 27, 2024

Removed the GTK_BASEPATH detection completly in commit 5dfadb3 not having the Gtk+ runtime in your path will cause problems witj Gtk+ itself.

from gtkd.

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.