0

Having built GammaRay from source code on Windows 10, I'm receiving these system errors while trying to run the gammaray.exe binary at C:\Program Files (x86)\GammaRay\bin:

gammaray.exe - System Error: The code execution cannot proceed because Qt5Widgetsd.dll was not found. Reinstalling the program my fix this problem

The error is also thrown for Qt5Cored.dll and Qt5Guid.dll.

Error message


Using Visual Studio 2017 Developer Command Prompt, inspired by repository Install.txt, I ran these commands inside the downloaded repository directory:

mkdir build
cd build
set Qt5Core_DIR=C:\Qt\Qt5.12.6\5.12.6\msvc2017_64\lib\cmake\Qt5Core
echo %Qt5Core_DIR%
set Qt5_DIR=C:\Qt\Qt5.12.6\5.12.6\msvc2017_64\lib\cmake\Qt5
echo %Qt5_DIR%
cmake -G "NMake Makefiles" .. 
dir
nmake
nmake install

The last nmake install command needs administrative privileges.

Side Notes

  1. I ran into such an issue while building, which is resolved by moving the repository directory to a shorter path like C:\GammaRay\ and building from there.

  2. I have to set Qt5Core_DIR and Qt5_DIR variables due to some CMake complaints similar to this one.

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Megidd
  • 7,089
  • 6
  • 65
  • 142
  • 1
    The error means that `Qt5Widgetsd.dll` cannot be found at **runtime**. Building the project with `cmake` is completely **unrelated** to the problem. What related is whether the directory with your QT dlls is listed in `PATH` variable. – Tsyvarev Feb 05 '20 at 15:47

1 Answers1

0

By @Tsyvarev help, the error got resolved by adding C:\Qt\Qt5.12.6\5.12.6\msvc2017_64\bin to path environment variable:

PATH variable

Megidd
  • 7,089
  • 6
  • 65
  • 142