RE: Newbie Questins
[email protected] Wed, 5 Mar 2003 12:08:52 -0000
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <B1F38D7B53615140BCEA6677DF9F2F8C01111281@i2km11-ukbr.domain1.systemhost.net> |
Ok. This should be easy, it takes me 10 minutes to get the WHOLE gtk library thing setup on windows on my box. Here is what you want to do, download all the file from Tor's site, extract them ALL to a common directory, say gtkWin32 (probably easier if you ignore case and make it simple - something like 'top'). Then you want to edit your environment (if on windows 4/2k/xp) or your autoexec.bat (if any other windows os) and add to the path the c:\top\lib and c:\top\bin directories. This contains the pkg-config (so you dont have to copy it anywhere) and all the libs for your apps to find when running. From there... all you should have to do is use something like below: (for object files) gcc -c -Wall -g -mms-bitfields -I/c/projects/OpsConsoleSystem/Tools `pkg-config glib-2.0 gdk-2.0 gtk+-2.0 libglade-2.0 --cflags` oc_help.c -o Win32MinGW/oc_help.o (for linking) gcc -o Win32MinGW/ops_console Win32MinGW/oc_help.o -L/c/projects/OpsConsoleSystem/Tools/Win32MinGW -mwindows -lTools `pkg-config glib-2.0 gdk-2.0 gtk+-2.0 libglade-2.0 --libs` -lgdi32 > On my system I have: > C:\MSYS > C:\MinGW > C:\gtkWin32 > > I have pkg-config in the base gtkWin32 directory but get the > following error when compiling a simple gtk+ app. > pkg-config should be in c:\gtkWin32\bin, not c:\gtkWin32. > sh-2.04$ gcc -Wall -g iv.c -o iv `pkg-config --cflags gtk+-2.0` \ > `pkg-config --libs gtk+-2.0` > gcc.exe: -LC;C:\MSYS\1.0\GTKWIN32\lib: No such file or directory > Perhaps this is a case inconsistancy? Should C:\MSYS\1.0\GTKWIN32\lib be c:\msys\gtkWin32\lib ? Plus C:\MSYS\1.0\GTKWIN32\lib should be c:\gtkWin32\lib or /c/gtkWin32/lib?