robertknight / Qt-Inspector

Utility to browse the Qt object tree of a running Qt application and edit object properties on the fly.
GNU Lesser General Public License v3.0
401 stars 70 forks source link

Add install targets and use QLibrary to search for libQtInspector.so #1

Closed danvratil closed 13 years ago

danvratil commented 13 years ago

The first commit adds an 'install' target to CMakeLists.

The second commit uses QLibrary to search for libQtInspector.so in LD_LIBRARY_PATH and to verify that it exists somewhere in LD_LIBRARY_PATH and that it's a library. As long as it exists in the LD_LIBRARY_PATH, GDB has no troubles finding it itself, so there's no need to pass it an absolute path.

robertknight commented 13 years ago

Hi Danvratil,

I usually run Qt inspector directly from the build directory without actually installing it - hence the use of an absolute path. Does this still work with your patch?

danvratil commented 13 years ago

Haven't thought about this way of use, sorry :)

The third patch searches in cwd first, than fallbacks to LD_LIBRARY_PATH.

robertknight commented 13 years ago

Thanks for the patches!