Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gtk4] #9112

Closed
tasiek30 opened this issue Jul 8, 2021 · 2 comments · Fixed by #9120
Closed

[gtk4] #9112

tasiek30 opened this issue Jul 8, 2021 · 2 comments · Fixed by #9120

Comments

@tasiek30
Copy link

tasiek30 commented Jul 8, 2021

Recently I decide to try GTK4 (currently I am using wxWidgets, but now i need something with more modern feel and look).

I’m working on Windows 10 Pro 64bit

I get library directly from MSYS:

pacman -S mingw-w64-i686-gtk4

Succesfully i compile example with mingw32 (path variable have C:\msys64\mingw32\bin):

gcc pkg-config --cflags gtk4 -o test test_c.c pkg-config --libs gtk4

test_c.c:

#include <gtk/gtk.h>
static void
activate (GtkApplication* app, gpointer user_data)
{
GtkWidget *window;
window = gtk_application_window_new (app);
gtk_window_set_title (GTK_WINDOW (window), “Window”);
gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
gtk_widget_show (window);
}
int main (int argc, char **argv)
{
GtkApplication *app;
int status;

app = gtk_application_new (“org.gtk.example”, G_APPLICATION_FLAGS_NONE);
g_signal_connect (app, “activate”, G_CALLBACK (activate), NULL);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);

return status;
}

But aplication won’t run:
Przechwytywanie

The procedure entry point vkAcquireNextImageKHR could not be located in the dynamic linked library C:/msys64/mingw32/bin/libgtk-4-1.dll

So i decide to try x64 version:

pacman -S mingw-w64-x86_64-gtk4

and compile with mingw64 (path variable now have C:\msys64\mingw64\bin):

gcc pkg-config --cflags gtk4 -o test test_c.c pkg-config --libs gtk4

and application sucessfully run.

Also i try to use mingw32 and GTK3 :

gcc pkg-config --cflags gtk+-3.0 -o test test_c.c pkg-config --libs gtk+-3.0

and application sucessfully run.

Is it possible to run GTK4 32 bit application on 64 bit machine?

Przechwytywanie2

@ZachBacon
Copy link
Contributor

It is, it just looks like gtk4 for 32 but needs to be rebuilt maybe.

@lazka
Copy link
Member

lazka commented Jul 10, 2021

Rebuild will be in the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants