On Wed, Apr 26, 2006 at 01:32:56PM -0700, Kelson Vibber wrote:
Sorry I didn't think to try this before, but I'm having problems building Dillo with a locally-installed FLTK. Up until now I've installed it into /usr/local, which has worked fine everywhere. If I install FLTK into ~/local (with ~/local/bin in the path), downloads.cc will not build.
configure is finding the correct includes and library paths, and dpi/Makefile has them as LIBFLTK_CXXFLAGS and LIBFLTK_LIBS. However, those paths don't seem to be used for building downloads.cc.
The Fine Manual suggests that the included patch should work. Testing here doesn't reveal any obvious problems; but the whole thing may be automake-version dependent. patch, autogen.sh (from cvs), configure as desired, and cd dpi && make -n downloads.o to confirm that the build line looks sane. Adding the new line outside of the "if DLGUI" section might allow the above command work even with configure --disable-dlgui -- I'll leave that as a matter of taste. (And it might be sensible to use AM_CXXFLAGS instead of CXXFLAGS. But I don't think it's necessary.) If you don't want to mess with automake in the tarfile, adding the same line towards the end of dpi/Makefile.in (optionally with a leading @DLGUI_TRUE@), or to dpi/Makefile (but you'll lose it after each configure) should have the same end result. All the best, f -- Francis Daly francis@daoine.org --- ./dpi/Makefile.am 2006-01-03 20:16:10.000000000 +0000 +++ ./dpi/Makefile.am 2006-04-27 09:38:26.000000000 +0100 @@ -36,6 +36,7 @@ file_dpi_LDFLAGS = @LIBPTHREAD_LDFLAGS@ bookmarks_dpi_SOURCES = bookmarks.c dpiutil.c dpiutil.h if DLGUI downloads_dpi_SOURCES = downloads.cc dpiutil.c dpiutil.h +downloads.o: CXXFLAGS += $(LIBFLTK_CXXFLAGS) else downloads_dpi_SOURCES = downloads-old.c dpiutil.c dpiutil.h endif