Well, it looks like you are using Qt, but the same principles apply and are not specific to Qt.
The first thing you need to pay attention to is the PATH environment variable, then QTDIR, then LD_LIBRARY_PATH .
Usually you do not need to “play” with LD_LIBRARY_PATH. If your PATH is correct, you should be fine.
As a side note (you probably know): To see the libraries used, you can use the ldd command. For instance:
user@host :~/$ ldd $QTDIR/bin/qmake linux-vdso.so.1 => (0x00007fff169ff000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fb6bf63e000) libm.so.6 => /lib/libm.so.6 (0x00007fb6bf3bb000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fb6bf1a3000) libc.so.6 => /lib/libc.so.6 (0x00007fb6bee20000) /lib64/ld-linux-x86-64.so.2 (0x00007fb6bf97e000)
Suppose your enver QTDIR variable is set. If you have QT, if the linux distribution is installed qmake will be in the way. If you have done a custom installation or compilation, you will need to specify your path.
Good luck.
source share