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.
Hi Team,
I'm using SDK v 08_02_00_05 (Linux+RTOS).
i want to use OpenGL functionality inside a custom kernel. While building tiovx I'm facing this error as shown below.
SCM_VERSION=
Copying Prebuilt libs from prebuilt_libs to lib
[GCC] Compiling C++ testing_load.cpp
/home/prakash/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/tiovx/kernels_j7/viewconvert/a72/testing_load.cpp:5:10: fatal error: GLFW/glfw3.h: No such file or directory
5 | #include <GLFW/glfw3.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make: *** [concerto/finale.mak:313: /home/prakash/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/tiovx/out/J7/A72/LINUX/release/module/.home.prakash.ti-processor-sdk-rtos-j721e-evm-08_02_00_05.tiovx.kernels_j7.viewconvert.a72/testing_load.o] Error 1
Kindly help me in resolving this.I have tried adding line "IDIRS += /usr/include" in concerto.mak but not useful.
Regards,
Chaitanya Prakash Uppala
Hello,
On SDK 8.2, we don't have support for GLFW in the filesystem. There was incompatibility at the graphics library layer. This should be available in the latest SDKs 9.0 and 91.
It looks like you are trying to use this for testing the GPU load based on your file name "testing_load.cpp". Is this a file you've developed? Or one ported from a TI example?
Regards,
Erick
Hello Erick,
On SDK 8.2, we don't have support for GLFW in the filesystem. There was incompatibility at the graphics library layer
Thanks for the resply. But many files present at this path in the SDK v 08_02 consists of #include <GLFW/glfw3.h>. Even srv applications are using glfw. How is it possible to include glfw library at that path. Kindly comment on this.
It looks like you are trying to use this for testing the GPU load based on your file name "testing_load.cpp". Is this a file you've developed? Or one ported from a TI example?
I'm using a custom kernel to load a image on GPU using OpenGL. Yes, I have created this file.
I'm using ubuntu 20.04
Regards,
Chaitanya Prakash Uppala
Thanks for the resply. But many files present at this path in the SDK v 08_02 consists of #include <GLFW/glfw3.h>. Even srv applications are using glfw. How is it possible to include glfw library at that path. Kindly comment on this.
Yes, these are actually used for other modes. Actually I only see them used in the 3dsrv project, which is adapted to fit in Vision Apps. But it currently contains other code not relevant for the surround view demo. You can see the WIN32 defines around it.
I'm using a custom kernel to load a image on GPU using OpenGL. Yes, I have created this file.
Ok great, if it's OpenGLES, it should work. Also, note that in Linux+RTOS the DSS (display) is left out of Linux, so Window System (wayland) won't be able to run without a native Linux display.
Regards,
Erick
Hi Erick,
I am trying to do some operation on an input image based on LUT using OpenGL. I want to display the opengl output. Kindly let me know the process to achieve the same.
SDK 8.2, we don't have support for GLFW in the filesystem
As you said we can't use glfw in displaying as SDK doesn't support GLFW. Please let me know the alternative of GLFW to diplay the output image.
Also elaborate how in app_srv_camera how TI is passing output_image data to display node to visualise.
Thanks,
Chaitanya Prakash Uppala
Chaitanya,
The SDK currently uses a feature in our GPU driver that supports the dma-buf framework. If you are unfamiliar:
https://www.kernel.org/doc/html/v4.16/driver-api/dma-buf.html
So the GPU will take a dma-buf from the OpenVX graph as an input, and it will write into a dma-buf for the output. This allows the buffer to be passed along the graph.
Please let me know if this makes sense.
Regards,
Erick
Thanks for the response.
I am trying to do some operation on an input image based on LUT using OpenGL. I want to display the opengl output. Kindly let me know the process to achieve the same.
As you said we can't use glfw in displaying as SDK doesn't support GLFW. Please let me know the alternative of GLFW to diplay the output image.
Could you please respond to these and guide me to achieve them.
As you said we can't use glfw in displaying as SDK doesn't support GLFW. Please let me know the alternative of GLFW to diplay the output image.
The current display solution used in RTOS+Linux is to send the buffer to the display node. The display is owned by the Cortex R5F in this case, and there is no native Linux display.
If you wish to use the native linux display, the ownership of the display needs to come back to the Cortex A72.
For this, you will need to only boot up Linux.
Then, you could use wayland/weston to render to the display.
Let me know if this is the path you are trying to take.
I am trying to do some operation on an input image based on LUT using OpenGL. I want to display the opengl output. Kindly let me know the process to achieve the same.
If you have your graphics application, you can render using OpenGLES onto Wayland, or you could render your output using the dma-buf + OpenVX framework mentioned.
Regards,
Erick