问题出在:
Task :app:externalNativeBuildDebug Build osgNativeLib_arm64-v8a ninja: Entering directory `E:\Projects\AndroidStudio\TestNativeCPlusPlus\app\.cxx\cmake\debug\arm64-v8a' [1/2] Building CXX object CMakeFiles/osgNativeLib.dir/OsgMainApp.cpp.o [2/2] Linking CXX shared library E:\Projects\AndroidStudio\TestNativeCPlusPlus\app\build\intermediates\cmake\debug\obj\arm64-v8a\libosgNativeLib.so
生成该动态库要几分钟。
ninja在执行如下操作时慢
cmd.exe /C "cd . && D:\android-ndk-r19c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android28 --gcc-toolchain=D:/android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++? -O0 -fno-limit-debug-info? -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libosgNativeLib1.so -o E:\Projects\AndroidStudio\TestNativeCPlusPlus\app\build\intermediates\cmake\debug\obj\arm64-v8a\libosgNativeLib.so @CMakeFiles\osgNativeLib.rsp? && cd ."
|