dependencies - mearns/raytrace GitHub Wiki
Installing GTK+ 2.x (and pkg_config) for Windows
- Grab the all-in-one bundle (32bit) from this page.
- Extract it to somewhere (without spaces) like
C:\apps\pf\gtk+-2.0. - Add the bin directory (e.g.,
C:\apps\pf\gtk+-2.0\bin) to your systemPATH. - Download the pkg-config windows binary.
- From this archive, extract
bin/pkg-config.exeand put it somewhere on your systemPATH(such asC:\apps\bin). - Download the glib windows binary.
- From this archive, extract all the files from
bin/and put them somewhere on your systemPATH(such asC:\apps\lib). - Download the gettext windows binary.
- From this archive, extract
bin/intl.dlland put it on your systemPATH(such asC:\apps\lib). - Add an environment variable
PKG_CONFIG_PATH, set it equal to thelib/pkgconfigdirectory in your gtk+ directory (e.g.,C:\apps\pf\gtk+-2.0\lib\pkgconfig). - Open a new command window (to make sure it has all env var updates) and type
pkg-config --cflags gtk+-2.0. If it gives you an error, you're screwed. If it spits out some GCC compiler flags, you should be in good shape.
Standard mingw is 32-bit, and can't successfully read the 64-bit libraries in the 64-bit releases. There is a 64-bit mingw, but I haven't had a lot of luck with it in general.
If you build ok but get a DLL error when you try to run, you might have other versions of the libraries earlier on your path, especially if you have GTK+-3.x installed somewhere.