Is ENABLE_VERSIONED_FORMATS set to "ON" by default? I also explicitly set it to ON but openbabel still complaints that no plugins, unless I set the "BABEL_LIBDIR" and "BABEL_DATADIR" variables... (http://open-babel.readthedocs.io/en/latest/Installation/install.html#environ...) Sincerely yours Xing On 03/27/2017 05:03 PM, Stefan Bruens wrote:
Dear All, I'm trying to build and package openbabel. It needs the "RUNPATH" tag to run correctly or the "obabel" command will not find the plugin directories. Openbabel uses CMAKE and on OBS "-DCMAKE_SKIP_RPATH=ON" is set automatically by the %cmake marco. I can use "-DCMAKE_C_FLAGS="-Wl,-rpath={%_libdir}" and "-DCMAKE_CXX_FLAGS=-Wl,-rpath={%_libdir}" to force passing the flags to gcc and build with RUNPATH on my local computer directly (without using "osc build "). However it gcc will just ignore the "-Wl,-rpath" flag when I use "osc build" or the online building service and no RUNPATH information is written to the binary and .so files. You should not set rpath, as openbabel looks for plugins in the specified
On Montag, 27. März 2017 20:34:06 CEST Xing wrote: directory by itself.
Have a look at https://github.com/openbabel/openbabel/blob/master/ CMakeLists.txt
On openSUSE, you should set ENABLE_VERSIONED_FORMATS, and the plugin dir will be set to /usr/lib{64}/openbabel/<version>/
Kind regards,
Stefan
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org