Where can I find source code for various components of reference image?

Talking about OS and emulation core development
Post Reply
petrb
Posts: 8
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Where can I find source code for various components of reference image?

Post by petrb »

ubuntu image here - https://dn.odroid.com/RK3326/ODROID-GO- ... 223.img.xz contains some binaries that allow showing message boxes as well as request input from user using some overlay keyboard (osk).

Where is the source code for these binaries? I'd like to implement my own terminal interface with overlay keyboard so I that I could jump to linux terminal in case I needed to execute some simple tasks without USB keyboard and I would like to use that source code to implement it. (maybe someone already made that? IDK)

crashoverride
Posts: 5774
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 599 times
Contact:

Re: Where can I find source code for various components of reference image?

Post by crashoverride »

petrb wrote:
Thu Jan 19, 2023 10:10 pm
Where is the source code for these binaries?
The source code for those components is not public. I am the author and copyright holder of them. The source was withheld due to flood of clone makers that take but do not give back.

petrb
Posts: 8
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Where can I find source code for various components of reference image?

Post by petrb »

ok is there any other source code, maybe just a basic example of how you can process input from the keyboard or draw anything to the display? Basic example like drawing rectangles, or reading joysticks and checking for button press would be enough.

Thanks

User avatar
mad_ady
Posts: 11188
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1053 times
Contact:

Re: Where can I find source code for various components of reference image?

Post by mad_ady »

You may be able to use sdl to process input and draw. There might be open-source keyboard examples implemented in sdl....

petrb
Posts: 8
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Where can I find source code for various components of reference image?

Post by petrb »

hello, what is "sdl" and where do I find it?

User avatar
mad_ady
Posts: 11188
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1053 times
Contact:

Re: Where can I find source code for various components of reference image?

Post by mad_ady »

SDL2 is a library to draw graphics and handle input. https://github.com/xyproto/sdl2-examples
There's a slightly modified version running on the odroid go that uses hardware acceleration where possible.
There seems to be an onscreen keyboard in sdl for Android - that might help you get started: https://wiki.postmarketos.org/wiki/Osk-sdl

Edit: or this: https://github.com/zrafa/onscreenkeyboard

petrb
Posts: 8
Joined: Fri Jan 13, 2023 11:19 pm
languages_spoken: english
ODROIDs: odroid go super
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Where can I find source code for various components of reference image?

Post by petrb »

ok, would be also possible to just run whole X11 server with the odroid display? I also have some C++/Qt apps that I might want to be able to run, but they require X11 server

crashoverride
Posts: 5774
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 599 times
Contact:

Re: Where can I find source code for various components of reference image?

Post by crashoverride »

petrb wrote:
Mon Jan 23, 2023 11:01 pm
would be also possible to just run whole X11 server with the odroid display?
Yes. This topic has more details:
viewtopic.php?p=325192

User avatar
mad_ady
Posts: 11188
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1053 times
Contact:

Re: Where can I find source code for various components of reference image?

Post by mad_ady »

If you're going to use x11 you might as well use an existing on-screen keyboard for x11.

Post Reply

Return to “Platform development”

Who is online

Users browsing this forum: No registered users and 2 guests