From: Alan W. I. <ir...@be...> - 2006-09-18 19:56:29
|
On 2006-09-18 10:56-0700 Joe Chuma wrote: > I can't get the shared lib solution to work. If there is a static > solution, I would be very grateful to be shown the details. Our old Autotools Build System (ABS, which you are currently using) does not allow this. However, we also have a new much more flexible CMake Build System (CBS) that has been essentially completed for Linux (and which is still being worked on to implement complete builds of PLplot on Mac OS X and windows). Currently our CBS just follows our old ABS and disallow wxwidgets for the static case. However, I just came up with an idea about a change to our CBS that should make a static wxwidgets device work without mixing C and C++ code in the same library. The gist is when dynamic devices (plug-ins) are disabled, then two additional separate libraries (one for C driver code and one for C++ driver code) are made and our core library is linked to those two additional libraries. I generally like this idea because it means device driver code never gets into our core C library under any circumstances. Also, that linking should automatically be the desired static linking if you generally disable shared libraries for the PLplot build. The change means some CMake configuration reorganization so it may take a while (a day or so) to implement and test it. Joe, once I have done that, I will get back to you with the details so you can try this proposed CBS-based static linking for the wxwidgets device for yourself. 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 Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |