Comments (23)
你找找你的sdk的g++编译器叫啥名字。。然后把mips-openwrt-linux-g++改成那名字。
from ngrok-c.
@dosgo g++编译器名字在那里可以找到??
from ngrok-c.
这个目录找啊/home/lo/sdk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin
from ngrok-c.
@dosgo mipsel-openwrt-linux-uclibc-g++
from ngrok-c.
那你修改openwrtbuildv2.sh文件,把mips-openwrt-linux-g++改成mipsel-openwrt-linux-uclibc-g++
from ngrok-c.
生成的ngrokc只有50k左右,我见别人生成的有400多k,作者正常吗??
lo@lo-virtual-machine:/ngrok-c-master$ sudo ./openwrtbuildv2.sh/ngrok-c-master$
[sudo] password for lo:
mkdir: 无法创建目录"build-mips": 文件已存在
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from sendmsg.cpp:11:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from main.cpp:63:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from nonblocking.cpp:1:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from ngrok.cpp:13:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
build-mips/main.o: In function `proxy()':
main.cpp:(.text+0x590): warning: gethostbyname is obsolescent, use getnameinfo() instead.
lo@lo-virtual-machine:
from ngrok-c.
正常,openssl动态链接的就是这个大小。
from ngrok-c.
400k的,那是polarssl静态链接的。
from ngrok-c.
作者!谢谢你!
from ngrok-c.
你好! dosgo。
下载15.05 ar71xx的SDK,按照教程所设置,运行openwrtbuildv2.sh,也出现上面!@oe77列出的如下信息。我以前编译1.25,1.30都不会有如此信息,就是简单一条信息而已。就可以使用编译好的ngrockc了。
请问这些反馈信息正常吗?
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from sendmsg.cpp:11:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from main.cpp:63:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from nonblocking.cpp:1:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from ngrok.cpp:13:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
build-mips/main.o: In function `proxy()':
main.cpp:(.text+0x590): warning: gethostbyname is obsolescent, use getnameinfo() instead.
from ngrok-c.
一切正常。有ngrokc生成都正常,然后。。你跑下能跑,是新版都正常。
from ngrok-c.
dosgo,确实如你所言。编译过程出现上面我提到的信息。
但是build-mips目录,有编译好的ngrokc。
(先关闭路由中 ngrokc服务)
拉到openwrt的 usr/bin
重启ngrokc
正常使用!!,THX
from ngrok-c.
这只是警告而已。。正常。说一个变量未定义,还有gethostbyname 过时了。。
from ngrok-c.
感觉最后一步出错最后一步
mipsel-openwrt-linux-uclibc-g++: error: build-mips/ngrok.o: No such file or directory
没有ngrokc生成
from ngrok-c.
版本呢?1.34编译不了
from ngrok-c.
用1.35吧
from ngrok-c.
刚用最新版,还是一样的错误啊
linux@ubuntu:/ngrok-c-master$ sudo ./openwrtbuildv2.sh/ngrok-c-master$
[sudo] password for linux:
mkdir: cannot create directory ‘build-mips’: File exists
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from sendmsg.cpp:11:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION sess = NULL;
^
main.cpp:337:20: warning: extra tokens at end of #endif directive [enabled by default]
#endif /
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from main.cpp:63:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from nonblocking.cpp:1:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
ngrok.cpp: In function 'int UdpCmd(int)':
ngrok.cpp:45:73: error: invalid conversion from 'int' to 'socklen_t* {aka unsigned int_}' [-fpermissive]
int udpbuflen=recvfrom(udpsocket,buf,1024,MSG_PEEK ,&udpaddr,&udplen);
^
In file included from /home/linux/1/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/netinet/in.h:25:0,
from /home/linux/1/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/arpa/inet.h:23,
from ngrok.cpp:8:
/home/linux/1/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/sys/socket.h:166:16: error: initializing argument 6 of 'ssize_t recvfrom(int, void_, size_t, int, sockaddr_, socklen_t_)' [-fpermissive]
extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from ngrok.cpp:13:
sslbio.h: At global scope:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
mipsel-openwrt-linux-uclibc-g++: error: build-mips/ngrok.o: No such file or directory
linux@ubuntu:
from ngrok-c.
你这哪是最新版,1.35才是
from ngrok-c.
仔细看了下,main.cpp文件
using namespace std;
string VER = "1.35-(2016/5/13)";
应该是1.35
from ngrok-c.
1.35 sslbio.h:14:21: warning: 'sess'就没sess这个变量..你用git的?
from ngrok-c.
不是,打包下载Download ZIP
from ngrok-c.
我检查过了...确认,,1.35包没有问题。建议你删除以前旧的任何包,,,重新下载,,编译。。我觉得你可能是目录搞错了。。或者。。ngrok.cpp没有替换。
from ngrok-c.
刚重新下载了,不到10秒,生成一个文件。应该是没问题了
linux@ubuntu:/ngrok-c-1.35-2016-5-13-$ sudo ./openwrtbuildv2.sh/ngrok-c-1.35-2016-5-13-$
[sudo] password for linux:
mkdir: cannot create directory ‘build-mips’: File exists
linux@ubuntu:
from ngrok-c.
Related Issues (20)
- windows 远程连接无法转发 HOT 7
- 获取DNS失败gethostbyname()
- OPENSSL在MT7620平台编译出现问题 HOT 1
- Compilation error: mbedtls/ssl.h not found HOT 2
- bcm53xx_gcc-5.4.0_musl 找不到GCC 问题 HOT 7
- openwrt 18.06 编译报错ngrok.cpp:279:23: error: iso c++ forbids HOT 1
- openwrt 18.06 luci 错误 HOT 11
- 碰到内存泄露问题,能加您微信咨询一下 18361242609 HOT 1
- 貌似不支持openssl 1.1版本,能否加入 HOT 3
- 斐讯K3用makefile编译1.4.8版本报错,请问如何解决?编译1.4.5以下版本没问题,openssl为1.0.2p! HOT 2
- 斐讯K3用makefile编译1.4.8版本在更新脚本后无论是openssl1.0.2p还是1.1.1c均报错,请问如何解决?编译1.4.5以下版本没问题! HOT 9
- 斐讯K3用makefile编译更新后的最新源码报错! HOT 3
- 编译时报错 HOT 72
- seems not support HTTP basic Authentication? HOT 2
- fatal error: mbedtls/ssl.h: No such file or directory HOT 4
- ngrok怎么编译的? HOT 2
- openwrt环境报错 HOT 2
- 这个客户端是不支持https代理了吗? HOT 10
- Running issue HOT 4
- ngrok-c可以加载配置文件吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngrok-c.