Entry pointer g_once_init_enter_pointer not found (Crash)

Im starting to create a rust gtk app and i started with the Hellow Wolrd Tutorial. After Compiling i got these messages:

Entry pointer g_once_init_enter_pointer not found in C:\msys64\mingw64\bin\libgdk_pixbuf-2.0.0.dll Entry pointer g_once_init_enter_pointer not found in C:\msys64\mingw64\bin\libgdk-4-1.dll

Im running windows 11 and this is the code:

use glib::clone;
use gtk::glib;
use gtk::prelude::*;

// When the application is launched…
fn on_activate(application: &gtk::Application) {
    // … create a new window …
    let window = gtk::ApplicationWindow::new(application);
    // … with a button in it …
    let button = gtk::Button::with_label("Hello World!");
    // … which closes the window when clicked
    button.connect_clicked(clone!(@weak window => move |_| window.close()));
    window.set_child(Some(&button));
    window.present();
}

fn main() {
    // Create a new application with the builder pattern
    let app = gtk::Application::builder()
        .application_id("com.github.gtk-rs.examples.basic")
        .build();
    app.connect_activate(on_activate);
    // Run the application
    app.run();
}

Make sure all the environment variables have been configured correctly.
Path, PKG_CONFIG_PATH, and Lib
Also, try moving the gtk entries to the top of the Path variable list.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.