We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmake f -p android --ndk=...--mode="debug" --kind="shared" xmake 编译还是 .a的静态库。
修改 ./src/xmake.lua 文件 set_kind("shared")
xmake 出错: [100%]: linking.debug libtbox.so error: d:/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/w indows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-a ndroideabi/bin/ld.exe: error: build\.objs\tbox\src\tbox\platform\android\ backtrace.c.o: multiple definition of 'tb_backtrace_frames' d:/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows- x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androide abi/bin/ld.exe: build\.objs\tbox\src\tbox\platform\backtrace.c.o: previous definition here d:/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows- x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androide abi/bin/ld.exe: error: build\.objs\tbox\src\tbox\platform\android\backtra ce.c.o: multiple definition of 'tb_backtrace_symbols_init' d:/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows- x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androide abi/bin/ld.exe: build\.objs\tbox\src\tbox\platform\backtrace.c.o: previous definition here d:/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows- x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androide abi/bin/ld.exe: error: build\.objs\tbox\src\tbox\platform\android\backtra ce.c.o: multiple definition of 'tb_backtrace_symbols_name' d:/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows- x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androide abi/bin/ld.exe: build\.objs\tbox\src\tbox\platform\backtrace.c.o: previous definition here d:/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows- x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androide abi/bin/ld.exe: error: build\.objs\tbox\src\tbox\platform\android\backtra ce.c.o: multiple definition of 'tb_backtrace_symbols_exit' d:/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows- .....
The text was updated successfully, but these errors were encountered:
tbox由于提供的接口太多,暂时不提供动态库哦,你可以写个so,把libtbox.a链接进来后,自己封装下,导出自己需要的一些模块接口。。
而且编译android的so,也是需要导出jni接口的,一般我在android上用,也是自己写个jni的so库,在jni的导出接口里面使用tbox,然后静态链接libtbox.a到jni的so
Sorry, something went wrong.
No branches or pull requests
修改 ./src/xmake.lua 文件 set_kind("shared")
The text was updated successfully, but these errors were encountered: