Step One. Eeks what to do next
Tor Lillqvist <[email protected]>
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
Dark Elf writes: > I want to know how to compile the following code. I have vc6 but have no > idea how to use it. > I am currently downloading these files. Unzip the following in some folder, for instance into X:\gstuff > atk-1.0.3.tar.gz > pango-dev-1.0.5-20021201.zip > atk-dev-1.0.3-20020821.zip > pango-1.0.5-20021201.zip > atk-1.0.3-20020821.zip > gtk+-dev-2.0.9-20021201.zip > gtk+-2.0.9-20021201.zip Also, from www.gimp.org/win32/downloads.html, download the pkgconfig-0.14.zip and libintl-0.10.40-tml-20020904.zip files and unzip them into the same place. Then follow the link to the libiconv site and download that, unzip it, and put its DLLs and LIBs in the X:\gstuff\lib folder (and its EXEs in the X:\gstuff\bin folder, although they aren't really needed to run or develop GTK+-using software). Then add X:\gstuff\bin and X:\gstuff\lib to your PATH environment variable. There are several ways to proceed. Here is one: In a Command Prompt window, run: C:\> pkg-config --msvc-syntax --cflags gtk+-2.0 and C:\> pkg-config --msvc-syntax --libs gtk+-2.0 Copy the output from these two commands somewhere. For instance, redirect the output of pkg-config into some text file which you edit into a .bat file that you use to compile your application. (The Right Way is to use nmake and makefiles, but if that's too hard, .bat files will do.) Then, assuming you are in the folder where the source file you want to compile is, and that you have stored the output from the above pkg-config runs in the GTKCFLAGS and GTKLIBS environment variables, run: C:\mysources\samples\hello> cl -MD %gtkcflags% sample.c /link %gtklibs% --tml