libuci库是LUA在使用UCI时所需的动态库
1,准备---安装cmake
sudo apt-get install cmake
2,准备---交叉编译libubox库
交叉编译libuci需要用到libubox.so库,所以要先编译此库,编译libubox链接:
https://blog.csdn.net/u013625451/article/details/83057673
将上述编译好的libubox.so 放到/usr/local/lib目录下。
3,下载libuci源码
git clone https://git.openwrt.org/project/uci.git
cd uci
export CC=arm-cortex_a9-linux-gnueabi-gcc //通告使用交叉编译器
cmake CMakeList.txt
make
(make install 不执行,因为无需安装到开发环境)
4,拷贝动态库uci.so到目标板上
cp ./lua/uci.so /home/myboard/rootfs/lib