-
Notifications
You must be signed in to change notification settings - Fork 3
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
please help me #8
Comments
it looks like that you use bitmap to draw framebuffer.The performance cost will be higher than that of ANativeWindow.In fact I've never tried this method,which may require some data conversion(due to the data format). You can get buffer fortmat form Ximage and the copy buffer in format form Xvfb_screen0 fd,there are some different between rgb and rgba too ,so it may need to add alpha channels manually. |
now i do what u say but image corrupted, sorry can u check it again? |
i do what u say now, can u check the code and contribute pls |
the fbfd is not just an array of pixels.It is a data buffer in xwd format.There are some relevant information https://en.wikipedia.org/wiki/Xwd. |
At present, the method of using x protocol to get ximage is available, this method does not need fd, and may be more suitable for a xserver. |
ok thanks alot, i will try this |
i need libX11.a source code to use XOpenDisplay(0) |
You can build it with termux. |
How?, sorry im noob about x11 things |
There are many ways to get x11 lib |
I thinks ur prebuilt libX11 uses co.pangbai.dowork, is thats right? Now termux packages dosent build on my xubuntu server without reason |
you can use github action .there are automatic build scripts |
libX11 libXau libX11-xcb libXcursor libdmcp libXext libXtst libxcb libandroid-support |
the package called libx11 ,not libX11.and you should edit your package name of app in https://github.com/termux/termux-packages/blob/master/scripts/properties.sh |
ok thanks, i think now this time for using termux bootstraps instead of proot |
xvfb
ld.lld: error: undefined symbol: libandroid_shmat
ld.lld: error: undefined symbol: libandroid_shmctl
|
add package libandroid-shmem |
then? |
now the remaining thing is assets xvfb executable files |
add package xorg-server-xvfb, and extract all deb packages and put them in assets (unexpectedly, my busy time may continue.there are still some details you need to deal with yourself.) |
Thx |
I haven't had a problem like this before. you can try running the termux-package script in termux.termux-package is always updated, and the results of the latest scripts may be different from week to week.now, xvfb seems to depends on mesa, so the package built may be much larger than before. |
So what machine and os u built xvfb on and what u mean by termux.termux-package |
I'd like to say this, but this should not be the solution, because the package name cannot be changed at this time.As a matter of fact, I failed to build just now(in termux).termux-package maintainers may be needed to solve this problem(build mesa). |
so how u built xvfb in assets dir |
I'm sorry. I've forgotten. I need some time to try. |
please check this source code
https://github.com/epicstudios856/vectras-x11
the framebuffer sliced and the colors shifted wrong and i dont know why
The text was updated successfully, but these errors were encountered: