On 2009-06-24 23:13+0300 Dmitri Gribenko wrote: > On Wed, Jun 24, 2009 at 6:50 PM, Alan W. > Irwin<ir...@beluga.phys.uvic.ca> wrote: >> * The "QMutex destructor called twice" issue that Dmitri discovered. This >> shows up as lots of valgrind output involving PLplot code and a hang (which >> you can get out of with ctrl-C) when you attempt to exit the qt_example GUI. > > After thinking and debugging a bit, I found out: > > * if you compile with ENABLE_DYNDRIVERS=OFF, the problem doesn't show up > * with ENABLE_DYNDRIVERS=ON qt_example doesn't compile, the linker > cannot find methods from QtExtWidget as well as > plsetqtdev()/plfreeqtdev(). After I add -lplplotqtd to the line 88 of > examples/c++/Makefile.examples.in, qt_example compiles fine. Am I > doing anything wrong?
I should have been clearer. I have been working with the new CMake-based build system for the installed examples to get it to properly build qt_example for the ENABLE_DYNDRIVERS=ON case. So you should stick to that case also (assuming you have downloaded and installed cmake-2.6.4 which is a necessity for the new build system for the installed examples). You use this new build system (after "make install" for the core build system) by simply running cmake $prefix/share/plplot5.9.4/examples cd c++ make qt_example from an initially empty build tree. N.B. the new CMake-based build system for the installed examples is configured by the core build system and finalized by "make install" for that core build system so there are no cmake options required in the above cmake command. Once we have sorted everything out for the new CMake-based build system for the installed examples and the ENABLE_DYNDRIVERS=ON case, then I will fix up the ENABLE_DYNDRIVERS=OFF case (by not building libplplotqtd.so at all and by linking qt_example to libplplotd instead) and also tweak the old Makefile+pkg-config approach for building the installed examples for both the ENABLE_DYNDRIVERS=ON and ENABLE_DYNDRIVERS=OFF cases. Therefore, I don't think there will be any necessity of splitting qt.cpp, and the patch you sent (in a later post) is probably fine as is. I will look at that tomorrow. 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); 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