mars 编译xlog报错

eoigrqb6  于 4个月前  发布在  其他
关注(0)|答案(7)|浏览(52)

In file included from C:/Users/kongc/Desktop/mars-master/mars/comm/jni/platform_comm.cc:38:
In file included from C:/Users/kongc/Desktop/mars-master/mars/comm/../..\mars/comm/coroutine/coroutine.h:18:
In file included from C:/Users/kongc/Desktop/mars-master/mars/comm/..\boost/coroutine/all.hpp:14:
In file included from C:/Users/kongc/Desktop/mars-master/mars/comm/..\boost/coroutine/protected_stack_allocator.hpp:12:
C:/Users/kongc/Desktop/mars-master/mars/comm/..\boost/coroutine/posix/protected_stack_allocator.hpp:71:19: warning:
unused variable 'result' [-Wunused-variable]
const int result( ::mprotect( limit, traits_type::page_size(), PROT_NONE) );
^
1 warning generated.
[ 98%] Linking CXX static library libcomm.a
[ 98%] Built target comm
[100%] Building CXX object CMakeFiles/marsxlog.dir/libraries/mars_xlog_sdk/jni/import.cc.o
[100%] Building CXX object CMakeFiles/marsxlog.dir/libraries/mars_android_sdk/jni/JNI_OnLoad.cc.o
[100%] Linking CXX shared library libmarsxlog.so
clang++: error: no such file or directory: 'CMakeFiles/marsxlog.dir/libraries/mars_android_sdk/jni/JNI_OnLoad.cc.o CMakeFiles/marsxlog.dir/libraries/mars_xlog_sdk/jni/import.cc.o '
make[3]: *** [CMakeFiles/marsxlog.dir/build.make:118: libmarsxlog.so] Error 1
make[2]: *** [CMakeFiles/Makefile2:234: CMakeFiles/marsxlog.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:241: CMakeFiles/marsxlog.dir/rule] Error 2
make: *** [Makefile:169: marsxlog] Error 2
!!!!!!!!!!!!!!!!!!build fail!!!!!!!!!!!!!!!!!!!!

检查对应目录 ,发现JNI_OnLoad.cc.o是存在的,不知怎么回事,请问如何解决

zzlelutf

zzlelutf1#

补充,最后编译成功,但是生成的x86 so文件无法打包进apk,导致无法在模拟器运行,不知什么原因

fcipmucu

fcipmucu2#

老哥,你是怎么编译成功的,我也是报这个错误,实际文件是存在的

qf9go6mv

qf9go6mv3#

我在 mac 上编译成功了,如果需要so的话,可以发你个

rks48beu

rks48beu4#

我在 mac 上编译成功了,如果需要so的话,可以发你个

不用了老哥,非常感谢,我换了台电脑可以编译了,之前电脑可能哪里环境不对

w6lpcovy

w6lpcovy5#

我在 mac 上编译成功了,如果需要so的话,可以发你个

不用了老哥,非常感谢,我换了台电脑可以编译了,之前电脑可能哪里环境不对

客气了,编译完了就好

iqxoj9l9

iqxoj9l96#

M1芯片的Mac报错

hrysbysz

hrysbysz7#

mars_xlog_sdk.zip
就是两个so文件,需要java的可以在项目里面下载到

相关问题