Hi Geoff, 

On Wed, 2010-10-06 at 15:09 -0400, Geoffrey Hutchison wrote:
> I believe you want to use -DBUILD_SHARED=NO when running CMake.
Ah, thanks I think that leads in the right direction.

There is two problems: 
1) This will create an libopenbabel.a which I then link 
   into libpgchem.so In fact, here I want libopenbabel.a 
   to be not an actual static library, but a convenience archive 
   of shared objects which can go into libpgchem.so see also 
   http://www.cmake.org/pipermail/cmake/2008-November/025488.html

2) More important, if I 
   cmake -DCMAKE_INSTALL_PREFIX=/usr/lib/postgresql/9.0 -DBUILD_SHARED=no ..
   then no formats are built at all, because the whole 
   src/formats/CMakeLists.txt is wrapped in an "if(BUILD_SHARED)"

   Even if the formats would be statically built, is their 
   plugin-mechanism-code disabled then ? If not, the OBFormat framework 
   would still try to dlopen() then, wouldn't it ?

Yours,
Steffen

-- 
IPB Halle                    AG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann          http://www.IPB-Halle.DE
Weinberg 3                   http://msbi.bic-gh.de
06120 Halle                  Tel. +49 (0) 345 5582 - 1470
                                  +49 (0) 345 5582 - 0
sneumann(at)IPB-Halle.DE     Fax. +49 (0) 345 5582 - 1409


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
OpenBabel-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to