第三方库交叉编译

1、事件通知库libevent

./configure --prefix=/home/arm-libevent/ --host=arm-none-linux-gnueabi CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++

//添加ssl
./configure --prefix=/home/arm-libevent/ --host=arm-none-linux-gnueabi CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++ CPPFLAGS="-I/home/arm-libssl/include" LDFLAGS="-L/home/arm-libssl/lib -lssl -lcrypto"

2、web服务器,lighttp
https://blog.csdn.net/djstavav/article/details/88526586

https://www.cnblogs.com/beacer/archive/2012/09/16/2687889.html

https://blog.csdn.net/huntinux/article/details/51249804

3、busybox

当执行/bin/cat的时候,实际执行的是/bin/busybox。这里busybox的argv[0]为/bin/cat。/bin/busybox内部,利用
argv[0]将cat Applet启动,执行cat命令

https://blog.csdn.net/feelinghappy/article/details/92133067

3、curl
// --enable-static --without-zlib
./configure --prefix=/home/arm-curl --host=arm-none-linux CC=arm-none-linux-gnueabi-gcc

4、lwebsocket
cd libwebsockets
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_INSTALL_PREFIX=/home/libwebsocket_x86

posted @ 2019-09-17 13:45  hostid  阅读(891)  评论(0编辑  收藏  举报