It seems that -rpath option will not work in chroot enviroment because gcc is not configued with --with-sysroot in openSUSE and thereore -DCMAKE_SKIP_RPATH should always be set to ON. Anyway the new build works and the original problems seems to be caused by some uninstalled libraries from previous builds. Thanks and best wishes, 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