Configuration #2252

Updated by dmitry over 1 year ago

Originally compiled BornAgain distribution contains rpath with paths to shared libraries, e.g. by typing

readelf -d _libBornAgainGUI.so

one can get

0x000000000000000f (RPATH) Library rpath: [/home/dmitry/Documents/Software/BornAgainAll/rel-2/build/lib:/home/dmitry/Qt/5.11.1/gcc_64/lib:]

However, even though the rpath disappears from the binary after installation, the code is still unable to use other versions of e.g. Qt. Messages like the following ones are thrown
on attempt to run the GUI:

./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.11' not found (required by ./BornAgain)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by ./BornAgain)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by ./BornAgain)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5: version `Qt_5' not found (required by /home/dmitry/Documents/Software/BornAgainAll/rel-2/installed/lib/BornAgain-1.14/_libBornAgainGUI.so)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5: version `Qt_5' not found (required by /home/dmitry/Documents/Software/BornAgainAll/rel-2/installed/lib/BornAgain-1.14/_libBornAgainGUI.so)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5: version `Qt_5' not found (required by /home/dmitry/Documents/Software/BornAgainAll/rel-2/installed/lib/BornAgain-1.14/_libBornAgainGUI.so)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Designer.so.5: version `Qt_5' not found (required by /home/dmitry/Documents/Software/BornAgainAll/rel-2/installed/lib/BornAgain-1.14/_libBornAgainGUI.so)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by /home/dmitry/Documents/Software/BornAgainAll/rel-2/installed/lib/BornAgain-1.14/_libBornAgainGUI.so)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.11' not found (required by /home/dmitry/Documents/Software/BornAgainAll/rel-2/installed/lib/BornAgain-1.14/_libBornAgainGUI.so)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by /home/dmitry/Documents/Software/BornAgainAll/rel-2/installed/lib/BornAgain-1.14/_libBornAgainGUI.so)
./BornAgain: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by /home/dmitry/Documents/Software/BornAgainAll/rel-2/installed/lib/BornAgain-1.14/_libBornAgainGUI.so)

Tested on Qt 5.11.1 and Qt 5.5.1. The sonames of libQt5Core's do coincide.

Back