My professor has given me the task of creating a GUI for his programming language for use on Windows. Specifically I’m tasked with using GTK and coding it in C. I’m not too worried about the syntax of using GTK, but I’ve had a lot of difficulty in producing a working .exe on windows. Part of this is because I’m a mac user. I’m using a virtual windows machine to try and develop and compile the program so I don’t have to go through the hassle of cross compiling.
In my windows 11 virtual machine, I’m compiling through msys2 using:
gcc hello.c -o hello.exe
pkg-config --cflags --libs gtk4
The resulting .exe cannot be simply clicked on and run without a DLL error. So I have to run it from the command prompt after adding system path variables.
From the command prompt, it all works except for keyboard input. I get the Gdk-WARNING “Failed to load keyboard layout DLL”
The only keypress that executes an action is the backspace. None of the letters can be interpreted.
I tried regsvr32 on the specific DLL it calls out, “the module KbdPrlUS.dll was loaded, but the entry-point DllRegisterServices was not found”
This project has not been very straight forward from the jump and I’m just looking for advice on how to get back onto a productive path toward producing a windows .exe