From: RM <rc...@ve...> - 2014-03-13 21:12:04
|
<div style="FONT-FAMILY: Arial; COLOR: rgb(0, 0, 0); FONT-SIZE: 12px"><div>Hi Alan,</div><div><br /></div><div>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...</div><div><br /></div><div>The make command bails on the QPrinter class now, and I think some re-writing will be necessary there.</div><div><br /></div><div><div>[ 26%] Building CXX object bindings/qt_gui/CMakeFiles/plplotqtd.dir/plqt.cpp.o</div><div>/u/rmancuso/Downloads/plplot-latest/plplot-code/bindings/qt_gui/plqt.cpp: In member function 'void QtEPSDevice::definePlotName(const char*, int)':</div><div>/u/rmancuso/Downloads/plplot-latest/plplot-code/bindings/qt_gui/plqt.cpp:617: error: 'PostScriptFormat' is not a member of 'QPrinter'</div><div>make[2]: *** [bindings/qt_gui/CMakeFiles/plplotqtd.dir/plqt.cpp.o] Error 1</div><div>make[1]: *** [bindings/qt_gui/CMakeFiles/plplotqtd.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div><div><br /></div><div>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:</div><div><div> qt5_use_modules(plplotqt${LIB_TAG} Svg Gui PrintSupport)</div></div><div><br /></div><div>But, secondly, the larger problem is that PostScript support has apparently been removed from Qt5. So, "QPrinter::PostScriptFormat" will not compile. See here: <a href="https://qt-project.org/forums/viewthread/24857">https://qt-project.org/forums/viewthread/24857</a></div><div><br /></div><div>So, unfortunately, I think you need to decide how to proceed/work around that issue code-wise.</div><div><br /></div><div>Cheers,</div><div>RM</div><div><br /></div><div style="border-top:1px solid #bcbcbc;margin:5px 0px;"></div><span style="font-size:12;font-family:arial;color:#000000;">On 03/13/14, <span>Alan W. Irwin<ir...@be...></span> wrote:</span><div> </div><div style="font-size:12;font-family:arial;color:#000000;">On 2014-03-13 13:07-0500 RM wrote:<br /><br />> Hi Alan,<br />> <br />> I downloaded the latest PLplot code and ran cmake against it with the following command:<br />> <br />> cmake28 -DPLPLOT_USE_QT5=ON -DCMAKE_PREFIX_PATH=/opt/qt5.2.1_x64/ ..<br />> <br />> It runs through and dies with a QT SVG issue:<br />> <br />> ----------------------------------<br />> CMake Warning at /opt/qt5.2.1_x64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:273 (find_package):<br />> Could not find a package configuration file provided by "Qt5QtSvg" with any<br />> of the following names:<br />> <br />> Qt5QtSvgConfig.cmake<br />> qt5qtsvg-config.cmake<br />> <br />> Add the installation prefix of "Qt5QtSvg" to CMAKE_PREFIX_PATH or set<br />> "Qt5QtSvg_DIR" to a directory containing one of the above files. If<br />> "Qt5QtSvg" provides a separate development package or SDK, be sure it has<br />> been installed.<br />> Call Stack (most recent call first):<br />> bindings/qt_gui/CMakeLists.txt:48 (qt5_use_modules)<br />> <br />> <br />> CMake Error at /opt/qt5.2.1_x64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:275 (message):<br />> Can not use "QtSvg" module which has not yet been found.<br />> Call Stack (most recent call first):<br />> bindings/qt_gui/CMakeLists.txt:48 (qt5_use_modules)<br />> <br />> -- Configuring incomplete, errors occurred!<br />> ----------------------------------<br />> <br />> <br />> The Qt SVG file it's looking for appears to be named incorrectly -- the file is in fact called "Qt5SvgConfig.cmake" not<br />> "Qt5QtSvgConfig.cmake"<br />> <br />> Was this a typo in the script? I haven't dug into the error -- I figured you'd probably know straight away.<br /><br />This result is quite encouraging. CMake found the core part of Qt5<br />without issues, and this error is only for the subsequent attempt to<br />find additional components. Furthermore, your analysis of this error<br />was correct; I had misread the documentation and used a Qt prefix on<br />the component names when I shouldn't have. Fixed in revision 13052.<br /><br />So thanks for your report, and please try again with that revision.<br /><br />Alan<br />__________________________<br />Alan W. Irwin<br /><br />Astronomical research affiliation with Department of Physics and Astronomy,<br />University of Victoria (astro<a class="parsedLink" href="http://www.phys.uvic.ca" target="_blank">www.phys.uvic.ca</a>).<br /><br />Programming affiliations with the FreeEOS equation-of-state<br />implementation for stellar interiors (freeeos.sf.net); the Time<br />Ephemerides project (timeephem.sf.net); PLplot scientific plotting<br />software package (plplot.sf.net); the libLASi project<br />(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);<br />and the Linux Brochure Project (lbproject.sf.net).<br />__________________________<br /><br />Linux-powered Science<br />__________________________<br /></div></div> |