Skip to content

Commit e98d8ba

Browse files
committed
build: update build instructions for Qt6 on Debian/Ubuntu
Also add support for the QCustomPlot library name used on Debian.
1 parent b61451d commit e98d8ba

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

HACKING.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,22 @@ As of now, you will need the following dependencies to build this project:
6262
### On Debian/Ubuntu
6363

6464
```bash
65-
add-apt-repository ppa:kubuntu-ppa/backports
6665
apt-get update
66+
67+
# For Qt5
6768
apt-get install libkf5threadweaver-dev libkf5i18n-dev libkf5configwidgets-dev libkf5syntaxhighlighting-dev \
6869
libkf5coreaddons-dev libkf5itemviews-dev libkf5itemmodels-dev libkf5kio-dev libkf5parts-dev \
6970
libkf5solid-dev libkf5windowsystem-dev libkf5notifications-dev libkf5iconthemes-dev libelf-dev \
7071
libdw-dev cmake extra-cmake-modules gettext libqt5svg5-dev
71-
```
72-
73-
Note: Ubuntu 20.04 does not provide the minimal version of QT, if you use this old Ubuntu version then
74-
you'd need to _additionally_ install it from a version outside of the distro repository.
75-
The automatic builds via GitHub actions [use the following][Ubuntu2004Script] for that:
7672

77-
```bash
78-
sudo add-apt-repository ppa:beineri/opt-qt-5.15.4-focal
79-
sudo apt-get update
80-
sudo apt-get install -y qt515base qt515svg qt515x11extras \
81-
libqt5x11extras5-dev # this one is optional for Hotspot, but required for KDDockWidgets
73+
# For Qt6 (-DQT6_BUILD=ON)
74+
apt-get install libkf6threadweaver-dev libkf6i18n-dev libkf6configwidgets-dev libkf6syntaxhighlighting-dev \
75+
libkf6coreaddons-dev libkf6itemviews-dev libkf6itemmodels-dev libkf6kio-dev libkf6parts-dev \
76+
libkf6solid-dev libkf6windowsystem-dev libkf6notifications-dev libkf6iconthemes-dev libelf-dev \
77+
libdw-dev libdwarf-dev libdebuginfod-dev cmake extra-cmake-modules qt6-svg-dev libzstd-dev \
78+
libkddockwidgets-qt6-dev kgraphviewer-dev libqcustomplot-dev
8279
```
8380

84-
[Ubuntu2004Script]:https://github.com/KDAB/hotspot/blob/master/scripts/compile-test/BaseUbuntu20.04
85-
8681
### On Fedora
8782

8883
```bash

cmake/FindQCustomPlot.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3131
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232

33-
find_library(QCustomPlot_LIBRARY NAMES qcustomplot-qt${QT_MAJOR_VERSION} qcustomplot)
33+
find_library(QCustomPlot_LIBRARY NAMES qcustomplot-qt${QT_MAJOR_VERSION} qcustomplot QCustomPlotQt${QT_MAJOR_VERSION})
3434
set(QCustomPlot_LIBRARIES "${QCustomPlot_LIBRARY}")
3535

3636
find_path(QCustomPlot_INCLUDE_DIR NAMES qcustomplot.h)

0 commit comments

Comments
 (0)