On 08/28/2014 11:54 PM, Alan W. Irwin wrote:
>
> To take up this old topic again, the above speculation turned out to be
> the issue which
> was extremely easy to fix (commits 022a53b and b6e9afe).
>
> To test this build fix for yourself, use the cmake option
> -DENABLE_smoke=ON (which I currently have defaulted to OFF for the
> build system since this smoke binding should be considered
> experimental until we install at least one run-time test, see below).
>
> Then run
>
> make VERBOSE=1 smokeplplotqt >& smokeplplotqt.out
>
> and all should be well (at least it was for me).
>
> One test I did was
>
> ldd -r bindings/qt_gui/smoke/libsmokeplplotqt.so 2>&1 |less
>
> which showed no undefined symbols.  (Without commit b6e9afe there
> are such undefined symbols).
>
> Please follow up by pushing at least one example that uses this smoke
> binding of libplplotqt so we have a test that this binding actually
> works at run time.

Hi Alan,

Returning to this old topic. Thank you for this fix which also enables 
me to also compile the smoke bindings. Unfortunately however they are 
"empty" in the sense that they contain no symbols specifically related 
to PLplot. I was expecting to see symbols containing QtPLDriver, 
QtPLWidget and QtExtWidget. You can verify this by running:

nm -gC libsmokeplplotqt.so

It appears to me as though what is happening is that smoke is parsing 
the include/qt.h file in an environment where PLD_qtwidget and PLD_extqt 
widget are not defined. I'm not sure why this is happening since these 
qt devices are getting built. As I had done in a different project, I 
tried to define these in bindings/qt_gui/smoke/plplotqt.h, but now they 
are either being ignored or over-written during the build.

 > more plplotqt.h
#define PLD_qtwidget
#define PLD_extqt
#include "qt.h"

Any thoughts on how to proceed?

Thank you,
-Hazen


------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to