昨天尝试编译Redinav这个项目的源代码 https://www.redinav.com/点击右下角的"Source code covered by GPLv3"就可以下载
用的环境是Qt最后一个安装版5.14.2, 系统Ubuntu20.04, Python3.8
根据源代码里的说明, 在src/build-project-linux.sh 中配置好QT_BASE_DIR后, 执行
./configure, 会自动clone并编译openssl和libssh2, 这一步都没有问题
然后执行./build-project-linux.sh -r -n -s 编译项目, 在最后一步出现错误
/usr/bin/ld: /home/mikov/QtProjects/temp/redinav/src/../3rdparty/libssh2/build/usr/local/lib/libssh2.a(openssl.c.o): in function `_libssh2_curve25519_new':
openssl.c:(.text+0x2144): undefined reference to `EVP_PKEY_get_raw_private_key'
/usr/bin/ld: openssl.c:(.text+0x21b7): undefined reference to `EVP_PKEY_get_raw_public_key'
/usr/bin/ld: /home/mikov/QtProjects/temp/redinav/src/../3rdparty/libssh2/build/usr/local/lib/libssh2.a(openssl.c.o): in function `gen_publickey_from_ed_evp':
openssl.c:(.text+0x2349): undefined reference t