Hello,
I've downloaded the GTK3 bindings from Lazarus-ccr as described here:
http://wiki.freepascal.org/Gtk%2B3#Info.
When I now want to compile the HelloWorld example, I get a linker error:
HelloWorld.lpr(47,1) Error: Error while linking
HelloWorld.lpr(47,1) Verbose: There were 1 errors compiling module, stopping
When I execute the linker command manually and add the
-verbose option, I get some details on what's going on:
[...]
/home/marc/FreePascalProjects/lazarus-ccr-svn-r6778-bindings-gtk3/lib/x86_64-linux/gdkpixbuf2.o: In function `GETTEXT':
/home/marc/FreePascalProjects/lazarus-ccr-svn-r6778-bindings-gtk3//gdkpixbuf2.pas:469: undefined reference to `gdk_pixbuf_gettext'
And when I have a look into the gdkpixbuf2.pas file on line 469, there is a reference to a function called
gdk_pixbuf_gettext which is causing the problems:
function TGdkPixbuf.gettext(msgid: Pgchar): Pgchar; cdecl;
begin
Result := GdkPixbuf2.gdk_pixbuf_gettext(msgid);
end;
The function is defined in the same file:
function gdk_pixbuf_gettext(msgid: Pgchar): Pgchar; cdecl; external;
and after a little research I found out, that this function should be defined in a header file called
gdk-pixbuf-i18n.h. Although I installed all GTK3 development files, there is no package on Ubuntu which provides that file... I expected this file to be installed with the
libgdk-pixbuf2.0-dev package.
Any hints are really welcome!