Newbie Questins
Tor Lillqvist <[email protected]> Thu, 6 Mar 2003 01:00:29 +0000
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
wrongry writes: > I have pkg-config in the base gtkWin32 directory but get the > following error when compiling a simple gtk+ app. > > 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 > > I know pkg-config sends the correct flags from these two comands: > > sh-2.04$ pkg-config --cflags gtk+-2.0 > -IC:/GTKWIN32/include/gtk-2.0 -IC:/GTKWIN32/include - > IC:/GTKWIN32/lib/gtk-2.0/include -IC:/GTKWIN32/include/atk-1.0 - > IC:/GTKWIN32/include/pango-1.0 -IC:/GTKWIN32/include/glib-2.0 - > IC:/GTKWIN32/lib/glib-2.0/include > sh-2.04$ > sh-2.04$ pkg-config --libs gtk+-2.0 > -LC:/GTKWIN32/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 - > lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 - > lgmodule-2.0 -lglib-2.0 -lintl -liconv > > Where is the problem? Might be a MSYS problem. pkg-config outputs -LC:/GTKWIN32/lib, but MSYS for some reason turns that into -LC;C:\MSYS\1.0\GTKWIN32\lib before invoking gcc. Are you using the latest version of MSYS? Write a test program that simply prints out its argv, and invoke it like gcc above, and see if the -L flag gets mangled oddly. > when I try to run the app the following error is produced when I > use pixbuf to load a jpeg image: > Unable to load image-loading module: C:\GTKWIN32/lib/gtk- > 2.0/2.2.0/loaders/libpixbufloader-jpeg.dll: One of the library files > needed to run this application cannot be found. Do you have the libjpeg.dll that libpixbufloader-jpeg.dll requires in your PATH? --tml