pjsip autoconf交叉编译成功,可以正常在板子上跑了移植到arm成功

pjproject-1.5.5.tar.bz2的安装包,解压后,转到目录~/pjproject-1.5.5/。

pjsip用autoconf发不的,第一次用autoconf,捣鼓了半天用下面这一句,把他配置好了: 

CC=armv5l-linux-gcc ./aconfigure --host=armv5l-linux --target=armv5l-linux --build=i386-redhat-linux

编译OK~~~
查看文件:
[root@global armv5l-unknown-linux-gnu]# file playfile
playfile: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

但是我把sample的程序下到板子上,修改权限,运行,就出现了下面的提示:

error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory

缺少库文件?

原来编译默认的把编译好的库都放到编译器目录下的lib里了

find / -name libXXX

找到了库文件:
/opt/timesys/toolchains/armv5l-linux/armv5l-linux/lib/libxxx

然后把库文件下载到板子/lib下,运行ok~~~~

暂时需要以下几个库,可能还需要其它的,缺的时候再说吧:

libuuid.so.1

libssl.so.5

libcrypto.so.5

libz.so.1

——————
无论在哪里做什么,只要坚持服务、创新、创造价值,其他的东西自然都会来的。
原文地址:https://www.cnblogs.com/pied/p/1659209.html