GammaRay icon indicating copy to clipboard operation
GammaRay copied to clipboard

`gammaray --self-test` failed

Open zhang-ray opened this issue 6 years ago • 6 comments

I use self-build(Qt 5.11.1, msvc2015) GammaRay 2.9.50 (revision:f9cb19ad)

When I execute gammaray --self-test on Windows 10, I got these:

Error: No probes found - GammaRay not functional. Injector windll successfully passed its self-test. Error: Injector style failed to pass its self-test: Injector style plugin is not found in the Qt style plug-in search path or cannot be loaded.

What's more, the "Attach" and "Launch" button of GammaRay Launcher is Always disabled. And the "Self Test" tab of Launcher is like this: image

zhang-ray avatar Nov 06 '18 06:11 zhang-ray

Same here:

image

bjaraujo avatar Nov 18 '18 13:11 bjaraujo

Hi, thanks for reporting the issue.

All I can tell from this, is that this seems to be related to library-paths and environment variables. Did you compile GammaRay with -DGAMMARAY_INSTALL_QT_LAYOUT=true or without? Did you install GammaRay and to where? You can use the cmake gui to tell. Also, what is set as GAMMARAY_PLUGIN_INSTALL_DIR, as GAMMARAY_PLUGIN_VERSION and as GAMMARAY_PROBE_INSTALL_DIR? You'll find these macros defined in a file config-gammaray.h in your build directory. Where is GammaRay installed and what is the content of the directory at $PATH_TO_YOUR_GAMMARAY_BINARY\$GAMMARAY_INVERSE_LIB_DIR\$GAMMARAY_PLUGIN_INSTALL_DIR\GAMMARAY_PLUGIN_VERSION\ where $PATH_TO_YOUR_GAMMARAY_BINARY, well, is the path to your gammaray binary and the other variables are to be filled with the values from config-gammaray.h.

I'm not a windows-developer, but I think that should be the information we need to track down the issue.

akreuzkamp avatar Dec 04 '18 11:12 akreuzkamp

In my case: GAMMARAY_INSTALL_QT_LAYOUT = false, #define GAMMARAY_PLUGIN_INSTALL_DIR "plugins/gammaray" #define GAMMARAY_LIBEXEC_INSTALL_DIR "bin" #define GAMMARAY_BUNDLE_INSTALL_DIR "" #define GAMMARAY_BIN_INSTALL_DIR "bin" #define GAMMARAY_PROBE_INSTALL_DIR "plugins/gammaray/2.10/qt5_7-MSVC-140-i686" #define GAMMARAY_TRANSLATION_INSTALL_DIR "translations" #define GAMMARAY_QCH_INSTALL_DIR "share/doc/GammaRay" #define GAMMARAY_TARGET_PLUGIN_INSTALL_DIR "plugins/gammaray/2.10/qt5_7-MSVC-140-i686/target"

I copied contents of GAMMARAY_PROBE_INSTALL_DIR to bin but still says no probes installed.

bjaraujo avatar Dec 05 '18 14:12 bjaraujo

Ok. I ran INSTALL with administrator rights in VS and it now works. Thanks.

bjaraujo avatar Dec 05 '18 14:12 bjaraujo

How to resolve?

Ok. I ran INSTALL with administrator rights in VS and it now works. Thanks.

Hunanmaxiang avatar Mar 25 '19 08:03 Hunanmaxiang

捕获 Open VS with administrator rights and then build the INSTALL

jeffjiang0613 avatar May 11 '20 05:05 jeffjiang0613