On Aug 16, 2012, at 4:10 AM, Andrew Ross wrote:

> 
> I've revisited this and taken a closer look at the code. There are no
> explicit references to QWidget in the qt driver other than pointers
> (which are fine). The QtPLWidget class does however inherit from
> QWidget and so some of its functions are used. It looks like although
> this code is all in libplplotqtd it results in QWidget functions being
> called from the qt driver implicitly. Now this seems to work ok on
> Linux, but not on OS-X. 
> 
> To do this "properly" the qt driver would need to link against QtCore,
> but not QtSvg or QtGui. I've included the changes to do this. Jerry,
> can you test the svn head to see if this works for you?
> 
> Thanks
> 
> Andrew

Thanks for looking into this, Andrew.

The results that I reported in my previous e-mail (reviving the thread) were 
with -DNON_TRANSITIVE=OFF. With your fix to 12216, I can now build 12216 for 
Qt. Problem fixed.

When I switch to -DNON_TRANSITIVE=ON, however, the build fails like this:

Linking CXX shared module qt.so
cd /usr/local/plplot_build_dir/drivers && /opt/local/bin/cmake -E 
cmake_link_script CMakeFiles/qt.dir/link.txt --verbose=1
/usr/local/adacore-gnat-2011/bin/c++   -bundle -Wl,-headerpad_max_install_names 
  -o qt.so CMakeFiles/qt.dir/qt.cpp.o ../src/libplplotd.11.0.0.dylib 
/usr/lib/libm.dylib ../bindings/qt_gui/libplplotqtd.0.0.1.dylib 
../src/libplplotd.11.0.0.dylib -lQtCore 
ld: library not found for -lQtCore
collect2: ld returned 1 exit status
make[2]: *** [drivers/qt.so] Error 1
make[1]: *** [drivers/CMakeFiles/qt.dir/all] Error 2
make: *** [all] Error 2

I gather that with -DNON_TRANSITIVE=OFF the linking happens with possible 
redundancies.

FWIW, the above line looks like it is using the AdaCore c++ which comes with 
the Ada (GNAT) compiler. (Apple does not ship Ada so we have to get it from 
other places.) The build process is apparently finding it rather the Apple 
compiler which is probably /usr/bin/gcc.

Jerry
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to