BSD Ports

meta/qt6 6.11.2 OpenBSD

C++ application and widget toolkit, meta-package

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
meta

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 and qt6-postgresql.

People who want to use Qt6 to compile applications outside the ports tree should note that Qt6's installation conforms to OpenBSD habits, not upstream 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 invocation:

make MOC=moc-qt6 UIC=uic-qt6

will override the Makefile contents.

In the other systems

SystemPortVersion
OpenBSDmeta/qt66.11.2
FreeBSDdevel/qt66.11.2
MidnightBSDdevel/qt6
GhostBSDdevel/qt66.11.2

Install

Binary package:

pkg_add qt6

From the ports tree:

cd /usr/ports/meta/qt6 && make install

Dependencies

Run dependencies 35

No port depends on this one.