Qt World Summit: Submit your Presentation


GammaRay doesn't find plugins, but these plugins are in the correct folder



  • Hello,
    I'm using GammaRay 2.11 on Windows 10 with Qt 5.12.1 on 64-bit. I compiled it (GammaRay) myself with the Qt that I downloaded from the qt.io website. Nearly every plugin in GammaRay cannot be found (I'm using german localization, the text says it couldn't load that plugin):
    alt text

    Actually the plugin is there in this directory. I have no clue, why it couldn't be loaded. And I remember, that with earlier versions of gammaray (version 2.9 and before) I hadn't this problem.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Might be a silly question but did you try to call nmake install after the build ended ?



  • Now I spotted my mistake. I was using the Visual Studio Project File Generator from CMake. I did indeed build the target "INSTALL". But maybe the Debug and the Release Library got mixed up. I didn't find any library missing.

    Now I used the NMake Generator from CMake and it works. Thanks for giving me that clue.
    Would be good if GammaRay would warn when using the wrong Generator.



  • I solved similar issue (with the gammaray_quickinspector_uid.dll plug-in) by running both “windeployqt --release …” and “windeployqt --debug …”.

    Visual Studio generator works just fine (and multi-config JIC), I used the following commands in the x64 Native Tools Command Prompt for VS 2017 (note: I have CMake 3.18.1 installed):

    set Qt5_DIR=M:\Programs\Qt\5.15.2\msvc2019_64
    set Qt5Core_DIR=%Qt5_DIR%
    cmake -S gammaray-2.11.2 -B _build-2.11.2 -A x64 -DCMAKE_INSTALL_PREFIX=M:/Programs/KDAB/GammaRay/2.11.2_x64_Qt-5.15_VC-15
    cmake --build _build-2.11.2 --config Release --parallel 16
    cmake --install _build-2.11.2
    %Qt5_DIR%\bin\windeployqt --release --no-translations M:\Programs\KDAB\GammaRay\2.11.2_x64_Qt-5.15_VC-15\bin\gammaray.exe
    %Qt5_DIR%\bin\windeployqt --debug --no-translations M:\Programs\KDAB\GammaRay\2.11.2_x64_Qt-5.15_VC-15\bin\gammaray.exe
    

    (but still had to copy Qt5Network.dll and Qt5Networkd.dll manually for some reason)


Log in to reply