![无法编译 bctoolbox (linphone 的一部分)](https://linux22.com/image/1543233/%E6%97%A0%E6%B3%95%E7%BC%96%E8%AF%91%20bctoolbox%20(linphone%20%E7%9A%84%E4%B8%80%E9%83%A8%E5%88%86).png)
由于没有为 linphone 的新版本 4 分发更多二进制文件,我尝试自己编译该应用程序。我使用 docker 容器进行编译过程。现在,bctoolbox
我收到此错误:
/usr/bin/ld: /usr/local/lib/libmbedtls.a(ssl_tls.c.o): relocation R_X86_64_PC32 against symbol `mbedtls_ssl_sig_hash_set_const_hash' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
src/CMakeFiles/bctoolbox.dir/build.make:305: recipe for target 'src/libbctoolbox.so.1' failed
make[2]: *** [src/libbctoolbox.so.1] Error 1
make[1]: *** [src/CMakeFiles/bctoolbox.dir/all] Error 2
CMakeFiles/Makefile2:201: recipe for target 'src/CMakeFiles/bctoolbox.dir/all' failed
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c cd bctoolbox-0.6.0 && cmake . && make && make install' returned a non-zero code: 2
代码托管在这里(太长,无法在这里发布)。