On 2021-08-03 12:20+0100 António Rodrigues Tomé wrote:
Hi Alan I was able to build the plplot using qt6.1 and found out that there were other classes (the 2D transformation Matrix class) that were dropped in qt6. So I made a small patch replacing that class and some others minor changes with function members that became deprecated in qt 6.0 I've tested it in my default qt 5.15 and in the latest qt6.1.2 version. Everything looks to work very fine. So I think that when the time is right one can face without any worries the transition from qt5 to qt6 without the need to use the Core5Compat package.
Hi António: Thanks for this next step in future-proofing PLplot for the Qt6 case. For your commit I built the test_all_qt target without issues for my Debian Stable Qt5.11 case so I am ready to push your commit as soon as you can clarify (for the associated commit message) how you tested it with both Qt5 and Qt6. What method did you use to build our qt-related components for the Qt6 case since our build system is not currently ready for Qt6? For example, did you build all those PLplot components by hand? And for both the Qt5 and Qt6 cases did you build the test_all_qt target or did you use some other method to run-time test your commit? It is going to be a while until I can do this, but obviously my next Qt-related step here is to strip out all Qt4 from our build system (which will greatly simplify builds of our Qt-related components because builds against Qt4 use ancient CMake methods while builds against later Qt versions use quite different and much more powerful modern CMake methods). Also considering the problem of supporting both Qt5 and Qt6 I will need more information from you. For example, how far do you get with the following change to line 144 of cmake/modules/qt.cmake and using -DENABLE_pyqt5=OFF (since pyqt5 is unlikely to work with Qt6). - find_package(Qt5 5.7.1 COMPONENTS Svg Gui PrintSupport Widgets) + find_package(Qt6 6.1.2 COMPONENTS Svg Gui PrintSupport Widgets) + # temporary workaround + set(Qt5_FOUND Qt6_FOUND) please capture the stdout and stderr output from cmake and make using cmake <usual options including -DENABLE_pyqt5=OFF and pathname for top directory of source-tree> >& cmake.out # Only if cmake works make VERBOSE=1 test_all_qt >& test_all_qt.out and send those *.out files to me. Alan __________________________ Alan W. Irwin Research affiliation with the Department of Physics and Astronomy, University of Victoria, Victoria, BC, Canada. 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.org); 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 __________________________ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel