On 11/09/13 12:48, lux-integ wrote: > On Wednesday 11 September 2013 13:04:28 David Brodie wrote: > >> >> The easiest thing to try would be to install libpng-1.5.?? (the latest >> 1.5 version) and build netpbm, then re-install libpng-1.6.2, without >> removing the 1.5.?? version - if you run 'ldd' on the netpbm binary you >> should see a line something like: >> >> libpng15.so.15 => /usr/lib/libpng15.so.15 (0xb54f6000) >> >> so it should work, even though the link for libpng.so on /usr/lib now >> points to libpng16.so >> > > I could think of another way that minimise risks of breakages > suppose one:- > > --a) sets a prefix for netpbm say NETPMBPLACE=/path/to/somewhere > --b) installs say libpng-1.5.17 to say $NETPMBPLACE/lib > --d) configures the netpbm sources to look in $NETPMBPLACE/lib for libpng ( > this is the tricky part -as netpbm does not use autotools, waf, cmake i.e. a > modern well-documented build system ) > > I do not know > if one could then set a PKG_CONFIG_PATH=$NETPMBPLACE/lib/pkgconfig > THEN if one could insert a line such as this > LIBPNG = $NETPMBPLACE/lib/libpng.so > PNGHDR_DIR = `pkg-config --variable=includedir libpng` > PNGVER = 1.5.17 > > in a created > Makefile.config > > as examplified here:- > ( http://cblfs.cross-lfs.org/index.php/Netpbm) ) > > could one? > > please advice > > sincerely > luxInteg >
You could, in theory, hack the build files, but I think it is simpler to install both versions - for example, my (fairly old) OpenSuSE system has libpng 1.2, 1.3, and 1.4 installed. The linker will either use the option '-lpng' directly, or use pkgconfig with 'libpng.pc' in /usr/lib/pkgconfig, so in either case it will pick up the last version you installed, via the respective symlinks. David -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
