Compiling UCI as stand alone
cd ~
git clone git://nbd.name/uci.git ~/uci
cd ~/uci
cmake -DBUILD_LUA=off
sudo make install
或make install DESTDIR=$HOME(为了能够安装到标准路径下,方便其他程序也可以调用uci库,此处选择sudo mak install安装到根目录下)
此时会提示出错,
进入
http://nbd.name/gitweb.cgi?p=luci2/libubox.git;a=summary
git clone git://nbd.name/luci2/libubox.git ~/libubox
cd ~/libubox
cmake -DBUILD_LUA=off
sudo make install
返回uci目录继续安装
cd ~/uci
sudo make install
更新ldconfig
sudo /sbin/ldconfig -v
OK
参考:
http://blog.csdn.net/wsclinux/article/details/40426401