mars 为什么master分支上的anroid,C++端的代码和java端的代码,对不上?

gcxthw6b  于 2022-12-31  发布在  Java
关注(0)|答案(8)|浏览(212)

RT,签名都不同,要自己打包的,请注意一下哦.

zy1mlcev

zy1mlcev1#

我觉得可能不能用master分支,可能是不同平台用不同的分支,主干有问题也就没有人处理。看我这个问题 #802 希望官方能告知我们一下选哪个分支,或者那个平台用那个分支

dkqlctbz

dkqlctbz2#

用tag v1.3.0 其它分支都不是稳定的,本地编译失败.

8hhllhi2

8hhllhi23#

用tag v1.3.0 其它分支都不是稳定的,本地编译失败.

我使用1.2.4版本的也是本地编译错误,请问你是怎么解决的?

nzkunb0c

nzkunb0c4#

用tag v1.3.0 其它分支都不是稳定的,本地编译失败.

我使用1.2.4版本的也是本地编译错误,请问你是怎么解决的?

我是在 v1.3.0 tag上编译成功的,编译不了看是什么问题,我开始在win10中构建,可能是我的gcc没有装好,报错无法成功,后来在子系统的ubuntu18.04中才构建成功,如果你在win10下不行的话,也可以试试.

u91tlkcl

u91tlkcl5#

用tag v1.3.0 其它分支都不是稳定的,本地编译失败.

我使用1.2.4版本的也是本地编译错误,请问你是怎么解决的?

我是在 v1.3.0 tag上编译成功的,编译不了看是什么问题,我开始在win10中构建,可能是我的gcc没有装好,报错无法成功,后来在子系统的ubuntu18.04中才构建成功,如果你在win10下不行的话,也可以试试.

D:\AndroidApps\mars\mars-master\mars>python build_android.py
Enter menu:

  1. Clean && build mars.
  2. Build incrementally mars.
  3. Clean && build xlog.
  4. Exit
    1
    ndk path:D:\Sdk\ndk-bundle
    ==BUILD_DESCRIPTION==Revision:                   .description table { margin: 10px 0 15px 0; border-collapse: collapse; font-family: Helvetica, "Hiragino Sans GB", Arial, sans-serif; font-size: 11px; line-height: 16px; color: #737373; background-color: white; margin: 10px 12px 10px 12px;}.description td,th { border: 1px solid #ddd; padding: 3px 10px; }.description th { padding: 5px 10px; }.description a { color: #0069d6; }.description a:hover { color: #0050a3; text-decoration: none; }.description h5 { font-size: 14px; }
PublicComponent
KEYVALUE
Branch
BuildTag
BuildTime2020-08-11 16:21:09
Revision

build cmd:cmake "D:\AndroidApps\mars\mars-master\mars" -G "Unix Makefiles" -DANDROID_ABI="armeabi-v7a" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=D:\Sdk\ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN=clang -DANDROID_NDK=D:\Sdk\ndk-bundle -DANDROID_PLATFORM=android-16 -DANDROID_STL="c++_shared" && cmake --build . --config Release -- -j8
-- CMAKE_INSTALL_PREFIX=D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
-- CMAKE_INSTALL_PREFIX=D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ==============config comm====================
-- CMAKE_INSTALL_PREFIX=D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
-- ==============config mars-boost====================
-- The ASM compiler identification is Clang
-- Found assembler: D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
-- CMAKE_INSTALL_PREFIX=D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
-- ==============config app====================
-- CMAKE_INSTALL_PREFIX=D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
-- ==============config baseevent====================
-- CMAKE_INSTALL_PREFIX=D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
-- ==============config xlog====================
-- CMAKE_INSTALL_PREFIX=D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
-- ==============config sdt====================
-- CMAKE_INSTALL_PREFIX=D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
-- ==============config stn====================
CMake Warning (dev) at E:/1/localBuild/cmake/share/cmake-3.18/Modules/GNUInstallDirs.cmake:225 (message):
Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
target architecture is known. Please enable at least one language before
including GNUInstallDirs.
Call Stack (most recent call first):
CMakeLists.txt:21 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- ==============config mars====================
-- Configuring done
-- Generating done
-- Build files have been written to: D:/AndroidApps/mars/mars-master/mars/cmake_build/Android
Scanning dependencies of target libzstd_static
Scanning dependencies of target mars-boost
Scanning dependencies of target comm
Scanning dependencies of target xlog
Scanning dependencies of target baseevent
Scanning dependencies of target app
Scanning dependencies of target stn
Scanning dependencies of target sdt
[ 1%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/common/debug.c.o
[ 1%] Building CXX object xlog/CMakeFiles/xlog.dir/src/appender.cc.o
[ 1%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/common/entropy_common.c.o
[ 1%] Building CXX object app/CMakeFiles/app.dir/app_logic.cc.o
[ 1%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/atomic/src/lockpool.cpp.o
[ 1%] Building CXX object baseevent/CMakeFiles/baseevent.dir/src/active_logic.cc.o
[ 2%] Building CXX object sdt/CMakeFiles/sdt.dir/sdt_logic.cc.o
[ 3%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/common/error_private.c.o
[ 4%] Building C object comm/CMakeFiles/comm.dir/adler32.c.o
[ 5%] Building CXX object stn/CMakeFiles/stn.dir/src/anti_avalanche.cc.o
[ 5%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/common/fse_decompress.c.o
[ 5%] Building CXX object comm/CMakeFiles/comm.dir/alarm.cc.o
[ 6%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/date_generators.cpp.o
[ 7%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/common/pool.c.o
[ 7%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/common/threading.c.o
In file included from D:/AndroidApps/mars/mars-master/mars/log/src/appender.cc:52:
In file included from D:/AndroidApps/mars/mars-master/mars/log/..\boost/iostreams/device/mapped_file.hpp:20:
In file included from D:/AndroidApps/mars/mars-master/mars/log/..\boost/iostreams/close.hpp:19:
In file included from D:/AndroidApps/mars/mars-master/mars/log/..\boost/iostreams/detail/adapter/non_blocking_adapter.hpp:13:
D:/AndroidApps/mars/mars-master/mars/log/..\boost/iostreams/seek.hpp:85:20: error: result of comparison
'mars_boost::iostreams::stream_offset' (aka 'long long') < -9223372036854775808 is always false
[-Werror,-Wtautological-type-limit-compare]
( off < integer_traitsstd::streamoff::const_min ||
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/AndroidApps/mars/mars-master/mars/log/..\boost/iostreams/seek.hpp:86:20: error: result of comparison
'mars_boost::iostreams::stream_offset' (aka 'long long') > 9223372036854775807 is always false
[-Werror,-Wtautological-type-limit-compare]
off > integer_traitsstd::streamoff::const_max ) )
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/AndroidApps/mars/mars-master/mars/log/..\boost/iostreams/seek.hpp:112:20: error: result of comparison
'mars_boost::iostreams::stream_offset' (aka 'long long') < -9223372036854775808 is always false
[-Werror,-Wtautological-type-limit-compare]
( off < integer_traitsstd::streamoff::const_min ||
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/AndroidApps/mars/mars-master/mars/log/..\boost/iostreams/seek.hpp:113:20: error: result of comparison
'mars_boost::iostreams::stream_offset' (aka 'long long') > 9223372036854775807 is always false
[-Werror,-Wtautological-type-limit-compare]
off > integer_traitsstd::streamoff::const_max ) )
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 8%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/common/xxhash.c.o
[ 8%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/gregorian_types.cpp.o
4 errors generated.
make[2]: *** [xlog/CMakeFiles/xlog.dir/build.make:82: xlog/CMakeFiles/xlog.dir/src/appender.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:440: xlog/CMakeFiles/xlog.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 9%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/greg_month.cpp.o
[ 9%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/greg_weekday.cpp.o
[ 10%] Building CXX object app/CMakeFiles/app.dir/src/traffic_statistics.cc.o
[ 10%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/common/zstd_common.c.o
[ 11%] Building CXX object comm/CMakeFiles/comm.dir/anr.cc.o
[ 12%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/compress/fse_compress.c.o
[ 12%] Building CXX object stn/CMakeFiles/stn.dir/src/dynamic_timeout.cc.o
[ 13%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/posix_time/posix_time_types.cpp.o
[ 13%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/compress/hist.c.o
[ 13%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/exception/src/clone_current_exception_non_intrusive.cpp.o
[ 14%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/compress/huf_compress.c.o
[ 15%] Building CXX object stn/CMakeFiles/stn.dir/src/flow_limit.cc.o
[ 16%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/codecvt_error_category.cpp.o
[ 16%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/compress/zstd_compress.c.o
[ 16%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/operations.cpp.o
[ 16%] Building CXX object sdt/CMakeFiles/sdt.dir/src/sdt_core.cc.o
[ 16%] Building CXX object app/CMakeFiles/app.dir/jni/com_tencent_mars_app_AppLogic_C2Java.cc.o
[ 16%] Building CXX object stn/CMakeFiles/stn.dir/src/frequency_limit.cc.o
[ 17%] Building CXX object baseevent/CMakeFiles/baseevent.dir/src/baseprj.cc.o
[ 18%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/path.cpp.o
[ 19%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/compress/zstd_compress_literals.c.o
D:/AndroidApps/mars/mars-master/mars/boost/libs/filesystem/src/operations.cpp:2081:18: warning: 'readdir_r' is
deprecated: readdir_r is deprecated; use readdir instead [-Wdeprecated-declarations]
{ return ::readdir_r(dirp, entry, result); }
^
D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\dirent.h:87:92: note: 'readdir_r' has been
explicitly marked deprecated here
int readdir_r(DIR* *dir, struct dirententry, struct direntbuffer) attribute((deprecated("readd...
^
[ 19%] Building C object zstd/CMakeFiles/libzstd_static.dir/
/
//lib/compress/zstd_compress_sequences.c.o
[ 20%] Building CXX object stn/CMakeFiles/stn.dir/src/longlink.cc.o
[ 21%] Linking CXX static library libapp.a
[ 22%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/compress/zstd_double_fast.c.o
[ 22%] Building CXX object comm/CMakeFiles/comm.dir/autobuffer.cc.o
1 warning generated.
[ 22%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/path_traits.cpp.o
[ 23%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/portability.cpp.o
[ 23%] Built target app
[ 24%] Building CXX object comm/CMakeFiles/comm.dir/basepacker.cc.o
[ 24%] Building CXX object stn/CMakeFiles/stn.dir/src/longlink_connect_monitor.cc.o
[ 24%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/compress/zstd_fast.c.o
[ 24%] Building CXX object comm/CMakeFiles/comm.dir/boost_exception.cc.o
[ 24%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/unique_path.cpp.o
[ 25%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/utf8_codecvt_facet.cpp.o
[ 26%] Building CXX object sdt/CMakeFiles/sdt.dir/src/activecheck/basechecker.cc.o
[ 27%] Building CXX object comm/CMakeFiles/comm.dir/comm_frequency_limit.cc.o
[ 28%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/compress/zstd_lazy.c.o
[ 28%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/windows_file_codecvt.cpp.o
[ 28%] Building CXX object sdt/CMakeFiles/sdt.dir/src/activecheck/dnschecker.cc.o
[ 29%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/iostreams/src/file_descriptor.cpp.o
D:/AndroidApps/mars/mars-master/mars/stn/src/longlink_connect_monitor.cc:268:14: warning: unused variable 'ret'
[-Wunused-variable]
bool ret = longlink_.MakeSureConnected(&newone);
^
[ 29%] Building CXX object comm/CMakeFiles/comm.dir/http.cc.o
[ 29%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/iostreams/src/mapped_file.cpp.o
D:/AndroidApps/mars/mars-master/mars/stn/src/longlink_connect_monitor.cc:47:27: warning: unused variable
'kTimeCheckPeriod' [-Wunused-const-variable]
static const unsigned int kTimeCheckPeriod = 10 * 1000; // 10s
^
D:/AndroidApps/mars/mars-master/mars/stn/src/longlink_connect_monitor.cc:48:27: warning: unused variable
'kStartCheckPeriod' [-Wunused-const-variable]
static const unsigned int kStartCheckPeriod = 3 * 1000; // 3s
^
[ 29%] Building CXX object baseevent/CMakeFiles/baseevent.dir/src/baseprjevent.cc.o
[ 30%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/smart_ptr/src/sp_collector.cpp.o
[ 30%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/smart_ptr/src/sp_debug_hooks.cpp.o
[ 30%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/compress/zstd_ldm.c.o
[ 31%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/system/src/error_code.cpp.o
[ 31%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/thread/src/future.cpp.o
[ 32%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/compress/zstd_opt.c.o
[ 33%] Building CXX object comm/CMakeFiles/comm.dir/memdbg.cc.o
[ 34%] Building CXX object sdt/CMakeFiles/sdt.dir/src/activecheck/httpchecker.cc.o
[ 34%] Building CXX object comm/CMakeFiles/comm.dir/mmap_util.cc.o
[ 35%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/context/src/execution_context.cpp.o
[ 35%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/context/src/posix/stack_traits.cpp.o
3 warnings generated.
[ 36%] Building CXX object stn/CMakeFiles/stn.dir/src/longlink_identify_checker.cc.o
[ 37%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/detail/coroutine_context.cpp.o
In file included from D:/AndroidApps/mars/mars-master/mars/comm/mmap_util.cc:20:
In file included from D:/AndroidApps/mars/mars-master/mars/comm/./mmap_util.h:23:
In file included from D:/AndroidApps/mars/mars-master/mars/comm/..\boost/iostreams/device/mapped_file.hpp:20:
In file included from D:/AndroidApps/mars/mars-master/mars/comm/..\boost/iostreams/close.hpp:19:
In file included from D:/AndroidApps/mars/mars-master/mars/comm/..\boost/iostreams/detail/adapter/non_blocking_adapter.hpp:13:
D:/AndroidApps/mars/mars-master/mars/comm/..\boost/iostreams/seek.hpp:85:20: error: result of comparison
'mars_boost::iostreams::stream_offset' (aka 'long long') < -9223372036854775808 is always false
[-Werror,-Wtautological-type-limit-compare]
( off < integer_traitsstd::streamoff::const_min ||
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/AndroidApps/mars/mars-master/mars/comm/..\boost/iostreams/seek.hpp:86:20: error: result of comparison
'mars_boost::iostreams::stream_offset' (aka 'long long') > 9223372036854775807 is always false
[-Werror,-Wtautological-type-limit-compare]
off > integer_traitsstd::streamoff::const_max ) )
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/AndroidApps/mars/mars-master/mars/comm/..\boost/iostreams/seek.hpp:112:20: error: result of comparison
'mars_boost::iostreams::stream_offset' (aka 'long long') < -9223372036854775808 is always false
[-Werror,-Wtautological-type-limit-compare]
( off < integer_traitsstd::streamoff::const_min ||
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/AndroidApps/mars/mars-master/mars/comm/..\boost/iostreams/seek.hpp:113:20: error: result of comparison
'mars_boost::iostreams::stream_offset' (aka 'long long') > 9223372036854775807 is always false
[-Werror,-Wtautological-type-limit-compare]
off > integer_traitsstd::streamoff::const_max ) )
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 37%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/exceptions.cpp.o
[ 37%] Building CXX object stn/CMakeFiles/stn.dir/src/longlink_metadata.cc.o
[ 38%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/posix/stack_traits.cpp.o
4 errors generated.
make[2]: *** [comm/CMakeFiles/comm.dir/build.make:199: comm/CMakeFiles/comm.dir/mmap_util.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:332: comm/CMakeFiles/comm.dir/all] Error 2
[ 39%] Building CXX object stn/CMakeFiles/stn.dir/src/longlink_speed_test.cc.o
[ 39%] Building CXX object stn/CMakeFiles/stn.dir/src/longlink_task_manager.cc.o
[ 39%] Building ASM object boost/CMakeFiles/mars-boost.dir/libs/context/src/asm/jump_arm_aapcs_elf_gas.S.o
[ 40%] Building CXX object baseevent/CMakeFiles/baseevent.dir/jni/com_tencent_mars_BaseEvent.cc.o
[ 41%] Building ASM object boost/CMakeFiles/mars-boost.dir/libs/context/src/asm/make_arm_aapcs_elf_gas.S.o
[ 41%] Building CXX object sdt/CMakeFiles/sdt.dir/src/activecheck/pingchecker.cc.o
[ 42%] Building CXX object sdt/CMakeFiles/sdt.dir/src/activecheck/tcpchecker.cc.o
[ 42%] Linking CXX static library libmars-boost.a
[ 42%] Linking CXX static library libbaseevent.a
[ 42%] Built target mars-boost
[ 42%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/compress/zstdmt_compress.c.o
[ 42%] Built target baseevent
[ 43%] Building CXX object stn/CMakeFiles/stn.dir/src/net_channel_factory.cc.o
[ 44%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/decompress/huf_decompress.c.o
[ 44%] Building CXX object stn/CMakeFiles/stn.dir/src/net_check_logic.cc.o
[ 44%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/decompress/zstd_ddict.c.o
[ 45%] Building CXX object stn/CMakeFiles/stn.dir/src/net_core.cc.o
[ 46%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/decompress/zstd_decompress.c.o
[ 46%] Building CXX object sdt/CMakeFiles/sdt.dir/src/checkimpl/base_netinfo_query.cc.o
[ 46%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/decompress/zstd_decompress_block.c.o
[ 47%] Building CXX object sdt/CMakeFiles/sdt.dir/src/checkimpl/dnsquery.cc.o
[ 48%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/dictBuilder/cover.c.o
[ 49%] Building CXX object sdt/CMakeFiles/sdt.dir/src/checkimpl/http_detector.cc.o
[ 49%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/dictBuilder/divsufsort.c.o
[ 50%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/dictBuilder/fastcover.c.o
[ 50%] Building CXX object stn/CMakeFiles/stn.dir/src/net_source.cc.o
[ 50%] Building CXX object sdt/CMakeFiles/sdt.dir/src/checkimpl/httpquery.cc.o
[ 50%] Building C object zstd/CMakeFiles/libzstd_static.dir///__/lib/dictBuilder/zdict.c.o
D:/AndroidApps/mars/mars-master/mars/sdt/src/checkimpl/http_detector.cc:179:22: error:
'random_shuffle<std::__ndk1::__wrap_iter<std::__ndk1::basic_string<char, std::__ndk1::char_traits,
std::__ndk1::allocator > *> >' is deprecated [-Werror,-Wdeprecated-declarations]
std::random_shuffle(vec_ip.begin(), vec_ip.end());
^
D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1\algorithm:3067:1: note:
'random_shuffle<std::__ndk1::__wrap_iter<std::__ndk1::basic_string<char, std::__ndk1::char_traits,
std::__ndk1::allocator > *> >' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX14 void
^
D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1__config:947:39: note: expanded
from macro '_LIBCPP_DEPRECATED_IN_CXX14'

define _LIBCPP_DEPRECATED_IN_CXX14 _LIBCPP_DEPRECATED

^

D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1__config:930:48: note: expanded
from macro '_LIBCPP_DEPRECATED'

define _LIBCPP_DEPRECATED attribute ((deprecated))

^

[ 51%] Building CXX object stn/CMakeFiles/stn.dir/src/netsource_timercheck.cc.o
1 error generated.
make[2]: *** [sdt/CMakeFiles/sdt.dir/build.make:199: sdt/CMakeFiles/sdt.dir/src/checkimpl/http_detector.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 52%] Building C object zstd/CMakeFiles/libzstd_static.dir////lib/deprecated/zbuff_common.c.o
[ 53%] Building C object zstd/CMakeFiles/libzstd_static.dir/
///lib/deprecated/zbuff_compress.c.o
[ 53%] Building C object zstd/CMakeFiles/libzstd_static.dir///__/lib/deprecated/zbuff_decompress.c.o
make[1]: *** [CMakeFiles/Makefile2:467: sdt/CMakeFiles/sdt.dir/all] Error 2
[ 53%] Building CXX object stn/CMakeFiles/stn.dir/src/proxy_test.cc.o
[ 54%] Linking C static library libzstd.a
[ 55%] Building CXX object stn/CMakeFiles/stn.dir/src/shortlink.cc.o
[ 55%] Building CXX object stn/CMakeFiles/stn.dir/src/shortlink_task_manager.cc.o
[ 55%] Built target libzstd_static
[ 56%] Building CXX object stn/CMakeFiles/stn.dir/src/signalling_keeper.cc.o
D:/AndroidApps/mars/mars-master/mars/stn/src/net_source.cc:474:8: error:
'random_shuffle<std::__ndk1::__wrap_iter<mars::stn::IPPortItem *> >' is deprecated
[-Werror,-Wdeprecated-declarations]
std::random_shuffle(_ip_items.begin() + len, _ip_items.end());
^
D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1\algorithm:3067:1: note:
'random_shuffle<std::__ndk1::__wrap_iter<mars::stn::IPPortItem *> >' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX14 void
^
D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1__config:947:39: note: expanded
from macro '_LIBCPP_DEPRECATED_IN_CXX14'

define _LIBCPP_DEPRECATED_IN_CXX14 _LIBCPP_DEPRECATED

^

D:/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1__config:930:48: note: expanded
from macro '_LIBCPP_DEPRECATED'

define _LIBCPP_DEPRECATED attribute ((deprecated))

^

1 error generated.
make[2]: *** [stn/CMakeFiles/stn.dir/build.make:251: stn/CMakeFiles/stn.dir/src/net_source.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:494: stn/CMakeFiles/stn.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
!!!!!!!!!!!!!!!!!!build fail!!!!!!!!!!!!!!!!!!!!

这是我的错误.搞了好久没弄明白

3df52oht

3df52oht6#

用tag v1.3.0 其它分支都不是稳定的,本地编译失败.

我使用1.2.4版本的也是本地编译错误,请问你是怎么解决的?

我是在 v1.3.0 tag上编译成功的,编译不了看是什么问题,我开始在win10中构建,可能是我的gcc没有装好,报错无法成功,后来在子系统的ubuntu18.04中才构建成功,如果你在win10下不行的话,也可以试试.

如果可以能把你编译成功的文件发我一份吗? 邮箱: 563346421@qq.com

pes8fvy9

pes8fvy97#

用tag v1.3.0 其它分支都不是稳定的,本地编译失败.

我使用1.2.4版本的也是本地编译错误,请问你是怎么解决的?

我是在 v1.3.0 tag上编译成功的,编译不了看是什么问题,我开始在win10中构建,可能是我的gcc没有装好,报错无法成功,后来在子系统的ubuntu18.04中才构建成功,如果你在win10下不行的话,也可以试试.

如果可以能把你编译成功的文件发我一份吗? 邮箱: 563346421@qq.com

因为自己有修改所以才需要自己编译嘛,我的是改过的,未必符合你的要求.不能编译又没有修改需求,直接用提供的编译好的啊

qhhrdooz

qhhrdooz8#

现在的版本是1.2.4的 直接依赖的话,加载libs报错了.没法修改.所以才想着本地编译下看看. 如果可以的话还是希望发一份编译好的源码给我参考下.谢谢…

------------------ 原始邮件 ------------------ 发件人: "Tencent/mars" <notifications@github.com>; 发送时间: 2020年8月11日(星期二) 下午4:49 收件人: "Tencent/mars"<mars@noreply.github.com>; 抄送: "START"<563346421@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [Tencent/mars] 为什么master分支上的anroid,C++端的代码和java端的代码,对不上? (#799) 用tag v1.3.0 其它分支都不是稳定的,本地编译失败. 我使用1.2.4版本的也是本地编译错误,请问你是怎么解决的? 我是在 v1.3.0 tag上编译成功的,编译不了看是什么问题,我开始在win10中构建,可能是我的gcc没有装好,报错无法成功,后来在子系统的ubuntu18.04中才构建成功,如果你在win10下不行的话,也可以试试. 如果可以能把你编译成功的文件发我一份吗? 邮箱:563346421@qq.com 因为自己有修改所以才需要自己编译嘛,我的是改过的,未必符合你的要求.不能编译又没有修改需求,直接用提供的编译好的啊 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

相关问题