User:Nolden: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Building Qt on BSD Operating Systems)
 
m (packages required)
Line 9: Line 9:


=== NetBSD ===
=== NetBSD ===
On NetBSD 7.0, Qt 5.6 branch builds using the system compiler gcc 4.8.4 with:
On NetBSD 7.0, Qt 5.6 branch builds using the system compiler gcc 4.8.4 on a full installation (with X11) using:


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


The -R /usr/X11R6/lib is necessary to compile examples linking to qtgui requiring libharfbuzz.so.
Required packages from pkgsrc or NetBSD packages via pkgin install <package>:
If not passed, linker errors are appearing in those examples.


gmake
Qt Base:
libxkbcommon, harfbuzz, png, jpeg, libproxy
Database drivers:
postgresql93-client, mysql-client, unixodbc, sqlite, sqlite3, freetds,
Multimedia:
gstreamer1, gst-plugins1-base, alsa-lib


=== OpenBSD ===
=== OpenBSD ===

Revision as of 12:00, 28 June 2016

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 on a full installation (with X11) using:

./configure -system-harfbuzz -system-sqlite

Required packages from pkgsrc or NetBSD packages via pkgin install <package>:

gmake

Qt Base: libxkbcommon, harfbuzz, png, jpeg, libproxy

Database drivers: postgresql93-client, mysql-client, unixodbc, sqlite, sqlite3, freetds,

Multimedia:

gstreamer1, gst-plugins1-base, alsa-lib

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.