Giter VIP home page Giter VIP logo

Comments (8)

varundtsfi avatar varundtsfi commented on July 27, 2024

I am trying to build the Amdroid_12 r1 but getting errors even libgui.so and other supported libs got generated. I am building the specific module like make minicap
Resolve all the new changes but still compiling is done but did not get minicap.so

@koral--
@pcrepieux few people asking about the same solutions because they are still using minicap.so as in their project and not the current minicap.apk.

Following are the changes in Android 12 :-
S.No Android 11 Android 12
1 ui/DisplayInfo --> ui/StaticDisplayInfo
2 ui/DynamiDisplayInfo --> ui/DisplayConfig ui/DisplayMode
4 ui/DisplayState.h->viewport --> ui/DisplayState.h->LayerSpaceRect

waiting for your suggestions.
Android-11

  1. android::DisplayInfo dinfo;
  2. err = android::SurfaceComposerClient::getDisplayInfo(dpy, &dinfo);
  3. android::DisplayConfig dconfig;
  4. const android::ui::Size& viewport = dstate.viewport;

Android-12

  1. android::ui::StaticDisplayInfo dinfo;
  2. err = android::SurfaceComposerClient::getStaticDisplayInfo(dpy, &dinfo);
  3. android::ui::DisplayMode dconfig;
  4. const android::ui::Size& viewport = dstate.layerStackSpaceRect;

from minicap.

pcrepieux avatar pcrepieux commented on July 27, 2024

OK thanks. I've just grabbed r2 branch. Will check it 👍

from minicap.

varundtsfi avatar varundtsfi commented on July 27, 2024

@pcrepieux You can use android-12.0.0_r1 too. It'ss compiling mostly 96%. I am also trying the same But this time I am using
android-12.0.0_r1 . I will keep posted the results here.

from minicap.

varundtsfi avatar varundtsfi commented on July 27, 2024

Hi @pcrepieux
I have build the android-12_0.0.r1 successfully with minicap and get the .so file too. But I am getting the following error
CANNOT LINK EXECUTABLE "/data/local/tmp//androidvncserver": cannot locate symbol "_Z28minicap_try_get_display_infoiPN7Minicap11DisplayInfoE" referenced by "/data/local/tmp/androidvncserver"...

I am debugging it step by step. @pcrepieux Any suggestion here.

from minicap.

bikeebh avatar bikeebh commented on July 27, 2024

HI @varundtsfi @pcrepieux are you able to crack this for Android 12.

from minicap.

varundtsfi avatar varundtsfi commented on July 27, 2024

Hi @bikeebh
I am trying but getting the same error.

There is a changed from Displayid to android::PhysicalDisplayid Which is creating problem.
INFO: (external/minicap/src/minicap_31.cpp:244) Creating SurfaceComposerClient
INFO: (external/minicap/src/minicap_31.cpp:247) Performing SurfaceComposerClient init check
INFO: (external/minicap/src/minicap_31.cpp:258) Creating virtual display
INFO: (external/minicap/src/minicap_31.cpp:266) Creating buffer queue
INFO: (external/minicap/src/minicap_31.cpp:269) Setting buffer options
INFO: (external/minicap/src/minicap_31.cpp:273) Creating CPU consumer
INFO: (external/minicap/src/minicap_31.cpp:277) Creating frame waiter
INFO: (external/minicap/src/minicap_31.cpp:281) Publishing virtual display
after Publishing virtual display its getting stuck in waitForFrame
int waitForFrame() {
std::unique_lockstd::mutex lock(mMutex);
while (!mStopped) {
MCINFO("Wait for frame ");
if (mCondition.wait_for(lock, mTimeout, [this]{return mPendingFrames > 0;})) {
return mPendingFrames--;
MCINFO("Wait for mPendingFrames ");
}
}
return 0;
}

@pcrepieux do you have any update on it🤔.

from minicap.

varundtsfi avatar varundtsfi commented on July 27, 2024

@bikeebh

From here you can use the android 12 support from minicap side using shared libs.

https://github.com/varundtsfi/Android12Support_withso/tree/main/aosp/android-31/arm64-v8a

from minicap.

bikeebh avatar bikeebh commented on July 27, 2024

Thanks @varundtsfi it's works for me.

from minicap.

Related Issues (20)

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.