Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译时报错 #73

Closed
onlyJinx opened this issue Aug 11, 2019 · 72 comments
Closed

编译时报错 #73

onlyJinx opened this issue Aug 11, 2019 · 72 comments

Comments

@onlyJinx
Copy link
Contributor

我用的是编译polarssl库那个方法,在编译polarssl库时能正常生成文件;然后也复制到ngrok-c下了,所有操作都和教程一样,在执行openwrtbuild.sh报错了,SDK的问题自己Google解决了,这个问题我搞不定,请大家提示一下哪里错了,哈哈
机器ubuntu16,编译给K2路由(mipsle)

openwrtbuild.sh里的CC=mipsel-openwrt-linux-g++我改成SDK里的g++(mipsel-openwrt-linux-uclibc-g++)也不行

ng
ng2

@dosgo
Copy link
Owner

dosgo commented Aug 12, 2019

这个不是很简单,找不到头文件,直接把polarssl头文件复制到你sdk的include目录

@onlyJinx
Copy link
Contributor Author

这个不是很简单,找不到头文件,直接把polarssl头文件复制到你sdk的include目录

早上好~
请问是把mbedtls-2.16.2里的全部文件复制到SDK的include里去吗?谢谢。。
ng

@dosgo
Copy link
Owner

dosgo commented Aug 12, 2019

如果是meddtls得把config.h的常量打开来

@onlyJinx
Copy link
Contributor Author

如果是meddtls得把config.h的常量打开来

大大有QQ交流群之类的吗?或者个人QQ之类的,加一下,哈哈,怕泄露的话那加我的925198583

@onlyJinx
Copy link
Contributor Author

如果是meddtls得把config.h的常量打开来

常量我打开了,meddtls的编译完后生成三个文件(libmbedcrypto.a libmbedtls.a libmbedx509.a )所以应该算2.0的吧,所以我都是按照2.0的教程操作的,所有不步骤都正常,就执行openwrtbuild.sh时报错了

ng
ng2
ng3

@dosgo
Copy link
Owner

dosgo commented Aug 12, 2019

最重要的错误呢。。

@onlyJinx
Copy link
Contributor Author

最重要的错误呢。。

我直接贴在下面了,麻烦看一下,已经把mbedtls-2.16.2/include里的文件都复制到SDK里的include了

root@instance-1:~/ngrok-c# ./openwrtbuild.sh
mkdir: cannot create directory ‘build-mips’: File exists
In file included from sslbio.h:8:0,
from global.h:7,
from config.h:23,
from sendmsg.cpp:1:
polarsslbio.h:24:26: fatal error: polarssl/net.h: No such file or directory
#include <polarssl/net.h>
^
compilation terminated.
In file included from sslbio.h:8:0,
from global.h:7,
from config.h:23,
from main.cpp:1:
polarsslbio.h:24:26: fatal error: polarssl/net.h: No such file or directory
#include <polarssl/net.h>
^
compilation terminated.
In file included from sslbio.h:8:0,
from global.h:7,
from config.h:23,
from nonblocking.h:3,
from nonblocking.cpp:1:
polarsslbio.h:24:26: fatal error: polarssl/net.h: No such file or directory
#include <polarssl/net.h>
^
compilation terminated.
In file included from sslbio.h:8:0,
from global.h:7,
from config.h:23,
from polarsslbio.cpp:1:
polarsslbio.h:24:26: fatal error: polarssl/net.h: No such file or directory
#include <polarssl/net.h>
^
compilation terminated.
In file included from sslbio.h:8:0,
from global.h:7,
from global.cpp:1:
polarsslbio.h:24:26: fatal error: polarssl/net.h: No such file or directory
#include <polarssl/net.h>
^
compilation terminated.
In file included from sslbio.h:8:0,
from global.h:7,
from config.h:23,
from ngrok.cpp:1:
polarsslbio.h:24:26: fatal error: polarssl/net.h: No such file or directory
#include <polarssl/net.h>
^
compilation terminated.
mipsel-openwrt-linux-g++: error: build-mips/main.o: No such file or directory
mipsel-openwrt-linux-g++: error: build-mips/sendmsg.o: No such file or directory
mipsel-openwrt-linux-g++: error: build-mips/nonblocking.o: No such file or directory
mipsel-openwrt-linux-g++: error: build-mips/global.o: No such file or directory
mipsel-openwrt-linux-g++: error: build-mips/ngrok.o: No such file or directory
mipsel-openwrt-linux-g++: error: build-mips/polarsslbio.o: No such file or directory

@dosgo
Copy link
Owner

dosgo commented Aug 12, 2019

那你找找sdk include有没有polarssl文件夹,没有的话就不用我说了吧

@onlyJinx
Copy link
Contributor Author

那你找找sdk include有没有polarssl文件夹,没有的话就不用我说了吧

sdk/include没有,在sdk/usr/include倒是找到一个polarssl,我把它复制到skd/include下去重新运行openwrtbuild.sh也是报错(复制ngrok-c/polarssl的也一样报错)
搜索polarssl结果如下
root@instance-1:~/op/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/incl
ude# find / -name polarssl
/root/ngrok-c/polarssl
/root/op/staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/include/polarssl

root@instance-1:~/ngrok-c# ./openwrtbuild.sh
mkdir: cannot create directory ‘build-mips’: File exists
ngrok.cpp: In function 'int ConnectMain(int*, sockaddr_in, ssl_info**)':
ngrok.cpp:564:44: error: 'ClientId' was not declared in this scope
SendAuth(*mainsock,&(*mainsslinfo)->ssl, *ClientId, authtoken,password_c);
^
ngrok.cpp:564:54: error: 'authtoken' was not declared in this scope
SendAuth(*mainsock,&(*mainsslinfo)->ssl, *ClientId, authtoken,password_c);
^
ngrok.cpp:564:64: error: 'password_c' was not declared in this scope
SendAuth(*mainsock,&(*mainsslinfo)->ssl, *ClientId, authtoken,password_c);
^
mipsel-openwrt-linux-g++: error: build-mips/ngrok.o: No such file or directory

@dosgo
Copy link
Owner

dosgo commented Aug 12, 2019

代码是最新的吗

@onlyJinx
Copy link
Contributor Author

代码是最新的吗

对,ngrok是release里的v1.48,mbed是官网最新的2.16.2
image
image

@dosgo
Copy link
Owner

dosgo commented Aug 12, 2019 via email

@onlyJinx
Copy link
Contributor Author

不要1.48,直接git拉------------------ 原始邮件 ------------------ 发件人: "onlyJinx"notifications@github.com 发送时间: 2019年8月12日(星期一) 中午12:36 收件人: "dosgo/ngrok-c"ngrok-c@noreply.github.com; 抄送: "dosgo"dosgo@qq.com;"Comment"comment@noreply.github.com; 主题: Re: [dosgo/ngrok-c] 编译时报错 (#73) 代码是最新的吗 对,ngrok是release里的v1.48,mbed是官网最新的2.16.2 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

可是直接git clone的话就没有教程里的openwrtbuild.sh,只有一个V2的
image

@dosgo
Copy link
Owner

dosgo commented Aug 12, 2019

那你就把1.48的拿过来用

@onlyJinx
Copy link
Contributor Author

onlyJinx commented Aug 14, 2019

那你就把1.48的拿过来用

大佬,polarssl库编译成功,我把polarssl里面的include/polarssl还有include/mbedtls 文件夹都复制到SDK/include了,常量config.h也修改了,代码是直接git clone的了,执行openwrtbuild.sh时报下面的错误,请再提示提示哪里有问题。。

image

[root@localhost include]# cd ~/ngrok-c/
[root@localhost ngrok-c]# ./openwrtbuild.sh
mkdir: cannot create directory ‘build-mips’: File exists
build-mips/main.o: In function proxy()': main.cpp:(.text+0x4c0): warning: gethostbyname is obsolescent, use getnameinfo() instead. build-mips/ngrok.o: In function RemoteSslInit(Sockinfo*)':
ngrok.cpp:(.text+0x32c): undefined reference to ssl_write' build-mips/ngrok.o: In function LocalToRemote(Sockinfo*, ssl_info*)':
ngrok.cpp:(.text+0x40c): undefined reference to ssl_write' build-mips/ngrok.o: In function ConnectMain(int*, sockaddr_in, ssl_info**)':
ngrok.cpp:(.text+0x780): undefined reference to x509_crt_free' ngrok.cpp:(.text+0x788): undefined reference to ssl_free'
ngrok.cpp:(.text+0x790): undefined reference to ctr_drbg_free' ngrok.cpp:(.text+0x798): undefined reference to entropy_free'
build-mips/ngrok.o: In function CmdSock(int*, Sockinfo*, sockaddr_in)': ngrok.cpp:(.text+0xf20): undefined reference to ssl_read'
ngrok.cpp:(.text+0x1290): undefined reference to ssl_write' ngrok.cpp:(.text+0x1370): undefined reference to ssl_write'
build-mips/ngrok.o: In function RemoteToLocal(ssl_info*, Sockinfo*)': ngrok.cpp:(.text+0x1484): undefined reference to ssl_read'
build-mips/ngrok.o: In function ConnectLocal(ssl_info*, Sockinfo*)': ngrok.cpp:(.text+0x1888): undefined reference to ssl_read'
build-mips/ngrok.o: In function SendAuth(int, _ssl_context*)': ngrok.cpp:(.text._Z8SendAuthiP12_ssl_context[_Z8SendAuthiP12_ssl_context]+0xe0): undefined reference to ssl_write'
build-mips/main.o: In function checkping()': main.cpp:(.text+0x318): undefined reference to ssl_write'
build-mips/main.o: In function proxy()': main.cpp:(.text+0x3bc): undefined reference to CheckUdpAuth(int)'
main.cpp:(.text+0x3d0): undefined reference to CheckRegTunnel(int)' main.cpp:(.text+0x3e4): undefined reference to CheckUdpPing(int)'
main.cpp:(.text+0x854): undefined reference to UdpRecv(fd_set*)' build-mips/main.o: In function main':
main.cpp:(.text.startup+0x108): undefined reference to initUdp()' build-mips/sendmsg.o: In function SendReqTunnel(int, _ssl_context*, TunnelInfo*)':
sendmsg.cpp:(.text+0x1dc): undefined reference to ssl_write' build-mips/nonblocking.o: In function clearsock(Sockinfo*)':
nonblocking.cpp:(.text+0x30): undefined reference to net_close' nonblocking.cpp:(.text+0x94): undefined reference to ssl_close_notify'
nonblocking.cpp:(.text+0xa0): undefined reference to x509_crt_free' nonblocking.cpp:(.text+0xa8): undefined reference to ssl_free'
nonblocking.cpp:(.text+0xb0): undefined reference to ctr_drbg_free' nonblocking.cpp:(.text+0xb8): undefined reference to entropy_free'
build-mips/polarsslbio.o: In function ssl_init_info(int*, ssl_info*)': polarsslbio.cpp:(.text+0x2c): undefined reference to x509_crt_init'
polarsslbio.cpp:(.text+0x38): undefined reference to entropy_init' polarsslbio.cpp:(.text+0x44): undefined reference to entropy_func'
polarsslbio.cpp:(.text+0x54): undefined reference to entropy_func' polarsslbio.cpp:(.text+0x5c): undefined reference to ctr_drbg_init'
polarsslbio.cpp:(.text+0x6c): undefined reference to ssl_init' polarsslbio.cpp:(.text+0x7c): undefined reference to ssl_set_endpoint'
polarsslbio.cpp:(.text+0x88): undefined reference to ssl_set_authmode' polarsslbio.cpp:(.text+0xa0): undefined reference to ssl_set_ca_chain'
polarsslbio.cpp:(.text+0xb4): undefined reference to ssl_set_rng' polarsslbio.cpp:(.text+0xa8): undefined reference to ctr_drbg_random'
polarsslbio.cpp:(.text+0xb8): undefined reference to ctr_drbg_random' polarsslbio.cpp:(.text+0xbc): undefined reference to net_recv'
polarsslbio.cpp:(.text+0xd0): undefined reference to net_recv' polarsslbio.cpp:(.text+0xc0): undefined reference to net_send'
polarsslbio.cpp:(.text+0xd4): undefined reference to net_send' polarsslbio.cpp:(.text+0xdc): undefined reference to ssl_set_bio'
polarsslbio.cpp:(.text+0xf4): undefined reference to ssl_set_session' polarsslbio.cpp:(.text+0xfc): undefined reference to ssl_handshake'
polarsslbio.cpp:(.text+0x158): undefined reference to ssl_handshake' polarsslbio.cpp:(.text+0x168): undefined reference to ssl_get_verify_result'
polarsslbio.cpp:(.text+0x17c): undefined reference to `ssl_get_session'
collect2: error: ld returned 1 exit status

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

链接的时候要加上polarssl编译出来的.a库

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

还有polarssl不要新版本,新版本是没用的

@onlyJinx
Copy link
Contributor Author

链接的时候要加上polarssl编译出来的.a库

还有polarssl不要新版本,新版本是没用的

额,那我用1.3的试试,谢谢回复。。

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

啥1.3啊?

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

我说的是polarssl库不要最新版本的。。ngrok源码要最新的,

@onlyJinx
Copy link
Contributor Author

我说的是polarssl库不要最新版本的。。ngrok源码要最新的,

我说的是polarss,保守一点下载2.14的
image

@onlyJinx
Copy link
Contributor Author

啥1.3啊?

我去看了调用静态库的文章,看完学了-L和-l参数,然后应该是我不会用,我不知道怎么同时调用三个.a文件。。。。。求教怎么改

image

[root@localhost ngrok-c]# ./openwrtbuild.sh
mkdir: cannot create directory ‘build-mips’: File exists
build-mips/main.o: In function proxy()': main.cpp:(.text+0x4c0): warning: gethostbyname is obsolescent, use getnameinfo() instead. build-mips/ngrok.o: In function RemoteSslInit(Sockinfo*)':
ngrok.cpp:(.text+0x32c): undefined reference to ssl_write' build-mips/ngrok.o: In function LocalToRemote(Sockinfo*, ssl_info*)':
ngrok.cpp:(.text+0x40c): undefined reference to ssl_write' build-mips/ngrok.o: In function ConnectMain(int*, sockaddr_in, ssl_info**)':
ngrok.cpp:(.text+0x780): undefined reference to x509_crt_free' ngrok.cpp:(.text+0x788): undefined reference to ssl_free'
ngrok.cpp:(.text+0x790): undefined reference to ctr_drbg_free' ngrok.cpp:(.text+0x798): undefined reference to entropy_free'
build-mips/ngrok.o: In function CmdSock(int*, Sockinfo*, sockaddr_in)': ngrok.cpp:(.text+0xf20): undefined reference to ssl_read'
ngrok.cpp:(.text+0x1290): undefined reference to ssl_write' ngrok.cpp:(.text+0x1370): undefined reference to ssl_write'
build-mips/ngrok.o: In function RemoteToLocal(ssl_info*, Sockinfo*)': ngrok.cpp:(.text+0x1484): undefined reference to ssl_read'
build-mips/ngrok.o: In function ConnectLocal(ssl_info*, Sockinfo*)': ngrok.cpp:(.text+0x1888): undefined reference to ssl_read'
build-mips/ngrok.o: In function SendAuth(int, _ssl_context*)': ngrok.cpp:(.text._Z8SendAuthiP12_ssl_context[_Z8SendAuthiP12_ssl_context]+0xe0): undefined reference to ssl_write'
build-mips/main.o: In function checkping()': main.cpp:(.text+0x318): undefined reference to ssl_write'
build-mips/main.o: In function proxy()': main.cpp:(.text+0x3bc): undefined reference to CheckUdpAuth(int)'
main.cpp:(.text+0x3d0): undefined reference to CheckRegTunnel(int)' main.cpp:(.text+0x3e4): undefined reference to CheckUdpPing(int)'
main.cpp:(.text+0x854): undefined reference to UdpRecv(fd_set*)' build-mips/main.o: In function main':
main.cpp:(.text.startup+0x108): undefined reference to initUdp()' build-mips/sendmsg.o: In function SendReqTunnel(int, _ssl_context*, TunnelInfo*)':
sendmsg.cpp:(.text+0x1dc): undefined reference to ssl_write' build-mips/nonblocking.o: In function clearsock(Sockinfo*)':

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

这个命令应该没问题,.a文件有问题,可能你是编译的linux用的.a文件,而不是用SDK编译的.a文件,记得编译polarssl的时候得吧CC 等编译器换成sdk的gcc g++等。。这样编译出来的才是交叉的.a文件,你可以执行lipo -info xx.a查看下文件的指令集

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

如果有mips字样应该就对,

@onlyJinx
Copy link
Contributor Author

如果有mips字样应该就对,

应该是交叉编译的才对,这是buildlib.sh内容
#this build polarssl
export PATH=$PATH:'/root/op/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin'
export STAGING_DIR="/root/op/staging_dir"
make clean
make CC=mipsel-openwrt-linux-uclibc-gcc CXX=mipsel-openwrt-linux-uclibc-g++ AR=mipsel-openwrt-linux-uclibc-ar RANLIB=mipsel-openwrt-linux-uclibc-ranlib

我机器换Centos7所以找不到你说的那个指令
image

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

如果上步操作显示是mips的.a文件,nm --defined-only xx.a命令看下这3个文件是否有x509_crt_free,ctr_drbg_free这些符号表,如果没有,可能是版本问题,我之前用的polarssl版本是1.4X的好像,后面2.0我都没测试过了。。

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

linux 用readelf -h xx.a吧

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

没有linux实现不了的东西,哈哈,从内核到外层全是开源的。。唯一比较烂的就是gui

Repository owner deleted a comment from onlyJinx Aug 14, 2019
Repository owner deleted a comment from onlyJinx Aug 14, 2019
@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

image
这里参照sendmsg.cpp 把udp.cpp也加上。。依葫芦画瓢

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

整个文件,有sendmsg字样的,都得加上相同的叫udp这样的

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

你应该大概能看懂吧,少了个udp.cpp没有编译导致的

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

你已经踩完所有坑了,明天一定能编译好,实在不行就睡觉吧。。。

@onlyJinx
Copy link
Contributor Author

你已经踩完所有坑了,明天一定能编译好,实在不行就睡觉吧。。。

emmm,睡觉,晚安。。。
image

image

@onlyJinx
Copy link
Contributor Author

你已经踩完所有坑了,明天一定能编译好,实在不行就睡觉吧。。。

改漏了一点,但好像没有upd.o这个文件,先睡觉吧,幸苦了,哈哈
image

image

@dosgo
Copy link
Owner

dosgo commented Aug 14, 2019

你上面那行写成upd了。。应该是udp

@onlyJinx
Copy link
Contributor Author

你上面那行写成upd了。。应该是udp

哈哈
image
image

@onlyJinx
Copy link
Contributor Author

你上面那行写成upd了。。应该是udp

早上好,我按照Google的结果将base64.h #include到udp.cpp里后好像有新的进展了

image

image

@dosgo
Copy link
Owner

dosgo commented Aug 15, 2019

这哪是新进展,改回去,然后把base64.c参照udp.cpp加一份编译

@onlyJinx
Copy link
Contributor Author

这哪是新进展,改回去,然后把base64.c参照udp.cpp加一份编译

我把udp.cpp改回去了,然后将openwrtbuild.sh加base64进去,不过应该是我加错了(看截图),我ngrok-c里base64的文件只有base64.c还有base64.h

image
image

@dosgo
Copy link
Owner

dosgo commented Aug 15, 2019

最后一行又不贴出来

@onlyJinx
Copy link
Contributor Author

onlyJinx commented Aug 15, 2019

最后一行又不贴出来

抱歉,马上贴
image

#!/bin/sh
export PATH=$PATH:'/root/op/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin'
export STAGING_DIR="/root/op/staging_dir"
DIR=build-mips
mkdir $DIR
rm -rf $DIR/main.o
rm -rf $DIR/cJSON.o
rm -rf $DIR/sendmsg.o
rm -rf $DIR/udp.o
rm -rf $DIR/polarsslbio.o
rm -rf $DIR/nonblocking.o
rm -rf $DIR/ngrokc

CC=mipsel-openwrt-linux-uclibc-g++
YH="-Wall -fexceptions -DOPENSSL=0 -DISMBEDTLS=1 -O2"
$CC $YH -c $1 sendmsg.cpp -o $DIR/sendmsg.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC $YH -c $1 udp.cpp -o $DIR/udp.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC $YH -c $1 base64.c -o $DIR/base64.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC $YH -c $1 cJSON.c -o $DIR/cJSON.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC $YH -c $1 main.cpp -o $DIR/main.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC $YH -c $1 nonblocking.cpp -o $DIR/nonblocking.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC $YH -c $1 polarsslbio.cpp -o $DIR/polarsslbio.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC $YH -c $1 global.cpp -o $DIR/global.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC $YH -c $1 ngrok.cpp -o $DIR/ngrok.o -L/root/ngrok-c -lmbedtls -lmbedx509 -lmbedcrypto
$CC -s $DIR/main.o $DIR/cJSON.o $DIR/sendmsg.o $DIR/udp.o $DIR/nonblocking.o $DIR/global.o $DIR/ngrok.o $DIR/polarsslbio.o libmbedtls.a libmbedx509.a libmbedcrypto.a -o $DIR/ngrokc

@dosgo
Copy link
Owner

dosgo commented Aug 15, 2019

你都知道最后一行要加udp.o,为啥不加base64.o?

@onlyJinx
Copy link
Contributor Author

你都知道最后一行要加udp.o,为啥不加base64.o?

这是我加完之后的
image
image

@dosgo
Copy link
Owner

dosgo commented Aug 15, 2019

成功了啊,这只是警告,可以忽略,要是有error就是失败了

@onlyJinx
Copy link
Contributor Author

成功了啊,这只是警告,可以忽略,要是有error就是失败了

这样可以直接用了对吧,和原版(golang)的server端可以连接上吗?
image

@dosgo
Copy link
Owner

dosgo commented Aug 15, 2019

我建议你把这个脚本提交到到github吧,顺便修改一下编译教程。也算是

@onlyJinx
Copy link
Contributor Author

我建议你把这个脚本提交到到github吧,顺便修改一下编译教程。也算是

好,我测试一下客户端,稍后再提交上去,感谢帮忙~~

@onlyJinx
Copy link
Contributor Author

我建议你把这个脚本提交到到github吧,顺便修改一下编译教程。也算是

大哥,就差临门一脚了,找不到库文件,这个文件我可以在编译机器centos7找到,但是想复制到路由器时我的路由器好像没有lib64这个文件夹;所以我把它放到ngrokc同目录下,但报错了,请再指点一下。。
image

image

@dosgo
Copy link
Owner

dosgo commented Aug 15, 2019

openwrt 有个叫libstdcpp.ipk的包安装就好了。。

@dosgo
Copy link
Owner

dosgo commented Aug 15, 2019

这个教程说过了吧

@onlyJinx
Copy link
Contributor Author

openwrt 有个叫libstdcpp.ipk的包安装就好了。。

对不起,我眼瞎了,只关注着第二步的教程。哈哈

@dosgo
Copy link
Owner

dosgo commented Aug 19, 2019

image如果你编译polarssl版本是不用安装这个的

@onlyJinx
Copy link
Contributor Author

image如果你编译polarssl版本是不用安装这个的

我到最后才发现我的路由刷的说老毛子固件,刚刷了openwrt来测试ngrokc,哈哈

@onlyJinx
Copy link
Contributor Author

image如果你编译polarssl版本是不用安装这个的

我编译的是polarssl的,但运行时的确报错了,编译过程缺了什么嘛
image

@onlyJinx
Copy link
Contributor Author

onlyJinx commented Aug 20, 2019

image如果你编译polarssl版本是不用安装这个的

大哥,我按照这个帖子5#操作后可以使用了,真鸡儿开心,哈哈
https://forum.archive.openwrt.org/viewtopic.php?id=5446

image

@dosgo
Copy link
Owner

dosgo commented Aug 21, 2019

懒得理你,你看看我在前面是不是跟你说过,你自己搞混淆了,记成libopenssl了。。

@onlyJinx
Copy link
Contributor Author

懒得理你,你看看我在前面是不是跟你说过,你自己搞混淆了,记成libopenssl了。。

哈哈,毕竟我都没玩过Linux,一路Google过来的,谢啦!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants