mars xlog/libxlog.a: error adding symbols: Archive has no index; run ranlib to add one

kr98yfug  于 5个月前  发布在  Hive
关注(0)|答案(1)|浏览(110)

[ 97%] Linking CXX static library libcomm.a
[ 97%] Built target comm
Consolidate compiler generated dependencies of target marsxlog
[ 97%] Building CXX object CMakeFiles/marsxlog.dir/libraries/mars_android_sdk/jni/JNI_OnLoad.cc.o
[ 98%] Building CXX object CMakeFiles/marsxlog.dir/libraries/mars_xlog_sdk/jni/import.cc.o
[ 98%] Linking CXX shared library libmarsxlog.so
xlog/libxlog.a: error adding symbols: Archive has no index; run ranlib to add one
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libmarsxlog.so] Error 1
make[1]: *** [CMakeFiles/marsxlog.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 98%] Linking CXX static library libstn.a
[ 98%] Built target stn
make: *** [all] Error 2
!!!!!!!!!!!!!!!!!!build fail!!!!!!!!!!!!!!!!!!!!

环境:Mac M1芯片
命令: python2 build_android.py -> 2. Build incrementally mars.
节点:452e25e9
修改:CMakeLists.txt line 90 zstd -> libzstd_static ; ndk-20b

rhfm7lfc

rhfm7lfc1#

我也遇到了,是自己修改的c++代码里有语法错误,编译输出上面会有error的提示,不知道你的跟我的是不是一个问题

相关问题