Android_Native_Surface icon indicating copy to clipboard operation
Android_Native_Surface copied to clipboard

aosp_res如何编译

Open wode2016501 opened this issue 2 years ago • 0 comments

aosp_res/10/aosp_native_surface如何编译 ~/src/screenrecord/jni/Android_Native_Surface-master/aosp_res.bak/10/aosp_native_surface/src$ /opt/android-sdk/ndk/r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/opt/android-sdk/ndk/r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O3 -DNDEBUG -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections -L/home/wode/src/screenrecord/jni/Android_Native_Surface-master/ffmpeg/lib/arm64-v8a -lEGL -lGLESv3 -llog -landroid -lGLESv2 -lm -ldl -lmediandk -lz -latomic -lm -Wdeprecated *.cpp -Iinclude In file included from aosp_record.cpp:36: In file included from include/utils/Log.h:7: In file included from include/log/log.h:30: include/log/log_id.h:25:14: error: redefinition of 'log_id' typedef enum log_id { ^ /opt/android-sdk/ndk/r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/log.h:138:14: note: previous definition is here typedef enum log_id { ^ aosp_record.cpp:38:10: fatal error: 'binder/IPCThreadState.h' file not found #include <binder/IPCThreadState.h> ^~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. aosp_surface.cpp:13:10: fatal error: 'gui/Surface.h' file not found #include <gui/Surface.h> ^~~~~~~~~~~~~~~ 1 error generated. wode@wode-NBLK-WAX9X:~/src/screenrecord/jni/Android_Native_Surface-master/aosp_res.bak/10/aosp_native_surface/src$

wode2016501 avatar Aug 20 '23 15:08 wode2016501