Hi Alan,

Ok, got further!  It made it through cmake, though I get a message about Pango missing, which doesn't make sense because I have Pango in the system...

The make command bails on the QPrinter class now, and I think some re-writing will be necessary there.

[ 26%] Building CXX object bindings/qt_gui/CMakeFiles/plplotqtd.dir/plqt.cpp.o
/u/rmancuso/Downloads/plplot-latest/plplot-code/bindings/qt_gui/plqt.cpp: In member function 'void QtEPSDevice::definePlotName(const char*, int)':
/u/rmancuso/Downloads/plplot-latest/plplot-code/bindings/qt_gui/plqt.cpp:617: error: 'PostScriptFormat' is not a member of 'QPrinter'
make[2]: *** [bindings/qt_gui/CMakeFiles/plplotqtd.dir/plqt.cpp.o] Error 1
make[1]: *** [bindings/qt_gui/CMakeFiles/plplotqtd.dir/all] Error 2
make: *** [all] Error 2

First, according to the migration guide the location of QPrinter changed.  You *may* need to modify line 48 of bindings/qt_gui/CMakeLists.txt to add printer support as follows:
    qt5_use_modules(plplotqt${LIB_TAG} Svg Gui PrintSupport)

But, secondly, the larger problem is that PostScript support has apparently been removed from Qt5.  So,  "QPrinter::PostScriptFormat" will not compile.  See here:  https://qt-project.org/forums/viewthread/24857

So, unfortunately, I think you need to decide how to proceed/work around that issue code-wise.

Cheers,
RM

On 03/13/14, Alan W. Irwin<ir...@beluga.phys.uvic.ca> wrote:
 
On 2014-03-13 13:07-0500 RM wrote:

>  Hi Alan,
>
> I downloaded the latest PLplot code and ran cmake against it with the following command:
>
> cmake28 -DPLPLOT_USE_QT5=ON -DCMAKE_PREFIX_PATH=/opt/qt5.2.1_x64/  ..
>
> It runs through and dies with a QT SVG issue:
>
> ----------------------------------
> CMake Warning at /opt/qt5.2.1_x64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:273 (find_package):
>   Could not find a package configuration file provided by "Qt5QtSvg" with any
>   of the following names:
>
>     Qt5QtSvgConfig.cmake
>     qt5qtsvg-config.cmake
>
>   Add the installation prefix of "Qt5QtSvg" to CMAKE_PREFIX_PATH or set
>   "Qt5QtSvg_DIR" to a directory containing one of the above files.  If
>   "Qt5QtSvg" provides a separate development package or SDK, be sure it has
>   been installed.
> Call Stack (most recent call first):
>   bindings/qt_gui/CMakeLists.txt:48 (qt5_use_modules)
>
>
> CMake Error at /opt/qt5.2.1_x64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:275 (message):
>   Can not use "QtSvg" module which has not yet been found.
> Call Stack (most recent call first):
>   bindings/qt_gui/CMakeLists.txt:48 (qt5_use_modules)
>
> -- Configuring incomplete, errors occurred!
> ----------------------------------
>
>
> The Qt SVG file it's looking for appears to be named incorrectly -- the file is in fact called "Qt5SvgConfig.cmake" not
> "Qt5QtSvgConfig.cmake"
>
> Was this a typo in the script?  I haven't dug into the error -- I figured you'd probably know straight away.

This result is quite encouraging. CMake found the core part of Qt5
without issues, and this error is only for the subsequent attempt to
find additional components. Furthermore, your analysis of this error
was correct; I had misread the documentation and used a Qt prefix on
the component names when I shouldn't have. Fixed in revision 13052.

So thanks for your report, and please try again with that revision.

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