Updated: October 28, 2024 |
OpenVPN is an open-source application to securely tunnel IP networks over a single TCP/UDP port, with support for SSL/TLS-based session authentication and key exchange, packet encryption, packet authentication, and packet compression. Here's how to compile it for QNX Neutrino:
tar -zxvf openvpn-2.3.11.tar.gz cd openvpn-2.3.11
For example:
echo '#!/bin/ksh function hook_preconfigure { CPPFLAGS="$CPPFLAGS -I$QNX_TARGET/usr/include/io-pkt" configure_opts="${configure_opts} --disable-plugin-auth-pam" configure_opts="${configure_opts} ac_cv_func_fork_works=yes" } ' > build-hooks chmod 777 build-hooks
*-*-qnx*) $as_echo "#define TARGET_QNXNTO 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define TARGET_PREFIX "Q" _ACEOF ;;
/* Are we running on QNX Neutrino? */ #undef TARGET_QNXNTO #ifdef TARGET_QNXNTO /* QNX mirrors the NetBSD implementation */ #define TARGET_NETBSD #endif
#ifdef TARGET_QNXNTO #include <sys/types_bsd.h> #endif
#elif defined(TARGET_QNXNTO) buf_printf (&out, "IV_PLAT=qnx\n");
#ifdef TARGET_QNXNTO #undef HAVE_IN_PKTINFO #undef IP_PKTINFO #endif
source base_directory/qnxsdp-env.sh
where base_directory is where you installed QNX SDP.
addvariant nto arm le-v7 addvariant nto aarch64 le addvariant nto x86_64 o
make
The binaries are located in the specific directory for each target. For example, the openvpn binary is placed in the following: