ROCprof Compute Viewer installation#

2025-06-04

2 min read time

Applies to Linux

This topic explains how to build ROCprof Compute Viewer (RCV) from source on various Operating Systems.

For prebuild binaries, see the RCV release.

Building from source#

By default, the project builds with Qt 6.8. To build with Qt 5, use:

cmake -DQT_VERSION_MAJOR=5 ..

For Qt 6.4, use:

cmake -DQT_VERSION_MINOR=4 ..

Build on macOS Homebrew#

  1. Install Qt 5 or Qt 6:

    brew install qt@5
    brew install qt@6
    
  2. Configure CMake and build:

    mkdir build
    cd build
    cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt@6)
    # or
    cmake .. -DQT_VERSION_MAJOR=5 -DCMAKE_PREFIX_PATH=$(brew --prefix qt@5)
    make -j
    

Build on Linux#

  1. Install Qt 5 or Qt 6:

    • For Ubuntu 22.04

      sudo apt install -y qtbase5-dev qt5-qmake cmake build-essential
      
    • For Ubuntu 24.04

      sudo apt install -y libgl1 qtbase5-dev qt5-qmake cmake build-essential
      
    • For other distributions, see Getting Started with Qt.

  2. Configure CMake and build:

    mkdir build
    cd build
    cmake .. -DQT_VERSION_MAJOR=5
    # for qt6.4, use
    # cmake .. -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=4
    make -j
    

Build on Windows Subsystem for Linux (WSL)#

  • Requires Ubuntu 22+

  • Follow the same instructions as given for Linux

  • Recommended to use Qt 5.15

Build on Windows Native#

To build on Windows, use Qt Tools with Qt 6.8 (or later). See Installing Qt on Windows for details.

Disabling OpenGL widgets#

To disable OpenGL widgets, use:

cmake .. -DRCV_DISABLE_OPENGL=On