ssageparuders / android_native_surface Goto Github PK
View Code? Open in Web Editor NEWAndroid Native Surface
License: MIT License
Android Native Surface
License: MIT License
在aarch64 debian上编译报错 draw.h:22:10: fatal error: 'Egl/eglext.h' file not found
修改成 #include <EGL/eglext.h> 后可以正常编译
出一个纯ndk编译的例子,不依赖cmake
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/src/screenrecord/jni/Android_Native_Surface-master/aosp_res.bak/10/aosp_native_surface/src$
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:
能否把过录屏的发我,我自用不泄露,如果可以的话请加我qq或微信77132421,谢谢
部分手机运行以后黑屏是什么问题
funcPointer.func_createNativeWindow = dlsym(handle, "_Z18createNativeWindowPKcjjb");
// 获取屏幕信息
funcPointer.func_getDisplayInfo = dlsym(handle, "_Z14getDisplayInfov");
// funcPointer.func_setSurfaceWH = dlsym(handle, "_Z12setSurfaceWHjj");
funcPointer.func_initRecord = dlsym(handle, "_Z10initRecordPKcfjj");
funcPointer.func_runRecord = dlsym(handle, "_Z9runRecordPbPFvPhmE");
funcPointer.func_stopRecord = dlsym(handle, "_Z10stopRecordv");
funcPointer.func_getRecordNativeWindow = dlsym(handle, "_Z21getRecordNativeWindowv");
如题,低版本的是否能够支持。
动态库添加接口设置窗口flags属性和标题名称
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.