On Wednesday 05 September 2007 18:18, Michel Meyers wrote: > Kern Sibbald wrote: > > On Wednesday 05 September 2007 14:46, Michel Meyers wrote: > >> Kern Sibbald wrote: > >>> 3. specify the include directory using --with-qwt and the incorrectly > >>> (IMO) named library using the LIBS environment variable. > >>> > >>> Since I did not try item 3, I'm not sure it will work. > >> > >> I only tried --with-qwt so far and it seems to get ignored when > >> specified on its own. > >> > >> I removed the other libqwt (I'm guessing they name them differently so > >> that they can coexist) and ran configure with > >> --with-qwt=/usr/includes/qwt-qt4 and it fails: > >> configure: error: Unable to find qwt package needed by bat > >> > >> I guess that's my biggest qualm right now: It ignores me when I tell it > >> where to look. > > > > If I remember right, the packager had changed the name of the .h file > > that Bacula is looking for. > > Oh no, the .h file is fine. It's called qwt.h. The problem IMO is that > the library is not called qwt but qwt-qt4 (resides in /usr/lib), so the > -l parameter in Makefile and bat.pro needs to be changed from -lqwt to > -lqwt-qt4.
OK. > > I've found a way to make configure take the exact directory that I give > it on the --with-qwt paramter (simply by duplicating the current 'if' > loop that looks for qwt.h and changing the condition slightly) but I > don't know how to influcence the -lqwt bit on the LIBS line. Well, probably the easiest is to modify configure.in to set the library name directory in the LIBS environment variable as most of the other --with-xx do, and to remove the -lqwt from bat.pro.in. I think the qmake process uses LIBS directly, otherwise, we can put it into a substitution variable and hammer it into bat.pro.in. For example, you could create an AC_SUBST variable named QWT_LIBS ... This would probably be a bit clearer than using my LIBS suggestion above. I.e. one would replace the -lqwt with @QWT_LIBS@ in bat.pro.in, and in the configure.in code you would add an QWT_LIBS=-lqwt-xxx the an AC_SUBST(QWT_LIBS). > > > If I remember right, that is where I gave up > > concluding the package was broken. Evidently I remembered incorrectly. Regards, Kern > > > > What is in /usr/include/qwt-qt4 on your system? > > (see below) > > > By the way, you *are* using /usr/include/qwt-qt4 and not > > /usr/includes/qwt-qt4 aren't you? > > Yes. There is no /usr/includes directory on these systems (Debian > lenny/testing). > > Greetings, > Michel > > shodan:~# ls /usr/include/qwt-qt4/ -1 > qwt_abstract_scale_draw.h > qwt_abstract_scale.h > qwt_abstract_slider.h > qwt_analog_clock.h > qwt_array.h > qwt_arrow_button.h > qwt_color_map.h > qwt_compass.h > qwt_compass_rose.h > qwt_counter.h > qwt_curve_fitter.h > qwt_data.h > qwt_dial.h > qwt_dial_needle.h > qwt_double_interval.h > qwt_double_range.h > qwt_double_rect.h > qwt_dyngrid_layout.h > qwt_event_pattern.h > qwt_global.h > qwt.h > qwt_interval_data.h > qwt_knob.h > qwt_layout_metrics.h > qwt_legend.h > qwt_legend_item.h > qwt_math.h > qwt_paint_buffer.h > qwt_painter.h > qwt_panner.h > qwt_picker.h > qwt_picker_machine.h > qwt_plot_canvas.h > qwt_plot_curve.h > qwt_plot_dict.h > qwt_plot_grid.h > qwt_plot.h > qwt_plot_item.h > qwt_plot_layout.h > qwt_plot_magnifier.h > qwt_plot_marker.h > qwt_plot_panner.h > qwt_plot_picker.h > qwt_plot_printfilter.h > qwt_plot_rasteritem.h > qwt_plot_scaleitem.h > qwt_plot_spectrogram.h > qwt_plot_svgitem.h > qwt_plot_zoomer.h > qwt_polygon.h > qwt_raster_data.h > qwt_rect.h > qwt_round_scale_draw.h > qwt_scale_div.h > qwt_scale_draw.h > qwt_scale_engine.h > qwt_scale_map.h > qwt_scale_widget.h > qwt_slider.h > qwt_spline.h > qwt_symbol.h > qwt_text_engine.h > qwt_text.h > qwt_text_label.h > qwt_thermo.h > qwt_valuelist.h > qwt_wheel.h > shodan:~# ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
