From: Werner S. <sm...@ia...> - 2006-09-12 07:41:11
|
Hi Joe, are you using the plplot library within your wxWidgets application (in a widget)? Anyway, as far as I remember the discussions on the wxWidgets mailing list, they propose to use the static wxWidgets library for Linux in case you want to distribute your program (or you have to fiddle around with LD_LIBRARY_PATH to set the path to your copied shared wxWidgets library, but this should not be used other than debug purposes actually). You can also switch off a lot of libraries you don't need during the configure step to reduce dependencies (either like this --without-libtiff or like this --with-expat=builtin). If wxWidgets is static, plplot must also be static - so you first need to recompile/reconfigure wxWidgets to be static (--disable-shared). If this doesn't work (I'm not 100% sure about the automake build system of plplot) this should be possible with the new cmake build system which is already in cvs - a new improved wxwidgets driver will also be available soon. The option ENABLE_CXX_MIX allows to introduce the cpp wxWidgets driver into the c plplot library. HTH, Werner Joe Chuma wrote: > Werner Smekal wrote: >> Hi, >> >> there is maybe a library missing on the other Linux box (libltdl is >> needed for dynamic driver loading). As Alan said it would be best to >> compile plplot on the other LB as well. If not possible you could >> disable dynamic driver loading (therefore drivers are linked into the >> main plplot library) and you could also make a static plplot library - >> in both cases you don't need to care about driver loading at run time. >> This will not work for a c-program though only for a c++ program or if >> you use the c++ compiler, since the wxwidgets driver is c++. > > Thanks for the suggestions, but I am writing an application distributed > by SourceForge for use by the scientific community. It would be nice > to be able to distribute an executable, as well as the sources, so users > would not have to build their own copies of wxWidgets, PLplot, etc. > The wxWidgets driver in PLplot currently is only available as a dynamic > shareable image, so I can't link statically. The PLplot sources seem > to show it using the PLPLOT_DRV_DIR environment variable to find the > drivers' location, but it does not seem to work. Any assistance is > greatly appreciated. > > Joe Chuma > TRIUMF > > -- Dipl. Ing. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: sm...@ia... 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 |