On Sep 10, 2009, at 6:19 PM, David Aldrich wrote:

> Hi Werner
>
> I will shortly try to link PLplot to my wxWidgets app. I built  
> wxPLplotDemo on linux with VERBOSE=1 as you suggested and saw:
>
> =======================================================
>
> Linking CXX executable wxPLplotDemo
> cd /home/MyDir/plplot-5.9.5/buildnmake/examples/c++ && /home/ MyDir / 
> cmake-2.6.4-Linux-i386/bin/cmake -E cmake_link_script CMakeFiles/ 
> wxPLplotDemo.dir/link.txt --verbose=1
> /usr/bin/c++     -fPIC CMakeFiles/wxPLplotDemo.dir/ 
> wxPLplotDemo.cpp.o  -o wxPLplotDemo -rdynamic ../../bindings/ 
> wxwidgets/libplplotwxwidgetsd.so.0.0.0 ../../bindings/c++/ 
> libplplotcxxd.so.9.3.0 -lm ../../src/libplplotd.so.9.7.0 - 
> lpangocairo-1.0 -lpango-1.0 -lcairo /lib64/libgobject-2.0.so /lib64/ 
> libgmodule-2.0.so -ldl /lib64/libglib-2.0.so -lSM -lICE -lX11 -lXext  
> -lSM -lICE -lX11 -lXext -lpthread ../../lib/csa/libcsirocsa.so. 
> 0.0.1 ../../lib/qsastime/libqsastime.so.0.0.1 -lm -pthread /usr/ 
> local/lib/libwx_base-2.8.so /usr/local/lib/libwx_gtk2_core-2.8.so - 
> Wl,-rpath,/home/ MyDir /plplot-5.9.5/buildnmake/bindings/wxwidgets:/ 
> home/ MyDir /plplot-5.9.5/buildnmake/bindings/c++:/home/ MyDir / 
> plplot-5.9.5/buildnmake/src:/lib64:/home/ MyDir /plplot-5.9.5/ 
> buildnmake/lib/csa:/home/ MyDir /plplot-5.9.5/buildnmake/lib/ 
> qsastime:/usr/local/lib
>
> =======================================================
>
> I plan to store the necessary PLplot libraries and header files in  
> our svn project so that not every developer needs to install PLplot,  
> but the above command seems to reference a lot of libraries. Is  
> there a way to reduce this complexity?

One way is to exclude all bindings and drivers you don't need. I  
usually disable all drivers/bindings and then add only the drivers/ 
bindings I need, e.g.

cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug \
         -DDEFAULT_NO_BINDINGS:BOOL=ON -DENABLE_cxx:BOOL=ON - 
DENABLE_wxwidgets:BOOL=ON \
         -DDEFAULT_NO_DEVICES:BOOL=ON -DPLD_wxwidgets:BOOL=ON - 
DPLD_ps:BOOL=ON -DPLD_psc:BOOL=ON \
         -DENABLE_DYNDRIVERS:BOOL=OFF - 
DCMAKE_INSTALL_PREFIX=installdir ../plplot

Look also here:

http://www.miscdebris.net/plplot_wiki/index.php?title=CMake_options_for_PLplot

for other options.

wxWidgets as might need a lot of libraries which are listed here, you  
can check that with "wx-config --libs".

Regards,
Werner


>
> Best regards
>
> David


--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886

email: [email protected]
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
        +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to