Open cy-goh opened 5 years ago
I can't really offer any help here, since I'm not familiar with and don't have access to QNX. You might try installing the latest auto tools (autoconf, automake, libtool) on your QNX system and re-generate the configure script on the system (by running aclocal, acheader, autoconf, etc.), and see if that resolves it.
hi, cy did fix this issue? cus im facing the same issue.
@zangetsudo nope, I didn't get it to work. In the end I used another header only library.
I have succeeded in building libconfig for qnx7 aarch64le in windows by using msys2. The tricky part was adding -Vgcc_ntoaarch64le to CC and CXX.
Please use the following example:
export QNX_HOST=/c/QNX/qnx710/host/win64/x86_64 #Please change the qnx path export QNX_TARGET=/c/QNX/qnx710/target/qnx7 #Please change the qnx path export SYSROOT=$QNX_TARGET/aarch64le/usr/ export ABI=aarch64-unknown-nto-qnx7.1.0
export AR=$QNX_HOST/usr/bin/$ABI-ar.exe export AS=$QNX_HOST/usr/bin/$ABI-as.exe export CC="$QNX_HOST/usr/bin/qcc.exe -Vgcc_ntoaarch64le" export CXX="$QNX_HOST/usr/bin/q++.exe -Vgcc_ntoaarch64le_gpp" export LD=$QNX_HOST/usr/bin/$ABI-ld.exe export NM=$QNX_HOST/usr/bin/$ABI-nm.exe export OBJDUMP=$QNX_HOST/usr/bin/$ABI-objdump.exe export RANLIB=$QNX_HOST/usr/bin/$ABI-ranlib.exe export STRIP=$QNX_HOST/usr/bin/$ABI-strip.exe export CFLAGS="-fPIC -D_QNX_SOURCE -O3" export CXXFLAGS="-stdlib=libstdc++ -fPIC -D_QNX_SOURCE -O3" export LDFLAGS="-pie"
mkdir -p out export OUTDIR=$PWD/out
autoreconf -if ./configure --prefix=$OUTDIR --host=$ABI --with-sysroot=$SYSROOT --enable-static=no --disable-cxx --disable-doc --disable-examples make clean make AM_DEFAULT_VERBOSITY=1 -j16 make install
Hi I'm trying to cross compile for qnx7 aarch64le from my ubuntu 18.04 environment.
I tried the following configurations. However, during compilation, I seem to be lacking this file
.deps/libconfig___la-libconfigcpp.TPlo
. I have no experience with libtool and cross compilation so wish someone can help me here.error when I run make,