evanzing
V2EX  ›  问与答

请教 ngrok 怎么在 openwrt 的 sdk 环境编译

  •  
  •   evanzing · Oct 15, 2015 · 2348 views
    This topic created in 3877 days ago, the information mentioned may be changed or developed.
    我把 ngrokc 放 package 目录,终端执行 make -f Makefile.openssl
    结果如下:
    make -f Makefile.openssl
    g++ -fexceptions -DOPENSSL=1 -c -o sendmsg.o sendmsg.cpp
    sendmsg.cpp: In function ‘ int loadargs(int, char**, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TunnelInfo*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TunnelInfo*> > >*, char*, int*, char*)’:
    sendmsg.cpp:368: 警告:不建议使用从字符串常量到‘ char*’的转换
    sendmsg.cpp:369: 警告:不建议使用从字符串常量到‘ char*’的转换
    sendmsg.cpp:373: 警告:不建议使用从字符串常量到‘ char*’的转换
    sendmsg.cpp:399: 警告:不建议使用从字符串常量到‘ char*’的转换
    sendmsg.cpp:400: 警告:不建议使用从字符串常量到‘ char*’的转换
    sendmsg.cpp:402: 警告:不建议使用从字符串常量到‘ char*’的转换
    sendmsg.cpp:407: 警告:不建议使用从字符串常量到‘ char*’的转换
    sendmsg.cpp:411: 警告:不建议使用从字符串常量到‘ char*’的转换
    sendmsg.cpp:412: 警告:不建议使用从字符串常量到‘ char*’的转换
    cc -fexceptions -DOPENSSL=1 -c -o cJSON.o cJSON.c
    g++ -fexceptions -DOPENSSL=1 -c -o nonblocking.o nonblocking.cpp
    g++ -fexceptions -DOPENSSL=1 -c -o sslbio.o sslbio.cpp
    g++ -fexceptions -DOPENSSL=1 -c -o main.o main.cpp
    g++ -s sendmsg.o cJSON.o nonblocking.o sslbio.o main.o -o ngrokc -lpthread -lssl -lcrypto
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5296 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 07:43 · PVG 15:43 · LAX 00:43 · JFK 03:43
    ♥ Do have faith in what you're doing.