Tencent / mars

Mars is a cross-platform network component developed by WeChat.
Other
17.33k stars 3.63k forks source link

Android 编译xlog的x86平台so库报错 #1301

Open yixi195 opened 3 months ago

yixi195 commented 3 months ago

In file included from E:/Demo/mars/mars/comm/strutil.cc:33: In file included from E:/Demo/mars/mars/comm/../..\mars/openssl/include/openssl/md5.h:13: In file included from E:/Demo/mars/mars/openssl/include\openssl/opensslconf.h:12: E:/Demo/mars/mars/openssl/include\openssl/opensslconf-android.h:15:10: fatal error: 'openssl/opensslconf_android-x86.h' file not found

include <openssl/opensslconf_android-x86.h>

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated. make[3]: [comm/CMakeFiles/comm.dir/strutil.cc.o] Error 1 make[3]: Waiting for unfinished jobs.... [ 58%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/context/src/posix/stack_traits.cpp.o [ 60%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/detail/coroutine_context.cpp.o [ 60%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/exceptions.cpp.o [ 61%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/posix/stack_traits.cpp.o [ 61%] Building ASM object boost/CMakeFiles/mars-boost.dir/libs/context/src/asm/jump_i386_sysv_elf_gas.S.o [ 63%] Building ASM object boost/CMakeFiles/mars-boost.dir/libs/context/src/asm/make_i386_sysv_elf_gas.S.o make[2]: [comm/CMakeFiles/comm.dir/all] Error 2 make[2]: Waiting for unfinished jobs.... [ 63%] Linking CXX static library libmars-boost.a [ 63%] Built target mars-boost make[1]: [CMakeFiles/marsxlog.dir/rule] Error 2 make: [marsxlog] Error 2 !!!!!!!!!!!!!!!!!!build fail!!!!!!!!!!!!!!!!!!!!