From: RM <rc...@ve...> - 2014-03-14 18:45:33
|
<div style="FONT-FAMILY: Arial; COLOR: rgb(0, 0, 0); FONT-SIZE: 12px"><div>Hi Alan,</div><div><br /></div><div>I tried with your latest code. Some issues:</div><div><br /></div><div>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.</div><div><br /></div><div>This gets slightly further, but doesn't entirely work, perhaps because of the || clause in the #if statement. <br /></div><div><div>#if defined ( PLD_epsqt ) || defined ( PLD_pdfqt )</div></div><div><br /></div><div>I had to turn off both PS and PDF to make it past this issue:</div><div><br /></div><div><div>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 ..</div></div><div><br /></div><div>Then, compile made it all the way down to here:</div><div><br /></div><div> [ 30%] Generating test_dyndrivers_dir/qt.driver_info</div><div>Could not open driver module /home/Downloads/plplot-latest/plplot-code/PLPLOT-BUILD/drivers/qt</div><div>libltdl error: file not found</div><div>make[2]: *** [drivers/test_dyndrivers_dir/qt.driver_info] Error 1</div><div>make[1]: *** [drivers/CMakeFiles/test_qt_dyndriver.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div><br /></div><div>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.</div><div><br /></div><div>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.</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/14/14, <span>Alan W. Irwin<ir...@be...></span> wrote:</span><div> </div><div style="font-size:12;font-family:arial;color:#000000;">To Andrew and RM:<br /><br />On 2014-03-13 15:49-0700 Alan W. Irwin wrote:<br /><br />> Later today I plan to set the CMake PLD_epsqt variable permanently to<br />> OFF in the build system for the PLPLOT_USE_QT5=ON case since Qt5 does<br />> not support PostScript.<br /><br />DONE as of revision 13055. I am looking forward to seeing how the<br />combined -DPLPLOT_USE_QT5=ON and (default) -DENABLE_DYNDRIVERS=ON case<br />now works for both you guys on your entirely different platforms.<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> |