From: Alan W. I. <ir...@be...> - 2014-03-15 00:25:16
|
On 2014-03-14 23:10-0000 Andrew Ross wrote: > Turns out the problem wasn't related to that though. In Qt5 the QPrinter > class is in the QtPrintSupport module, which was not being used. Adding > this to the list of required modules fixed the include problems. > > I then encountered the problem with the shared code between eps and pdf > drivers that RM encountered. Turns out the only problem is that there > is a mention of QPrinter::PostScriptFormat which does not exist any more > with Qt5. Wrapping this with #ifndef PLPLOT_USE_QT5 avoids the problem. > > I'll commit these two fixes. > > So I can now compile all the qt drivers statically, but test-drv-info fails > with a file not found error, even though the qt.so driver is there and looks > ok. Clearly there is something odd about this, so I will investigate further. > So far this is promising though. Thanks, Andrew, for that excellent Qt5 news. It appears to me you now get as far as RM (albeit with the better fixes which you are about to commit). Of course, I am concerned with that test-drv-info failure (which he also encountered). For his case, I assumed it was just the standard Windows bug with test-drv-info, but since you are seeing a test-drv-info problem on Linux as well, there might be some linking issue which you will need to diagnose with nm (or "objump --dynamic-syms" if the QT5 libraries have been stripped) and "ldd -r". It's possible, for example, that you need to add more than just the QtPrintSupport module to get the linking right. Of course, if use of -DTEST_DYNDRIVERS=OFF to work around the test-drv-info failure and a subsequent successful run of the test_all_qt target shows that dynamic loading of the qt device is actually working properly, then it is always possible you are the victim of a build-system race issue concerning test-drv-info. Thus, that possibility is worth looking at if the nm, objdump, and ldd results all look good. Anyhow, I am looking forward with great interest to see what you come up with for the solution of the test-drv-info failure that you are seeing, and I am very pleased at how far both you and RM have gotten with Qt5 so far. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |