Comments (11)
已修正代码 可以重新尝试编译
from stairspeedtest-reborn.
完美解决方案termux/termux-app#1138 (comment)
from stairspeedtest-reborn.
在 Termux 上使用 termux-chroot
直接运行预编译版本实测无问题
from stairspeedtest-reborn.
在 Termux 上使用
termux-chroot
直接运行预编译版本实测无问题
再次测试,仍然无法正常获取节点信息。不知是不是我使用termux-chroot
的方式不对。
解压预编译版本,在目录里执行"termux-chroot ./stairspeedtest"后,输入订阅连接,仍然不能获取到内容。
已修正代码 可以重新尝试编译
- 运行scripts/config.termux.sh文件,正常结束。
- 可能CMakeLists.txt文件的第104行应为"TARGET_LINK_LIBRARIES(stairspeedtest ${PCRE2_LIBRARY})",原来文件cmake指令不过,修改后可以正常生产makefile文件。
- cmake指令执行完之后,进行编译"multithread_test.cpp"文件过程中,报错。
CMake Log:
$ cmake ../stairspeedtest-reborn
-- The CXX compiler identification is Clang 9.0.1
-- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/c++
-- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_TO_STRING
-- Performing Test HAVE_TO_STRING - Failed
-- Looking for MSG_NOSIGNAL
-- Looking for MSG_NOSIGNAL - found
-- Found PkgConfig: /data/data/com.termux/files/usr/bin/pkg-config (found version "0.29.2")
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Checking for module 'libevent'
-- Found libevent, version 2.1.11
-- Found CURL: /data/data/com.termux/files/usr/lib/libcurl.so (found suitable version "7.68.0", minimum required is "7.54.0")
-- Found OpenSSL: /data/data/com.termux/files/usr/lib/libcrypto.so (found suitable version "1.1.1d", minimum required is "1.1.0")
-- Found rapidjson header files in /data/data/com.termux/files/usr/include
-- Found ZLIB: /data/data/com.termux/files/usr/lib/libz.so (found version "1.2.11")
-- Found PNG: /data/data/com.termux/files/usr/lib/libpng.so (found suitable version "1.6.37", minimum required is "1.6")
-- Found Freetype: /data/data/com.termux/files/usr/lib/libfreetype.so (found version "2.10.1")
-- Found PNG: /data/data/com.termux/files/usr/lib/libpng.so (found version "1.6.37")
-- Checking for module 'yaml-cpp'
-- Found yaml-cpp, version 0.6.3
-- Found PCRE2: /data/data/com.termux/files/usr/lib/libpcre2-8.so
-- Configuring done
-- Generating done
-- Build files have been written to: /data/data/com.termux/files/home/stairspeedtest-reborn-build
注意到"-- Performing Test HAVE_TO_STRING - Failed",不知有无影响。
Build Log:
$ make -j1
make[1]: Entering directory '/data/data/com.termux/files/home/stairspeedtest-reborn-build'
make[2]: Entering directory '/data/data/com.termux/files/home/stairspeedtest-reborn-build'
Scanning dependencies of target stairspeedtest
make[2]: Leaving directory '/data/data/com.termux/files/home/stairspeedtest-reborn-build'
make[2]: Entering directory '/data/data/com.termux/files/home/stairspeedtest-reborn-build'
[ 5%] Building CXX object CMakeFiles/stairspeedtest.dir/src/geoip.cpp.o
[ 11%] Building CXX object CMakeFiles/stairspeedtest.dir/src/logger.cpp.o
[ 17%] Building CXX object CMakeFiles/stairspeedtest.dir/src/main.cpp.o
[ 23%] Building CXX object CMakeFiles/stairspeedtest.dir/src/misc.cpp.o
[ 29%] Building CXX object CMakeFiles/stairspeedtest.dir/src/multithread_test.cpp.o
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:19:22: error: expected namespace name
using namespace std::__cxx11;
~~~~~^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:405:60: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEDL, "Starting up thread #" + to_string(i + 1) + ".");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:433:57: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEDL, "Running threads: " + to_string(running) + ", total received bytes: " + to_string(transferred_bytes)
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:433:107: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEDL, "Running threads: " + to_string(running) + ", total received bytes: " + to_string(transferred_bytes)
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:434:51: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
+ ", current received bytes: " + to_string(this_bytes) + ".");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:457:47: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEDL, "Downloaded " + to_string(received_bytes) + " bytes in " + to_string(deltatime) + " milliseconds.");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:457:90: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEDL, "Downloaded " + to_string(received_bytes) + " bytes in " + to_string(deltatime) + " milliseconds.");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:505:67: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEUL, "Starting up worker thread #" + to_string(i + 1) + ".");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:523:64: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEUL, "Running worker threads: " + to_string(running) + ", total sent bytes: " + to_string(transferred_bytes)
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:523:110: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEUL, "Running worker threads: " + to_string(running) + ", total sent bytes: " + to_string(transferred_bytes)
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:524:47: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
+ ", current sent bytes: " + to_string(this_bytes) + ".");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:542:45: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEUL, "Uploaded " + to_string(received_bytes) + " bytes in " + to_string(deltatime) + " milliseconds.");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:542:88: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_FILEUL, "Uploaded " + to_string(received_bytes) + " bytes in " + to_string(deltatime) + " milliseconds.");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:608:110: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_GPING, "Website ping started. Target: '" + target + "' . Proxy: '" + localaddr + ":" + to_string(localport) + "' .");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:630:93: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_GPING, "ERROR: Connect to SOCKS5 server " + localaddr + ":" + to_string(localport) + " failed.");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:645:74: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_GPING, "ERROR: Connect to " + host + ":" + to_string(port) + " through SOCKS5 server failed.");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:670:82: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_GPING, "ERROR: Connect to " + host + ":" + to_string(port) + " through SOCKS5 server failed.");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:683:96: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_GPING, "Accessing '" + target + "' - Fail - time=" + to_string(deltatime) + "ms");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
/data/data/com.termux/files/home/stairspeedtest-reborn/src/multithread_test.cpp:690:99: error: use of undeclared identifier 'to_string'; did you mean 'std::to_string'?
writeLog(LOG_TYPE_GPING, "Accessing '" + target + "' - Success - time=" + to_string(deltatime) + "ms");
^~~~~~~~~
std::to_string
/data/data/com.termux/files/usr/bin/../include/c++/v1/string:4197:25: note: 'std::to_string' declared here
_LIBCPP_FUNC_VIS string to_string(int __val);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/stairspeedtest.dir/build.make:115: CMakeFiles/stairspeedtest.dir/src/multithread_test.cpp.o] Error 1
make[2]: Leaving directory '/data/data/com.termux/files/home/stairspeedtest-reborn-build'
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/stairspeedtest.dir/all] Error 2
make[1]: Leaving directory '/data/data/com.termux/files/home/stairspeedtest-reborn-build'
make: *** [Makefile:130: all] Error 2
from stairspeedtest-reborn.
补充测试:
我尝试用termux-chroot
在手机上运行subconverter(执行"termux-chroot ./subconverter"),转换时仍然提示订阅链接没有内容。
然后我手动编译subconverter,能够正常运行。
故推测我这个手机用termux可能只能编译后使用stairspeedtest-reborn
from stairspeedtest-reborn.
已修正代码 可以重新尝试编译
已经成功编译,谢谢!
注:需要安装libandroid-spawn-static包。
from stairspeedtest-reborn.
已修正代码 可以重新尝试编译
已经成功编译,谢谢!
注:需要安装libandroid-spawn-static包。
包不存在?
$ pkg install libandroid-spawn-static
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libandroid-spawn-static
libandroid-spawn
也不行
$ pkg install libandroid-spawn
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libandroid-spawn
from stairspeedtest-reborn.
您好,经过和作者确认,libandroid-spawn-static包不必安装。拉取最新代码后,注释"src/processes.cpp"文件第16行引用(#include <spawn.h>)即可。实现里没用到这个包,好像是个一直没改的地方。
如您希望安装一下,我是有这个包的。您用"pkg search spwan"搜索一下?
from stairspeedtest-reborn.
您好,经过和作者确认,libandroid-spawn-static包不必安装。拉取最新代码后,注释"src/processes.cpp"文件第16行引用(#include <spawn.h>)即可。实现里没用到这个包,好像是个一直没改的地方。
如您希望安装一下,我是有这个包的。您用"pkg search spwan"搜索一下?
$ pkg search spwan
Sorting... Done
Full Text Search... Done
$ pkg search libandroid
Sorting... Done
Full Text Search... Done
libandroid-glob/stable,now 0.6-1 arm [installed,automatic]
Shared library for the glob(3) system function
libandroid-glob-static/stable 0.6-1 arm
Static libraries for libandroid-glob
libandroid-shmem/stable 0.2.1-1 arm
System V shared memory emulation on Android using ashmem
libandroid-shmem-static/stable 0.2.1-1 arm
Static libraries for libandroid-shmem
libandroid-support/stable,now 24-6 arm [installed]
Library extending the Android C library (Bionic) for additional multibyte, locale and math support
libandroid-support-static/stable 24-6 arm
Static libraries for libandroid-support
from stairspeedtest-reborn.
您好,经过和作者确认,libandroid-spawn-static包不必安装。拉取最新代码后,注释"src/processes.cpp"文件第16行引用(#include <spawn.h>)即可。实现里没用到这个包,好像是个一直没改的地方。
如您希望安装一下,我是有这个包的。您用"pkg search spwan"搜索一下?
我在termux-packages这个库里找到了libandroid-spawn
这个包,而我Termux没有这个库,而强加进去会导致诸多问题,可能是旧版的问题?而新版只支持7.0以上安卓了好像,那就是我的问题了
from stairspeedtest-reborn.
我觉得可能是版本低了。似乎新系统版本和老系统版本用的包源不一样。
from stairspeedtest-reborn.
Related Issues (20)
- Mac开启后127.0.0.1端口跳转到无关页面 HOT 1
- Actions里的windows版本stairspeedtest过期了 HOT 1
- linux端和windows端测速差异问题
- 希望更新版本 HOT 1
- 如何测试一些被限速节点 HOT 1
- Actions 构建下载 HOT 7
- action以无法编译windows版本
- MacOS遇到的问题总结+解决方法 HOT 3
- win端打开webgui.bat,能正常打开网页,但是cmd却自动闪退
- 请问socks5: connect not accepted是什么原因? HOT 1
- 无法解析新版Clash订阅配置文件中的Vmess协议的ws-opts项
- 有最新的构建吗 HOT 3
- 按俩回车就闪退... HOT 3
- 由隔壁subconverter转出的mixed类型订阅,报Segmentation fault(经测试该mixed订阅v2rayN上正常)
- 提交之后不开始 HOT 1
- howto tutorial HOT 1
- 运行webgui.bat后,网页可以正常进入http://127.0.0.1:65430/,然而选择gui.html后显示404,求教如何解决 HOT 2
- 没想到我尝试构建,修复错误,居然成功了,不知道能不能正常用就不知道了 HOT 10
- 无关网址跳转是有意还是无意? HOT 2
- 请问可以添加Hysteria2这个新的协议支持吗?
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 stairspeedtest-reborn.