小米3g路由器编译libwebsockets

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/ypbsyy/article/details/85852320

 1、下载编译工具链

http://www1.miwifi.com/miwifi_open.html

 2、编译r1c

more /data/merlin/xiaomi/libwebsockets/libwebsockets/build/build.sh 
cmake ..   -DCMAKE_INSTALL_PREFIX=../../prefix   -DCMAKE_C_COMPILER=/home/merlin/xiaomi/sdk_package_r1c/toolchain/bin/mipsel-openwrt-linux-gcc   -DCMAKE_CXX_COMPILER=/home/merlin/xia
omi/sdk_package_r1c/toolchain/bin/mipsel-openwrt-linux-g++   -DLWS_OPENSSL_INCLUDE_DIRS=/home/merlin/xiaomi/sdk_package_r1c/include   -DLWS_OPENSSL_LIBRARIES="/home/merlin/xiaomi/sdk
_package_r1c/toolchain/lib/libdl.so;/home/merlin/xiaomi/sdk_package_r1c/lib/libssl.so;/home/merlin/xiaomi/sdk_package_r1c/lib/libcrypto.so"
root@ubuntu:/home/xiaomi/shadowsocks-libev/shadowsocks-libev# 

3、编译r3p

cmake ..   -DCMAKE_INSTALL_PREFIX=../../prefix   -DCMAKE_C_COMPILER=/home/merlin/xiaomi/sdk_package_r3p/sdk_package/toolchain/bin/mipsel-xiaomi-linux-uclibc-gcc   -DCMAKE_CXX_COMPILER=/home/merlin/xiaomi/sdk_package_r3p/sdk_package/toolchain/bin/mipsel-xiaomi-linux-uclibc-g++   -DLWS_OPENSSL_INCLUDE_DIRS=/home/merlin/xiaomi/sdk_package_r3p/sdk_package/include   -DLWS_OPENSSL_LIBRARIES="/home/merlin/xiaomi/sdk_package_r3p/sdk_package/toolchain/mipsel-xiaomi-linux-uclibc/sysroot/usr/lib/libdl.so;/home/merlin/xiaomi/sdk_package_r3p/sdk_package/lib/libssl.so;/home/merlin/xiaomi/sdk_package_r3p/sdk_package/lib/libcrypto.so"

 

展开阅读全文

没有更多推荐了,返回首页