Install Gammaray on windows



  • Hi
    I am struggling to find a comprehensive set of instructions for installing KDAB Gammaray on Windows 10

    Can anyone tell me the best way of doing this

    Thanks


  • Qt Champions 2018

    open cmd and run this script adjusting the folders in the first 6 lines:

    • line 1: folder in which gammaray will be compiled
    • line 2: the folder where you installed Git
    • line 3: the folder where you installed CMake
    • line 4: the folder where you installed Qt
    • line 5: the folder where you installed MSVC
    • line 6: the platform to use (usually amd64 for 64bit build or x86 for 32bit, see the table here)

    The result will appear in the GammaRay folder

    cd C:\QtCreatorProjects\GammaRayBuild
    set git_path=C:\Program Files\Git\bin
    set cmake_path=C:\Program Files\CMake\bin
    set qt_path=C:\Qt\5.12.0\msvc2015_64
    set compiler_path=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
    set comp_platform=amd64
    set originalWD=%CD%
    set PATH=%cmake_path%;%git_path%;%PATH%
    call "%qt_path%\bin\qtenv2.bat"
    cd %originalWD%
    echo on
    call "%compiler_path%\vcvarsall.bat" %comp_platform%
    set CMAKEGENERATOR="NMake Makefiles"
    git clone --depth=1 git://anongit.kde.org/extra-cmake-modules ECMbuild
    cd ECMbuild
    mkdir build 
    cd build
    cmake -G %CMAKEGENERATOR% -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=../../ECM -DCMAKE_BUILD_TYPE=RELEASE ../
    cmake --build .
    cmake --build . --target install
    cd ..\..\
    set PATH=%CD%\ECM;%PATH%
    git clone --depth=1 git://anongit.kde.org/kcoreaddons.git KCoreAddonbuild
    cd KCoreAddonbuild
    mkdir build
    cd build
    cmake -G %CMAKEGENERATOR% -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=../../KCoreAddon -DCMAKE_BUILD_TYPE=RELEASE ../
    cmake --build .
    cmake --build . --target install
    cd ..\..\
    set PATH=%CD%\KCoreAddon;%PATH%
    git clone --depth=1 git://anongit.kde.org/syntax-highlighting.git KSyntaxHighlightingbuild
    cd KSyntaxHighlightingbuild
    mkdir build
    cd build
    cmake -G %CMAKEGENERATOR% -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=../../KSyntaxHighlighting -DCMAKE_BUILD_TYPE=RELEASE ../
    cmake --build .
    cmake --build . --target install
    cd ..\..\
    set PATH=%CD%\KSyntaxHighlighting;%PATH%
    git clone --depth=1 https://github.com/KDAB/GammaRay.git GammaRaybuild
    cd GammaRaybuild
    mkdir build
    cd build
    cmake -G %CMAKEGENERATOR% -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=../../GammaRay -DCMAKE_BUILD_TYPE=RELEASE ../
    cmake --build .
    cmake --build . --target install
    cd ..\..\
    

  • Qt Champions 2018

    Or just download it from https://ci.appveyor.com/project/KDAB/gammaray just go in one of the builds and you can find it compiled in the "artifacts" part



  • @VRonin
    I cannot see a 'artifacts' section

    0_1553872596952_88cf07ac-1778-4804-93a5-1a2064375e2d-image.png


  • Qt Champions 2018

    You missed 1 part

    @VRonin said in Install Gammaray on windows:

    go in one of the builds

    Click on one of the 2 green builds. Artifacts is in the top right



  • @VRonin
    Unfortunately there does not seem to be an executable

    0_1553874137243_1f81af4b-0f6f-4892-9611-e45dc6d1463c-image.png


  • Qt Champions 2018

    Manual build it is then.
    With mingw the difference in the script above should only be replacing:

    • call "%compiler_path%\vcvarsall.bat" %comp_platform% with something like set PATH=C:\Qt\Tools\MinGW\bin;%PATH%
    • set CMAKEGENERATOR="NMake Makefiles" with set CMAKEGENERATOR="MinGW Makefiles"


  • @VRonin
    Hi
    I am still having problems - running the script gives the following errors

    ../KCoreAddon -DCMAKE_BUILD_TYPE=RELEASE ../
    --
    
    -- Could NOT find FAM (missing: FAM_INCLUDE_DIR FAM_LIBRARIES)
    -- At least one python version must be available to use PythonModuleGeneration.
    -- Could NOT find SharedMimeInfo (missing: UPDATE_MIME_DATABASE_EXECUTABLE) (Required is at least version "1.3")
    -- The following OPTIONAL packages have been found:
    
     * Threads
    
    -- The following REQUIRED packages have been found:
    
     * ECM (required version >= 5.56.0), Extra CMake Modules., <https://projects.kde.org/projects/kdesupport/extra-cmake-modules>
     * Qt5Core
     * Qt5 (required version >= 5.10.0)
    
    -- The following features have been disabled:
    
     * QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)
    
    -- The following OPTIONAL packages have not been found:
    
     * FAM, File alteration notification support via a separate service, <http://oss.sgi.com/projects/fam>
       Provides file alteration notification facilities using a separate service. FAM provides additional support for NFS.
     * Inotify
       Filesystem alteration notifications using inotify
     * PythonModuleGeneration
     * SharedMimeInfo (required version >= 1.3), A database of common MIME types, <https://freedesktop.org/wiki/Software/shared-mime-info/>
       Allows KDE applications to determine file types
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Qt/5.12.2/msvc2015_64/KCoreAddonbuild/build
    
    C:\Qt\5.12.2\msvc2015_64\KCoreAddonbuild\build>cmake --build .
    [  2%] Automatic MOC for target KF5CoreAddons
    [  2%] Built target KF5CoreAddons_autogen
    [  4%] Building CXX object src/lib/CMakeFiles/KF5CoreAddons.dir/KF5CoreAddons_autogen/mocs_compilation.cpp.obj
    mocs_compilation.cpp
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(406) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(725) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(733) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(776) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(794) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(804) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(905) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(905) : error C2072: 'QtPrivate::SwapExceptionTester::checkSwap' : initialization of a function
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(912) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(912) : error C2065: 'value1' : undeclared identifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(912) : error C3861: 'noexcept': identifier not found
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(916) : error C2072: 'qSwap' : initialization of a function
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(963) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1116) : error C3646: 'noexcept' : unknown override specifier
            C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1122) : see reference to class template instantiation 'QNonConstOverload<Args...>' being compiled
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1116) : error C2143: syntax error : missing ';' before '->'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1116) : error C3551: expected a trailing return type
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1116) : error C2238: unexpected token(s) preceding ';'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1116) : error C2988: unrecognizable template declaration/definition
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1116) : error C2059: syntax error : '->'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1121) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1128) : error C3646: 'noexcept' : unknown override specifier
            C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1134) : see reference to class template instantiation 'QConstOverload<Args...>' being compiled
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1128) : error C2143: syntax error : missing ';' before '->'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1128) : error C3551: expected a trailing return type
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1128) : error C2238: unexpected token(s) preceding ';'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1128) : error C2988: unrecognizable template declaration/definition
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1128) : error C2059: syntax error : '->'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1133) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1145) : error C3646: 'noexcept' : unknown override specifier
            C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1151) : see reference to class template instantiation 'QOverload<Args...>' being compiled
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1145) : error C2143: syntax error : missing ';' before '->'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1145) : error C3551: expected a trailing return type
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1145) : error C2238: unexpected token(s) preceding ';'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1145) : error C2988: unrecognizable template declaration/definition
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1145) : error C2059: syntax error : '->'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1150) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1170) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1171) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qglobal.h(1172) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qtypeinfo.h(333) : error C2766: explicit specialization; 'QTypeInfo<ushort>' has already been defined
            C:\Qt\5.12.2\msvc2015_64\include\QtCore/qtypeinfo.h(305) : see previous definition of 'QTypeInfo<unsigned short>'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qtypeinfo.h(334) : error C2766: explicit specialization; 'QTypeInfo<uint>' has already been defined
            C:\Qt\5.12.2\msvc2015_64\include\QtCore/qtypeinfo.h(307) : see previous definition of 'QTypeInfo<unsigned int>'
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qlogging.h(124) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qlogging.h(140) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(57) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(58) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(80) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(81) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(85) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(120) : error C3646: 'noexcept' : unknown override specifier
            C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(167) : see reference to class template instantiation 'QFlags<T>' being compiled
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(121) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(122) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(125) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(129) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(130) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(131) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(132) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(133) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(134) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(135) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(137) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(139) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(140) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(141) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(142) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(143) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(144) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(145) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(146) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(148) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(150) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(152) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qflags.h(161) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(75) : error C3646: 'noexcept' : unknown override specifier
            C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(386) : see reference to class template instantiation 'QGenericAtomicOps<BaseClass>' being compiled
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(79) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(83) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(87) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(93) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(99) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(107) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(115) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(117) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(118) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(124) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(141) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(149) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(156) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(163) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(171) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(178) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(185) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(186) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(188) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(199) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(207) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(214) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(221) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(222) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(223) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(234) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(242) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(249) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(258) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(266) : error C3646: 'noexcept' : unknown override specifier
    C:\Qt\5.12.2\msvc2015_64\include\QtCore/qgenericatomic.h(266) : fatal error C1003: error count exceeds 100; stopping compilation
    NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe' : return code '0x2'
    S
    

  • Qt Champions 2018

    You should definitely not contaminate the Qt folder, C:/Qt/5.12.2/msvc2015_64 is an awful choice of folder, use something like C:\Temp\BuildingGammaRay.

    Could you post the parts of the output before the message you posted? want to check what compiler you are using





  • @shaan7
    I downloaded this but when running gammaray-wininjector-i686.exe nothing happens??



  • @VRonin
    I am still getting compilation errors
    This is the output
    [link text](link url)

    And this is the script
    link text

    Thanks for the help


  • Qt Champions 2018

    @GrahamLa Links are broken I'm afraid



  • @VRonin
    Hi
    I have it installed and running now.
    It only appears to run on exes built in release mode - is this expected?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.