Skip to content

Building Seer Qt5

Ernie Pasveer edited this page Feb 18, 2024 · 5 revisions

Seer with Qt5 requires these components:

  • Linux
  • C++17
  • gdb with "mi" interpreter
  • CMake (3.10 or newer)
  • QT5 (5.15.2 or newer)
  • QT5 QtCharts (5.15.2 or newer)
  • QT as old as 5.9.5 (e.g., Ubuntu 18.04 LTS) is supported but has certain limitations.
  • When building Seer from source, you will need the QT5 "devel" packages installed on your system for your distribution.

If you want the latest Qt5 source, grab the v1.17 source tab file from here. Any later version is not Qt5 compatible (but you can try if you want to :^).

The v1.17 will work with Qt5. Grab it from here. This version will work with Qt5.

https://github.com/epasveer/seer/releases/tag/v1.17

Newer versions (v2.0 and later) will likely work with Qt5, but may encounter build errors. Give it a try. I will attempt to keep Seer compiling on with Qt5 and Qt6.

NOTE v2.3 is the last version that compiles with Qt5!!

Install the version somewhere on your system.

Setup cmake and build

% cd seer/src
% mkdir build
% cd build
% cmake -DQTVERSION=QT5 ..

% make seergdb

Some common cmake settings can be specified.

% cmake -DQTVERSION=QT5 -DCMAKE_BUILD_TYPE=Debug ..     # Debug release -g.
% cmake -DQTVERSION=QT5 -DCMAKE_BUILD_TYPE=Release ..   # Optimized release -O.
% cmake -DQTVERSION=QT5 -DCMAKE_CXX_FLAGS=-Wall ..      # With all compile warnings turned on.

Copy the Seer binary to your bin directory of choice. One of the below. May need root access.

% cd seer/src/build
% cp seergdb ~/bin/seergdb
% cp seergdb /usr/local/bin/seergdb
% cp seergdb /usr/bin/seergdb
% rehash

Or use the 'install' make target, which will usually copy it to /usr/local/bin. May need root access.

% cd seer/src/build
% sudo make install

For Debian based releases, you can use the normal tooling to build a .deb package containing Seer. You need the build-essential package installed.

% cd seer
% dpkg-buildpackage

For building on MacOS, you most likely need to provide cmake the location of your Qt5 installation. There's lots of info on the web. Here's one source.

https://stackoverflow.com/questions/18722329/cmake-does-not-find-qt-5-1-1

However, you can try one of these ways. The first manually specifies where the Qt5 is installed. The second asks brew.

% cmake -DQTVERSION=QT5 -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5/ ..
% cmake -DQTVERSION=QT5 -DCMAKE_PREFIX_PATH=$(brew --prefix qt5) ..
Clone this wiki locally