User:Nolden

From Qt Wiki
Revision as of 13:38, 7 June 2016 by Nolden (talk | contribs) (Building Qt on BSD Operating Systems)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Building Qt on FreeBSD, NetBSD and OpenBSD

FreeBSD

On FreeBSD 10.3, Qt 5.6 branch builds using the system compiler clang 3.4 with:

./configure -system-harfbuzz -developer-build


NetBSD

On NetBSD 7.0, Qt 5.6 branch builds using the system compiler gcc 4.8.4 with:

./configure -R /usr/X11R6/lib -system-harfbuzz -developer-build

The -R /usr/X11R6/lib is necessary to compile examples linking to qtgui requiring libharfbuzz.so. If not passed, linker errors are appearing in those examples.


OpenBSD

On OpenBSD 5.9, Qt 5.6 branch builds using the system compiler gcc 4.2.1 with:

./configure -rpath -R /usr/X11R6/lib -no-harfbuzz -no-pch -developer-build -nomake tests

As gcc 4.2.1 doesn't have c++11 features, compile errors are currently in some tests and in the qt3d module. Everything else compiles also in release and debug mode.

For using openssl, install openssl-1.0.2 from packages with pkg_add openssl. It will install libs to /usr/local/lib/eopenssl and includes to /usr/local/include/eopenssl. Those path have to be passed to configure using -I and -L for using openssl. The libressl shipped with OpenBSD is not supported by Qt.