Contents
This page contains a list of common questions and their answers:
Problems Starting Omgui1
Q: libopenmodeller.so.0 cant be opened
When I try to run omgui1 I get the following message:
bin/omgui1: error while loading shared libraries: libopenmodeller.so.0: cannot open shared object file: No such file or directory
A: This is because libopenmodeller is not being picked up in your system ld path. After making sure your /etc/ld.so.conf has got /usr/local/lib in it, do the following:
sudo ldconfig
Q: libomgui1.so.1 cant be opened
When I try to run omgui1 I get the following message:
bin/omgui1: error while loading shared libraries: libomgui.so.1: cannot open shared object file: No such file or directory
A: This is because you have build the binary with dynamic library linkage and it cant find some of its associated libraries. There are a few wasy to fix this:
- Build the binary with static linkage by editing settings.pro and setting the OMG_STATIC flag to true.
- If you want dynamic linkage set your LD_LIBRARY_PATH environment variable to include the omgui1 libs e.g.
export LD_LIBRARY_PATH=${HOME}/dev/cpp/omgui1/lib
You could add the above to your .bash_profile to make it available each time you log in.
- If you want dynamic linkage and you want the library to be globally available to all users on your sytem, edit your /etc/ld.so.conf and add the path to your omgui1 libs:
${HOME}/dev/cpp/omgui1/lib
Then do:sudo ldconfig
- Install or copy the omgui1 libs into one of the standard system paths such as /usr/lib or /usr/local/lib
Questions About Runtime Behaviour of omgui1
Q: Where does omgui store applications settings used at runtime?
A: We use QSettings to manage runtime settings. Under linux these are usually stored in your home dir as:
~/.config/openModeller/OpenModellerGui.conf
Under Windows, these settings are stored in the registry.