Extension Development :: pkgconfig



Actually libXrender is in the base system, but no dev files of course.  I had this same issue when building Xchat.  It insisted on the .la file. I was building it against xorg72, and at the time I just compiled my own libXrender and installed it in xorg72 to provide the .la and .a file.  That is why I asked earlier about xorg72 including the .a and .la files in the extension.  So I am pretty sure if xorg72 is loaded and the pkgconfig stuff set that the compile error would go away.  And xorg72 did not end up as a dependency with Xchat
I'd looked in  /opt/gnu-utils (from an old gnu-utils) and found libXrender so I assumed that was where it came from, but you're right it's also in /KNOPPIX/X11R6/lib

I'd forgotten I'd submitted xorg72-dev.tar.gz - the .a and .la files for xorg72 are there - this doesn't get round not having the dev files for libXrender in the dsl base, but I never figured out where it came from so I couldn't include the dev files in compile-3.3.5

As you say, you could probably get away with compiling against xorg72 - not exactly the "done thing", but it could well work...

I've not had a chance to do much with this over the weekend, but at the end of last week I loded up xorg72 & the dev.tar.gz - only problem is the tar.gz couldn't load over xorg72,uci as it is read-only. Once I'v managed to extract xorg72 to a r-w filesystem  I'll let you know how I go.

My reason for trying to recompile gtkam is that I get nothing but segmentation faults with the version in the repository - especially when trying to start downloading images. Someone else rported this recently & it reminded me to get on with attempting a recompilation with the newest version.

OK,

I've remounted xorg72.uci as rw, mounted the devs - managed to recompile libXrender so I have the .la files. Got libusb, libexif, libexif-gtk,libgphoto2, & gphoto2,  compiled & installed. Now trying to compile gtkam. the configre script exits ok:

Code Sample


Configuration (gtkam 0.1.15):

 Build
   Source code location:          .
   Compiler:                      gcc

 Features
   Use translations:              yes
   libgphoto2:                    yes
   bonobo support:                no (bonobo-activation, bononoboui libs)
   Gnome support:                 no (gnomeui lib)
   GTKAM_C_IDENTIFIER:            file:$(datadir)/gnome/help/gtkam/C/gtkam.xml
   Gimp support:                  no
   libexif:                       yes
   libexif-gtk:                   yes

You may run "make" and "make install" now.


BUT.... make fails:

Code Sample

gcc -g -O2 -Wall -g -o gtkam gtkam-gtkam-debug.o gtkam-gtkam-exif.o gtkam-gtkam-                                                                                     main.o gtkam-main.o  libgtkam.a -L/usr/local/lib /usr/local/lib/libexif-gtk.so -                                                                                     L/usr/X11R6/lib -L/opt/xorg72/lib /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11                                                                                     -2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoca                                                                                     iro-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcair                                                                                     o.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lz /usr/lib/libexpat.so                                                                                      -lpng12 /usr/local/lib/libXrender.so -lSM -lICE -lX11 /usr/lib/libgobject-2.0.so                                                                                      /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so /usr/local/lib/libgphoto2.so                                                                                      -L/opt/build/lib /usr/local/lib/libgphoto2_port.so /opt/compile-3.3.5/lib/liblt                                                                                     dl.so -ldl /usr/local/lib/libexif.so -lm /usr/local/lib/libusb.so  
/usr/lib/libcairo.so: undefined reference to `png_get_IHDR@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_destroy_write_struct@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_write_end@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_tRNS_to_alpha@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_write_fn@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_destroy_read_struct@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_create_read_struct@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_palette_to_rgb@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_read_fn@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_bKGD@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_filler@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_read_image@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_interlace_handling@PNG12_0                                                                                     '
/usr/lib/libcairo.so: undefined reference to `png_get_io_ptr@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_error@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_read_end@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_read_info@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_read_update_info@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_create_write_struct@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_IHDR@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_get_valid@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_packing@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_create_info_struct@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_convert_from_time_t@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_gray_to_rgb@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_write_info@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_write_image@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_read_user_transform_fn@PNG                                                                                     12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_gray_1_2_4_to_8@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_tIME@PNG12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_write_user_transform_fn@PN                                                                                     G12_0'
/usr/lib/libcairo.so: undefined reference to `png_set_strip_16@PNG12_0'
collect2: ld returned 1 exit status
make[2]: *** [gtkam] Error 1
make[2]: Leaving directory `/mnt/hda/gtkam-0.1.15/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/hda/gtkam-0.1.15'
make: *** [all] Error 2
dsl@box:/mnt/hda/gtkam-0.1.15$


I've used the latest version of compile.3.3.5 from the testing area & gtk 2.10.9 + the dev headers for that version as well.

You might be using the wrong png version? afaik theres 3(?) different versions if youre using compile-3.3.5?
Next Page...
original here.