1.编译环境(这里用的是VMware+Utunbu,其他linux也行)
VMware序列号:5A02H-AU243-TZJ49-GTC7K-3C61N
2.https://github.com/dosgo/ngrok-c,下载打包文件

3.https://downloads.openwrt.org/,下载对应固件的SDK

把下载的两个文件拉到utunbu,接着两个文件都右键-》提取到此处

提取完如图

4.为了方便把SDK文件夹改为1,打开1文件夹找到staging_dir/toolchain-mips_xxxxxx/bin,随便一个文件右键属性复制这段位置

5.打开ngrokc-master找到openwrtbuildv2.sh打开,编辑

把复制的位置覆盖到原有的地址,STAGING_DIG对应减少后面的。
然后右键openwrtbuildv2.sh属性

设置允许作为程序执行文件
6.打开/ngrok-c-master/include,复制里面的openssl文件夹

到/1/staging_dir/toolchain-mips_xxxxxx /include

7.
打开ngrok-c-master,空白处右键-打开终端

输入sudo ./openwrtbuildv2.sh回车

输入密码,确定
编译完如图

打开ngrok-c-master/build-mips可以发现编译了一个ngrokc

8.记得安装libopenssl.ipk(ngrokc运行库),openwrt官网base下载对应的ipk并安装

网友评论
这里只有客户端的编译介绍。
请教,我自己有VPS服务器,如何编译服务器端,搭建自己的Ngrokc服务。
网上有自己搭建ngrok服务器的教程,但是不晓得怎么编译openwrt路由器上的客户端