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
GTK+3 application won't run on Windows #3794
Comments
I am essentially having the same issue but it won't work even from the MINGW shell. I am also getting 2 errors but they are a bit different:
and
|
@TheDcoder Did you installed the packages list on https://gtk.org/download/windows.php ? I also asked this question on StackOverflow. |
I did install the packages for GTK, otherwise the compiler would not have found the headers and libs during compile time :)
…On 24 May 2018 8:29:44 AM IST, liudonghua ***@***.***> wrote:
@TheDcoder Did you installed the packages list on
https://gtk.org/download/windows.php ?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/Alexpux/MINGW-packages/issues/3794#issuecomment-391572255
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
@TheDcoder I bet you have two zlib1.dll's on your system. What is the output on your MSYS2 shell for:
|
@tschoonj You were right! Albeit
The rouge It was tricky, but thanks! |
@tschoonj Thanks, you get the point, it's the zlib1.dll priority problem. |
It is very unhealthy to put random things into PATH. I would suggest either adjusting the installation instructions to mention this problem, or adding this to the List Of Most Common Issues, or writing a tool that would run in post-install step of any package and check for exe and dll files in PATH shadowing the exe and dll files in mingw bin subdirectory. |
@LRN While it is true that it is not a good practice to add random things to PATH, most additions cannot be helped as they are performed by installers of other programs on the computer. And if you are you developer who deals with C you should know what to put in your PATH anyway 😄 During deployment, I prefer to place all the required DLLs in the same folder as my executable so that they take priority over items in PATH. |
When I try the
example-0.c
on https://developer.gnome.org/gtk3/stable/gtk-getting-started.html, I can build successfully in mycmd
(I have configured the PATH environment variable), but run with the errors as the snapshot below.Also note if I didn't close the first error msgbox quickly, the second error msgbox won't shown. This is really strange.
However, I can run it (
./example-0.exe
) without this problem in myC:\msys32\mingw32.exe
The text was updated successfully, but these errors were encountered: