Skip to content
New issue

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

aosp_res如何编译 #12

Open
wode2016501 opened this issue Aug 20, 2023 · 0 comments
Open

aosp_res如何编译 #12

wode2016501 opened this issue Aug 20, 2023 · 0 comments

Comments

@wode2016501
Copy link

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$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant