Hi Alan,

I tried with your latest code.  Some issues:

I'm interpreting your last post as meaning all I need to do is use -DPLPLOT_USE_QT5=ON and the QPrinter problems should go away.  Unfortunately this isn't the case yet.  In qt.h, the #include <QPrinter> directive (line 62)  needs to be protected by the macro, otherwise the compiler attempts to include it and can't find it with Qt5.  So, as a quick hack, I moved it down to line 213, inside the #ifdef.

This gets slightly further, but doesn't entirely work, perhaps because of the || clause in the #if statement. 
#if defined ( PLD_epsqt ) || defined ( PLD_pdfqt )

I had to turn off both PS and PDF to make it past this issue:

cmake28 -DPLPLOT_USE_QT5=ON -DCMAKE_PREFIX_PATH=/opt/qt5.2.1_x64/ -DPLD_epsqt=OFF -DPLD_pdfqt=OFF -DCMAKE_INSTALL_PREFIX=/opt/plplot5.10.0 ..

Then, compile made it all the way down to here:

 [ 30%] Generating test_dyndrivers_dir/qt.driver_info
Could not open driver module /home/Downloads/plplot-latest/plplot-code/PLPLOT-BUILD/drivers/qt
libltdl error: file not found
make[2]: *** [drivers/test_dyndrivers_dir/qt.driver_info] Error 1
make[1]: *** [drivers/CMakeFiles/test_qt_dyndriver.dir/all] Error 2
make: *** [all] Error 2

I don't understand this error -- but there's an issue of some sort.  In any event, I ran make a second time, and it suddenly ran all the way to the end.  make install worked as well.

Off-hand, I don't have any code to test the qt library, and this is essentially my first time compiling plplot from scratch, so I'm unfamiliar with the build system.  Is there a qt example I can run against it?  I couldn't find where the examples built in the build directory.

Cheers,
RM

On 03/14/14, Alan W. Irwin<ir...@beluga.phys.uvic.ca> wrote:
 
To Andrew and RM:

On 2014-03-13 15:49-0700 Alan W. Irwin wrote:

> Later today I plan to set the CMake PLD_epsqt variable permanently to
> OFF in the build system for the PLPLOT_USE_QT5=ON case since Qt5 does
> not support PostScript.

DONE as of revision 13055. I am looking forward to seeing how the
combined -DPLPLOT_USE_QT5=ON and (default) -DENABLE_DYNDRIVERS=ON case
now works for both you guys on your entirely different platforms.

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
__________________________
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to