
Originally Posted by
fullmetalcoder
Maybe only crap OSes need import lib but then only crap OSes forget to look in the current dir to find shared libs!!!
Is there a way to do that programmatically because I don't wanna force each user of my app to do that stupid trick on its own... I think there some QApplication static functions that deals with library paths but will they work from the application itself or will loading fail before the static function is called???
Predefined library path avoid security problems, for launch application write a simple script:
#!/bin/bash
export DEVQT_HOME=/path/to/data/files/
export LD_LIBRARY_PATH=${DEVQT_HOME}/lib
#and launch app
${DEVQT_HOME}/bin/devqt
#!/bin/bash
export DEVQT_HOME=/path/to/data/files/
export LD_LIBRARY_PATH=${DEVQT_HOME}/lib
#and launch app
${DEVQT_HOME}/bin/devqt
To copy to clipboard, switch view to plain text mode
in MacOsX LD_LIBRARY_PATH is DYLD_LIBRARY_PATH
Bookmarks