Other Parts Discussed in Thread: TDA4VM
型号: TDA4VM
rootfs:7.2
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: TDA4VM
型号: TDA4VM
rootfs:7.2
Hello,
Thank you for reporting. While we look into your code on TDA4, I want to point you to an example that can be used as a reference for EGLImage in general:
https://git.ti.com/cgit/glsdk/omapdrmtest/
You can refer to util/display-kmscube.c as an example. We will also try and publish a simpler example.
Regards
Hemant
Thank you for providing simple, I encountered a compilation error while referring to omapdrmtest.
main.cpp:(.text+0x2a8): undefined reference to `omap_device_new(int)'
I confirm that I have successfully connected these SO's. Is this library working in TDA4 rootfs7.2?
libc.so,libdrm.so,libdrm_omap.so,libdrm_freedreno.so
----code-----
int main()
{
struct display_kmscube *disp_kmsc = NULL;
struct display *disp;
int ret, i, enabled = 0;
float fov = 45, distance = 8, connector_id = 4;
disp_kmsc = (struct display_kmscube *)calloc(1, sizeof(*disp_kmsc));
if (!disp_kmsc) {
ERROR("allocation failed");
goto fail;
}
disp_kmsc->gl.distance = distance;
disp_kmsc->gl.fov = fov;
disp_kmsc->user_connector_id = connector_id;
disp = &disp_kmsc->base; // 其中包含了egldisplay
for (i=0; i<MAX_FACES; i++) {
pthread_mutex_init(&disp_kmsc->lock[i], NULL);
}
pthread_mutex_init(&disp_kmsc->init_lock, NULL);
disp->fd = open("/dev/dri/by-path/platform-4e20000000.gpu-render", O_RDWR);
if (disp->fd < 0) {
ERROR("could not open drm device: %s (%d)", strerror(errno), errno);
goto fail;
}
disp->dev = omap_device_new(disp->fd);
Hello,
Sorry for not being clear. I had shared the link for code reference only. Like I mentioned, we are working on a simpler example tried on TDA4. I will update you as soon as we have that.
Regards
Hemant