Re: Can't compile Dillo 3.0.3
Johannes Hofmann <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, May 18, 2013 at 02:47:56PM +0200, Sebastian Geerken wrote: > On Sat, May 11, August Karlstrom wrote: > > Linking with libX11 is what's missing: > > > > LIBS=-lX11 ./configure > > make > > make install > > > > This means that libX11 needs to be added to the build scripts. > > On Mon, May 13, August Karlstrom wrote: > > This is what I get: > > > > $ fltk-config --ldflags > > -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -lfltk > > $ fltk-config --ldstaticflags > > -Wl,-Bsymbolic-functions /usr/lib/x86_64-linux-gnu/libfltk.a -lXext > > -lXft -lfontconfig -lfontconfig -lXinerama -ldl -lm -lX11 > > > > >The configure script of dillo uses "--ldflags", which is used for > > >dynamic linking against "libfltk.so", while "--ldstaticflags" is used > > >for linking against "libfltk.a". Which files of the two do you have in > > >the respective directory (/usr/lib/x86_64-linux-gnu/)? My guess is > > >that "libfltk.so" does not exist and so dillo is linked statically. > > > > I do have both the dynamic and the static libraries: > > > > $ ls /usr/lib/x86_64-linux-gnu/libfltk* > > /usr/lib/x86_64-linux-gnu/libfltk.a > > [..] > > /usr/lib/x86_64-linux-gnu/libfltk.so > > /usr/lib/x86_64-linux-gnu/libfltk.so.1.3 > > X11 is needed in src/xembed.cc. It seems that on most systems it is > linked indirectly, (src/dillo -> libfltk.so -> libX11.so), on others > not, so that an additional "-lX11" is necessary. Should we add it > generally? It does not harm; we have only to care about other systems > than X11. Could we check for libX11 in configure and link explicitely against it if available but not fail otherwise? That way dillo should still compile on OSX. Johannes