From: <tim...@en...> - 2006-06-27 21:47:42
|
Ethan Merritt wrote: > On Tuesday 27 June 2006 01:48 pm, Timoth=C3=A9e Lecomte wrote: > =20 >> Ethan Merritt wrote: >> =20 >>> As I already said, the configure process works fine without this. >>> =20 >> That succeeds because of a "chain reaction" : wxGTK (wxWidgets based >> on gtk) links against gtk, and consequently against pango and cairo. >> But it is not guaranteed that you'll be using the gtk port of >> wxWidgets. What if in the future somebody tries to make it work with >> wxX11 (wxWidgets based on the Xlib without gtk), wxOS/2 or wxMAC ? >> Then (in addition to the little work needed in wxt_gui.cpp) we won't >> have the magic link against cairo and pango, and the compilation >> would fail. >> =20 > > Maybe it would; I'd have to try it to see for sure. > In fact, I'd like to try it :-) > Can you point me to a wxWidgets variant based directly on Xlib? > =20 Sure, take a look here : http://sourceforge.net/project/showfiles.php?group_id=3D9863 and choose either wxX11 or wxMotif (for example). Then you'll have to slightly modify wxt_gui.h and wxt_gui.cpp so that=20 those behave as wxGTK, i.e. replace #ifdef __WXGTK__ ... #elif defined(__WXMSW__) ... #else # error "No implementation" #endif by #if defined(__WXGTK__)||defined(__WXX11__) ... #elif defined(__WXMSW__) ... #else # error "No implementation" #endif assuming you try with wxX11 (these conditional parts are there because=20 gnuplot on Windows already has its own main loop. And finally you may have to comment the code related to the clipboard if=20 the compiler complains, as wxMotif or wxX11 are not supposed to support=20 it entirely according to http://wxwidgets.org/docs/supported.htm Then, have fun ! > But I'm not sure you have addressed what I see as the main issue. > The use of pkg-config in the configure script is itself problematic. > What about people who aren't trying to build wxt? They should not be=20 > required to install pkg-config just because hypothetically it would > have been required in other circumstances. > =20 > Do you now have it set up so the one can configure and install > gnuplot in the total absence of pkg-config? > =20 Yes, this case is handled now. The macros PKG_CHECK_MODULES (provided by=20 pkg.m4 which is in gnuplot tree) check for the presence of pkg-config=20 and the configure script will just disable wxt if this program can't be=20 found. You can try. Just rename pkg-config temporarely and see. Best regards, Timoth=C3=A9e |