Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 2 3 [4] 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: pkgconfig, answered from a different thread< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: May 12 2008,06:46 QUOTE

I'm not at a dsl machine right now, which libpng* are there in gtk-+2.10.9? Are they in /usr/lib or /usr/local/lib?
Back to top
Profile PM 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: May 12 2008,07:15 QUOTE

/usr/local/lib

They are:
Code Sample
dsl@box:/opt/gtk+-2.10.9/usr/local/lib$ ls
libpng.so            libpng.so.3.1.2.8    libpng12.so.0
libpng.so.3          libpng12.so          libpng12.so.0.1.2.8



I have added the following to the Makefile in the top level & src directories I am using to compile gtkam from:

Code Sample
PNG_LIBS = -L/usr/local/lib  -lpng
PNG_CFLAGS = -I/usr/local/include


/usr/local/lib has the libpng & libpng12 files in it (I symlinked them to to the ones in /opt/gtk-+2.10.9/usr/local/lib). There also seem to be copies in /usr/lib. I symlinked them the same as above.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: May 12 2008,11:06 QUOTE

Quote
PNG_LIBS = -L/usr/local/lib  -lpng
PNG_CFLAGS = -I/usr/local/include

- sorry if I might have mislead you, this was just my guess at what the Makefile might say. If it doesn't say this, then I don't think adding the above would have any effect.

I was concerned that I might be be causing your problems by a mistake in compile-3.3.5, so I tried compiling gtkam to /opt. It seems to compile without problems against cairo-1.2/gtk+-2.10, although I cannot test it as I do not have a webcam, camera, etc handy
Back to top
Profile PM 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: May 12 2008,23:23 QUOTE

I can't get gtkam to compile under any conditions - even adding to the makefile. What version are yo compiling & what extensions / libraries do you have loaded when doing so? What version of DSL are you running the compile on?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: May 13 2008,04:08 QUOTE

Using dsl-3.4.11, I loaded the cairo-1.2.uci, gtk+-2.10.uci, xorg72.uci & compile-3.3.5.uci extensions - note that you need to be careful that the fontconfig (fc-*) and freetype symlinks in /opt/bin are pointing to cairo-1.2 and not to compile-3.3.5. [I guess this means that I missed these symlinks out out of user.tar.gz in cairo-1.2]

The compilation went something like this:
Code Sample
$ cp -a /opt/compile-3.3.5/include /opt
$ export CPPFLAGS=-I/opt/include
[libusb-0.1.12]
$ ./configure --prefix=/opt/gtkam --enable-shared --disable-static
[make, make install]
$ sudo ln -s /opt/gtkam/bin/* /opt/bin
$ export PKG_CONFIG_PATH=/opt/gtkam/lib/pkgconfig:/opt/cairo-1.2/lib/pkgconfig:/opt/gtk+2.10/lib/pkgconfig:/opt/xorg72/lib/pkgconfig
[libexif-0.6.16]
$ ./configure --prefix=/opt/gtkam --enable-shared --disable-static --disable-docs
[make, make install]
$ sudo ln -s /opt/gtkam/include/libexif/* /opt/gtkam/include
[libexif-gtk-0.3.5]
$ ./configure --prefix=/opt/gtkam --enable-shared --disable-static
[make, make install]
[libgphoto2-2.4.1]
$ ./configure --prefix=/opt/gtkam --enable-shared --disable-static
[make, make install]
[gphoto2-2.4.1]
$ ./configure --prefix=/opt/gtkam --enable-shared --disable-static
[make, make install]
[gtkam-0.1.15]
$ ./configure --prefix=/opt/gtkam --enable-shared --disable-static
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
[make, make install]

- after making a *uci out of /opt/gtkam, I rebooted and loaded cairo-1.2 and gtk+-2.10 but not compile-3.3.5 nor xorg72 and got this error:
Code Sample
$ LD_LIBRARY_PATH=/opt/gtkam/lib /opt/gtkam/bin/gtkam
/opt/gtkam/bin/gtkam: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory
[fix]
$ sudo cp /opt/compile-3.3.5/lib/libltdl* /opt/gtkam/lib
[redo *uci]


'hope this helps  :)
Back to top
Profile PM 
24 replies since May 08 2008,09:26 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 2 3 [4] 5 >/
reply to topic new topic new poll
Quick Reply: pkgconfig

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code