1 |
On Sun, 23 Feb 2014 17:54:07 +0100, Fox <halfsocialfox@×××××.com> wrote: |
2 |
> Hello, |
3 |
> I am trying to compile fltk-1.1.10 both using an ebuild from [1] and |
4 |
> with just the downloaded source. I think this version needs libpng |
5 |
> 1.2 which is installed in one of the slots. |
6 |
> |
7 |
> Using the source code and cmake with FLTK_USE_SYSTEM_PNG off it |
8 |
> complies fine. I can see that it automatically points the libs to |
9 |
> /usr/lib64/libpng12.so.0. |
10 |
> |
11 |
> The ebuild does not use cmake, it uses autoconf/automake which is |
12 |
> also suported. I tried to build the code this way with |
13 |
> --disable/enable-localpng with no luck. |
14 |
> |
15 |
> The problem is the used png.h file. Which is /usr/include/png.h which |
16 |
> points to /usr/include/libpng16/png.h but I need the one from version |
17 |
> 1.2. |
18 |
> |
19 |
> I thought slots would allow to have both versions of the library and |
20 |
> use them but only one include file is present: |
21 |
> $ equery f libpng:1.2 |
22 |
> * Searching for libpng:1.2 ... |
23 |
> * Contents of media-libs/libpng-1.2.50-r1: |
24 |
> /usr |
25 |
> /usr/lib64 |
26 |
> /usr/lib64/libpng12.so.0 |
27 |
> /usr/share |
28 |
> /usr/share/doc |
29 |
> /usr/share/doc/libpng-1.2.50-r1 |
30 |
> /usr/share/doc/libpng-1.2.50-r1/CHANGES.bz2 |
31 |
> /usr/share/doc/libpng-1.2.50-r1/README.bz2 |
32 |
> /usr/share/doc/libpng-1.2.50-r1/TODO.bz2 |
33 |
> |
34 |
> Any idea on how to solve this problem? Some how it should be possible |
35 |
> maybe not using the system lib like I did with cmake but I can't |
36 |
> figure it out how to do it with autoconf/automake. |
37 |
> |
38 |
> Thank you, |
39 |
> Quim |
40 |
> |
41 |
> |
42 |
> [1] |
43 |
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/fltk/fltk-1.1.10.ebuild?view=log |
44 |
> |
45 |
|
46 |
The libpng slots, apart from "0", only install the shared library files, |
47 |
not the headers. They are intended for compatibility with old binaries |
48 |
for which no source code is available, not for building new software. |
49 |
|
50 |
Afaik the common opinion is that different libpng versions are mostly |
51 |
source compatible, and minor patching to other things is preferable to |
52 |
inventing a non-standard way to make the libpng implementation |
53 |
switchable at build-time. |
54 |
|
55 |
Is there a reason you can not use fltk-1.1.10-r2.ebuild [1] in stead, |
56 |
which incorporates a patch [2] for libpng-1.5 (which probably still |
57 |
works with 1.6), as well as various other fixes? |
58 |
|
59 |
1: |
60 |
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/fltk/fltk-1.1.10-r2.ebuild |
61 |
2: |
62 |
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/fltk/files/fltk-1.1.10-libpng15.patch |
63 |
|
64 |
-- |
65 |
eroen |