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

Linux下安装uci

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

http://blog.csdn.net/newthinker_wei/article/details/8843133

https://forum.openwrt.org/viewtopic.php?id=15243

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-05-26
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2022-01-31
  • 2022-01-14
  • 2021-07-25
  • 2021-11-14
  • 2021-08-21
相关资源
相似解决方案