It is possible to cross-compile libpcap from this source tree on a Linux host for a QNX 8.0 target as follows:
- Obtain a licence, download and install QNX Software Center.
- Using QNX Software Center, install a suitable version of QNX SDP (for
example, 8.0.3 works) and note the SDP installation directory (for example,
~/qnx800). There is no need to install the Momentics IDE. - Initialize environment variables and cross-compile libpcap for the required
target. For example, for AArch64:
. ~/qnx800/qnxsdp-env.sh ./configure --host=aarch64-unknown-nto-qnx8.0.0 make - Cross-compile the required software using
libpcap.aand the headers from the libpcap source tree.
Depending on the QNX host, it may be possible to build libpcap natively. For
example, this works on QNX SDP 8.0.3 QSTI build 245 after installing the usual
dependencies (apk add flex bison). Note that at the time of this writing
this works differently from cross-compiling: the native environment does not
have the headers to enable netmap(4) support and does not have a library to
enable remote capture support.