OpenWrt——ubuntu 20.04安装uci、ubox、uloop

OpenWrt——ubuntu 20.04安装uci、ubox、uloop

安装ubox

  1. 克隆源码
$ git clone http://git.nbd.name/luci2/libubox.git libubox.git
Cloning into 'libubox.git'...
remote: Counting objects: 996, done.
remote: Compressing objects: 100% (404/404), done.
remote: Total 996 (delta 621), reused 886 (delta 556)
Receiving objects: 100% (996/996), 185.39 KiB | 12.00 KiB/s, done.
Resolving deltas: 100% (621/621), done.
  1. 生成编译规则
$ cd libubox.git
$ cmake -DBUILD_LUA=off
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


-- The C compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for modules 'json-c;json'
--   No package 'json-c' found
--   No package 'json' found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/d/Adam/libubox.git
  1. 编译

```$ make
Scanning dependencies of target ubox-static
[  3%] Build
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值