Giter VIP home page Giter VIP logo

binder-linux's People

Contributors

hiking90 avatar

Stargazers

 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

binder-linux's Issues

It is better to have a special folds to save "binder.h" and "binderfs.h" with the matched version current AOSP binder

Now, the build is depend on the "/usr/include/linux/android*", but the files here on the system may be not matched the binder codes.

For example:
I build your aosp 12 binder (checkout to the previous commit) on Ubuntu 24.04 whose linux-libc-dev's version 6.4, it failed:

/root/repos/nixwic/binder-linux/android/native/libs/binder/binder_module.h:48:8: error: redefinition of 'binder_freeze_info'
48 | struct binder_freeze_info {
| ^
/usr/include/linux/android/binder.h:220:8: note: previous definition is here
220 | struct binder_freeze_info {

It seems that the 6.4 kernel headfile has already contained many definitions in binder_module.h of AOSP12...

So I have to copy binder.h and binderfs.h from 5.4 kernel headfiles into the project.

Not able to get context object on /dev/binder

Hi Jeff Kim
I'm following your instruction but there are some errors:

Build C/C++ binaries and libraries
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- The C compiler identification is Clang 14.0.0
-- The CXX compiler identification is Clang 14.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find FLEX (missing: FLEX_EXECUTABLE)
-- Could NOT find BISON (missing: BISON_EXECUTABLE)
CMake Error at CMakeLists.txt:397 (FLEX_TARGET):
Unknown CMake command "FLEX_TARGET".
-- Configuring incomplete, errors occurred!

Could you point me out what am I missing?

My kernel version: 5.16.5-051605-generic

Thank you in advanced!

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.