gtk-win32 | UNMAINTAINED ; Use gvsbuild
kandi X-RAY | gtk-win32 Summary
kandi X-RAY | gtk-win32 Summary
Here you can download a GTK+ 2 bundle (and a few additional libraries) built with Visual Studio 2015. HexChat for Windows is built using this bundle.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gtk-win32
gtk-win32 Key Features
gtk-win32 Examples and Code Snippets
Community Discussions
Trending Discussions on gtk-win32
QUESTION
I want to compile a code in GTK+3. Without using MSYS2 nor Visual Studio. I'm getting "undefined reference to"
First, tried with this tutorial from the official page: https://www.gtk.org/download/windows.php but it was a mess using MSYS2; plus, i dont want a linux like nor a unix like environment (a lot less Visual Studio).
I downloaded the "all in one bundle" for version 2, setted up the enviroment variable an all that stuff. Everything worked fine, the code compiled! (a code from version 2). Then i tried to change to version 3, downloaded the all in one bundle (64 bits) from: http://www.tarnyko.net/dl/gtk.htm
Of course, the enviroment variable was updated, and the verions of the libraries in the compiling line too. And the program is for version 3, specifically the first in the official site: https://developer.gnome.org/gtk3/stable/gtk-getting-started.html. Didn't worked.
Then, followed this tutorial: http://www.tarnyko.net/repo/gtk3_build_system/tutorial/gtk3_tutorial.htm
I rewroted the compiling line with the result of the command: pkg-config --cflags --libs gtk+-3.0
(as the tutorial above says)
the compilation line for the version 2 (works right) is:
...ANSWER
Answered 2019-Jun-27 at 09:47First, forget about using GTK+ 2, it's going to be deprecated once GTK+ 4 is released (probably this summer). Use GTK+ 3, which has been stable for years.
Second, forget everything about the instructions found on Tarniko's website. While he did a great job at the time, these instructions are now completely outdated, and the precompiled binaries are for outdated versions of GTK+ (3.6 was released in september 2012, while latest release is 3.24 released in september 2018)
There is no official precompiled binaries other than those provided by MSYS or the vcpkg packages. You may find some more up to date and unofficial bundles, like this one (never tried it), but getting binaries from an untrusted source may be a security issue.
Next, you need a toolchain if you actually want to build something. You seem to already have gcc installed, how did you install it? If you want to use precompiled binaries, you will have to install and configure the toolchain by yourself as this is specific to your setup. Usually to avoid compatibility problems, you want the same toolchain that was used to build your dependencies, and that's what MSYS provides.
In last resort, you might just build the whole thing from source, as recent GTK+ versions can be built using the Meson build system which should build fine on Windows.
But really, if you already plan to use gcc, just do yourself a favor and install MSYS2. You'll get GTK+, a toolchain, as well as bindings, and other tools like glade and devhelp, which (at least for Glade) will probably need if you want to do some serious GTK+ development.
QUESTION
After a serious system crash, I had to reinstall everything (Windows 10), including Code::Blocks (version 16.01) to develop my code using the GTK+2 library. I ended up with a strange situation that I can't solve.
Some of my programs are compiling correctly, while others don't. Here is a copy of the build log output for an example that does not compile correctly:
...ANSWER
Answered 2018-Jan-02 at 15:02The logs tell you the error you have is a link error, so it's clear that you need to check the differences between the link parameters.
I first copy/pasted the link commands you gave in 2 different files. Then used a diff tool that can tell what's different within a single line: meld. The result is that you're missing some libraries, which are not given to the linker in your non-working setup.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gtk-win32
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page