BSD Ports

x11/qt6/qtbase 6.11.2p1 OpenBSD

C++ general-purpose toolkit

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Rafael Sadowski <[email protected]>
Categories
x11, devel, lang/python

Description

Qt is a cross-platform toolkit for developing applications, mainly GUI-based.

There's a debug version of the libraries: qt6-debug.

There are database plugins: qt6-mysql, qt6-postgresql and qt6-sqlite

People who want to use Qt6 to compile applications outside the ports tree should note that Qt6's installation conforms to OpenBSD habits, not Qt's recommendations. Accordingly:

  • libs are separated from includes.
  • moc is installed as ${PREFIX}/bin/moc-qt6, in order not to conflict with other Qt versions.
  • uic is installed as ${PREFIX}/bin/uic-qt6

Generally, it's just a question of invoking:

env MOC=moc-qt6 UIC=uic-qt6 configure \ --with-qt-includes=${PREFIX}/include/X11/qt6 \ --with-qt-libraries=${PREFIX}/lib/qt6

... or, to force MOC/UIC in your make/gmake invocation:

make MOC=moc-qt6 UIC=uic-qt6

will override the Makefile contents.

In the other systems

The newest version among them is 6.11.2, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
OpenBSDx11/qt6/qtbase6.11.2p1 newestno data-Rafael Sadowski <[email protected]>-
NetBSDx11/qt6-qtbase by name6.11.2nb2 newestnone known--2026-09-29

Compare across BSDs

Install

Binary package:

pkg_add qt6-qtbase

From the ports tree:

cd /usr/ports/x11/qt6/qtbase && make install

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Build dependencies 8
Run dependencies 19
Required by 543

The first 100 are listed.