1 |
On 02/24/2014 02:06 AM, eroen wrote: |
2 |
> On Sun, 23 Feb 2014 17:54:07 +0100, Fox <halfsocialfox@×××××.com> wrote: |
3 |
>> Hello, |
4 |
>> I am trying to compile fltk-1.1.10 both using an ebuild from [1] and |
5 |
>> with just the downloaded source. I think this version needs libpng |
6 |
>> 1.2 which is installed in one of the slots. |
7 |
>> |
8 |
>> Using the source code and cmake with FLTK_USE_SYSTEM_PNG off it |
9 |
>> complies fine. I can see that it automatically points the libs to |
10 |
>> /usr/lib64/libpng12.so.0. |
11 |
>> |
12 |
>> The ebuild does not use cmake, it uses autoconf/automake which is |
13 |
>> also suported. I tried to build the code this way with |
14 |
>> --disable/enable-localpng with no luck. |
15 |
>> |
16 |
>> The problem is the used png.h file. Which is /usr/include/png.h which |
17 |
>> points to /usr/include/libpng16/png.h but I need the one from version |
18 |
>> 1.2. |
19 |
>> |
20 |
>> I thought slots would allow to have both versions of the library and |
21 |
>> use them but only one include file is present: |
22 |
>> $ equery f libpng:1.2 |
23 |
>> * Searching for libpng:1.2 ... |
24 |
>> * Contents of media-libs/libpng-1.2.50-r1: |
25 |
>> /usr |
26 |
>> /usr/lib64 |
27 |
>> /usr/lib64/libpng12.so.0 |
28 |
>> /usr/share |
29 |
>> /usr/share/doc |
30 |
>> /usr/share/doc/libpng-1.2.50-r1 |
31 |
>> /usr/share/doc/libpng-1.2.50-r1/CHANGES.bz2 |
32 |
>> /usr/share/doc/libpng-1.2.50-r1/README.bz2 |
33 |
>> /usr/share/doc/libpng-1.2.50-r1/TODO.bz2 |
34 |
>> |
35 |
>> Any idea on how to solve this problem? Some how it should be possible |
36 |
>> maybe not using the system lib like I did with cmake but I can't |
37 |
>> figure it out how to do it with autoconf/automake. |
38 |
>> |
39 |
>> Thank you, |
40 |
>> Quim |
41 |
>> |
42 |
>> |
43 |
>> [1] |
44 |
>> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/fltk/fltk-1.1.10.ebuild?view=log |
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 |
I didn't know about this patch, this should make the job. |