Giter Site home page Giter Site logo

ssageparuders / android_native_surface Goto Github PK

View Code? Open in Web Editor NEW
258.0 258.0 80.0 181.83 MB

Android Native Surface

License: MIT License

CMake 1.85% C 23.11% C++ 66.86% Cuda 0.56% Shell 0.08% HTML 0.60% JavaScript 0.45% CSS 0.01% TeX 0.09% Python 3.13% Java 1.87% Swift 0.52% Kotlin 0.01% Objective-C 0.17% Objective-C++ 0.65% Perl 0.03% Batchfile 0.02% AIDL 0.01% Prolog 0.01% Dockerfile 0.01%
android elf native surface

android_native_surface's Introduction

SsageParuders
GitHub followers Twitter Follow

public class SsageParuders {
    public static void main(String[] args) {
        String[] use = {"C","C++","Java","Assembly","Python"};
        System.out.print("I'm learning:\t");
        for (String language:use) {
            System.out.print(language+"\t");
        }
    }
}

android_native_surface's People

Contributors

fgsqme avatar ssageparuders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android_native_surface's Issues

'Egl/eglext.h' file not found

在aarch64 debian上编译报错 draw.h:22:10: fatal error: 'Egl/eglext.h' file not found
修改成 #include <EGL/eglext.h> 后可以正常编译

建议

动态库添加接口设置窗口flags属性和标题名称

建议

出一个纯ndk编译的例子,不依赖cmake

aosp_res如何编译

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$

请问一下为什么导出函数的指针都是null?

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");

过录屏

能否把过录屏的发我,我自用不泄露,如果可以的话请加我qq或微信77132421,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.