<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックiMX8QXP-MEK OpenGL application not working</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MEK-OpenGL-application-not-working/m-p/1159398#M162556</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the &lt;STRONG&gt;iMX8QXP MEK&lt;/STRONG&gt; board with Yocto Zeus, &lt;STRONG&gt;L5.4.24-2.1.0&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;We are trying to run an OpenGL application to display images on the HDMI display using an LVDS-HDMI adapter card. We are using the LVDS0 interface for this.&lt;/P&gt;&lt;P&gt;We are using &lt;STRONG&gt;imx-image-multimedia&lt;/STRONG&gt; for building image and DISTRO=&lt;STRONG&gt;fsl-imx-xwayland&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our application we are using OpenGL library, &lt;STRONG&gt;glut&lt;/STRONG&gt;, &lt;STRONG&gt;freeglut&lt;/STRONG&gt;, and &lt;STRONG&gt;DevIL&lt;/STRONG&gt;(Developer’s Image Library).&lt;/P&gt;&lt;P&gt;As per the user manual iMX8QXP supports OpenGL application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we tried to execute the application it gave this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;freeglut (./xyz): failed to open display '&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our LVDS node in dts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;ldb1 {
	status = "okay";

	lvds-channel@0 {
		fsl,data-mapping = "jeida";
		fsl,data-width = &amp;lt;24&amp;gt;;
		status = "okay";

		port@1 {
			reg = &amp;lt;1&amp;gt;;

			lvds0_out: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;it6263_0_in&amp;gt;;
			};
		};
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fbset command output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;root@imx8qxpmek:/unit_tests/Display# fbset

mode "1366x768"
geometry 1366 768 1366 768 16
timings 0 0 0 0 0 0 0
accel true
rgba 5/11,6/5,5/0,0/0

endmode&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gpuinfo.sh output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;root@imx8qxpmek:/unit_tests/GPU# ./gpuinfo.sh

---- Running &amp;lt; gpuinfo.sh &amp;gt; test ----
GPU Info
gpu : 0
model : 7000
revision : 6214
product : 70002
eco : 0

VIDEO MEMORY:
POOL SYSTEM:
Free : 249002624 B
Used : 19432832 B
MinFree : 239597104 B
MaxUsed : 28838352 B
Total : 268435456 B
POOL VIRTUAL:
Used : 0 B
MaxUsed : 0 B
CMA memory info
cat: /sys/kernel/debug/gc/allocators/cma/cmausage: No such file or directory
VidMem Usage (Process 757: weston):
Current Maximum Total
All-Types 19383320 19558168 26817656
Index 0 0 0
Vertex 1048576 1048576 1048576
Texture 376832 376832 376832
RenderTarget 17301504 17301504 17301504
Depth 0 0 0
Bitmap 0 0 0
TileStatus 0 0 0
Image 0 0 0
Mask 0 0 0
Scissor 0 0 0
HZ 0 0 0
ICache 272 272 272
TxDesc 768 5120 91392
Fence 8 8 8
TFBHeader 0 0 0
Command 655360 655360 655360

All-Types 19383320 19558168 26817656
Index 0 0 0
Vertex 1048576 1048576 1048576
Texture 376832 376832 376832
RenderTarget 17301504 17301504 17301504
Depth 0 0 0
Bitmap 0 0 0
TileStatus 0 0 0
Image 0 0 0
Mask 0 0 0
Scissor 0 0 0
HZ 0 0 0
ICache 272 272 272
TxDesc 768 5120 91392
Fence 8 8 8
TFBHeader 0 0 0
Command 655360 655360 655360

All-Pools 19383320 19558168 26817656
Default 0 0 0
Local 0 0 0
Internal 0 0 0
External 0 0 0
Unified 0 0 0
System 19383320 19558168 26817656
Sram 0 0 0
Virtual 0 0 0
User 0 0 0
Insram 0 0 0
Exsram 0 0 0

AllocNonPaged 0 0 0
AllocContiguous 19383320 19558168 26817656
MapUserMemory 0 0 0
MapMemory 268435456 268435456 268435456

&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
Idle percentage:0.000.000.000.00%
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;

---- Test &amp;lt; gpuinfo.sh &amp;gt; ended ----&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we have tried:&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;export DISPLAY=:0.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;FB_FRAMEBUFFER_0 = &lt;I&gt;/dev/&lt;/I&gt;&lt;SPAN&gt;fb0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. We have tried running the application using imx8qxp-mek.dtb as well as imx8qxp-mek-it6263-lvds0-dual-channel.dtb but the issue is not resolved.&lt;/P&gt;&lt;P&gt;4. Tried adding “&lt;STRONG&gt;fsl, no_edid&lt;/STRONG&gt;” into &amp;amp;lbd1 node in imx8qxp-mek.dts file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After export DISPLAY=:0.0 if we run the application we have this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;freeglut (./xyz): OpenGL GLX extension not supported by display ':0.0'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion for running our OpenGL application on the iMX8QXP MEK board would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 14:17:12 GMT</pubDate>
    <dc:creator>priyank_bhatt</dc:creator>
    <dc:date>2020-09-25T14:17:12Z</dc:date>
    <item>
      <title>iMX8QXP-MEK OpenGL application not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MEK-OpenGL-application-not-working/m-p/1159398#M162556</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the &lt;STRONG&gt;iMX8QXP MEK&lt;/STRONG&gt; board with Yocto Zeus, &lt;STRONG&gt;L5.4.24-2.1.0&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;We are trying to run an OpenGL application to display images on the HDMI display using an LVDS-HDMI adapter card. We are using the LVDS0 interface for this.&lt;/P&gt;&lt;P&gt;We are using &lt;STRONG&gt;imx-image-multimedia&lt;/STRONG&gt; for building image and DISTRO=&lt;STRONG&gt;fsl-imx-xwayland&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our application we are using OpenGL library, &lt;STRONG&gt;glut&lt;/STRONG&gt;, &lt;STRONG&gt;freeglut&lt;/STRONG&gt;, and &lt;STRONG&gt;DevIL&lt;/STRONG&gt;(Developer’s Image Library).&lt;/P&gt;&lt;P&gt;As per the user manual iMX8QXP supports OpenGL application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we tried to execute the application it gave this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;freeglut (./xyz): failed to open display '&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our LVDS node in dts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;ldb1 {
	status = "okay";

	lvds-channel@0 {
		fsl,data-mapping = "jeida";
		fsl,data-width = &amp;lt;24&amp;gt;;
		status = "okay";

		port@1 {
			reg = &amp;lt;1&amp;gt;;

			lvds0_out: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;it6263_0_in&amp;gt;;
			};
		};
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fbset command output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;root@imx8qxpmek:/unit_tests/Display# fbset

mode "1366x768"
geometry 1366 768 1366 768 16
timings 0 0 0 0 0 0 0
accel true
rgba 5/11,6/5,5/0,0/0

endmode&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gpuinfo.sh output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;root@imx8qxpmek:/unit_tests/GPU# ./gpuinfo.sh

---- Running &amp;lt; gpuinfo.sh &amp;gt; test ----
GPU Info
gpu : 0
model : 7000
revision : 6214
product : 70002
eco : 0

VIDEO MEMORY:
POOL SYSTEM:
Free : 249002624 B
Used : 19432832 B
MinFree : 239597104 B
MaxUsed : 28838352 B
Total : 268435456 B
POOL VIRTUAL:
Used : 0 B
MaxUsed : 0 B
CMA memory info
cat: /sys/kernel/debug/gc/allocators/cma/cmausage: No such file or directory
VidMem Usage (Process 757: weston):
Current Maximum Total
All-Types 19383320 19558168 26817656
Index 0 0 0
Vertex 1048576 1048576 1048576
Texture 376832 376832 376832
RenderTarget 17301504 17301504 17301504
Depth 0 0 0
Bitmap 0 0 0
TileStatus 0 0 0
Image 0 0 0
Mask 0 0 0
Scissor 0 0 0
HZ 0 0 0
ICache 272 272 272
TxDesc 768 5120 91392
Fence 8 8 8
TFBHeader 0 0 0
Command 655360 655360 655360

All-Types 19383320 19558168 26817656
Index 0 0 0
Vertex 1048576 1048576 1048576
Texture 376832 376832 376832
RenderTarget 17301504 17301504 17301504
Depth 0 0 0
Bitmap 0 0 0
TileStatus 0 0 0
Image 0 0 0
Mask 0 0 0
Scissor 0 0 0
HZ 0 0 0
ICache 272 272 272
TxDesc 768 5120 91392
Fence 8 8 8
TFBHeader 0 0 0
Command 655360 655360 655360

All-Pools 19383320 19558168 26817656
Default 0 0 0
Local 0 0 0
Internal 0 0 0
External 0 0 0
Unified 0 0 0
System 19383320 19558168 26817656
Sram 0 0 0
Virtual 0 0 0
User 0 0 0
Insram 0 0 0
Exsram 0 0 0

AllocNonPaged 0 0 0
AllocContiguous 19383320 19558168 26817656
MapUserMemory 0 0 0
MapMemory 268435456 268435456 268435456

&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
Idle percentage:0.000.000.000.00%
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;

---- Test &amp;lt; gpuinfo.sh &amp;gt; ended ----&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we have tried:&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;export DISPLAY=:0.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;FB_FRAMEBUFFER_0 = &lt;I&gt;/dev/&lt;/I&gt;&lt;SPAN&gt;fb0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. We have tried running the application using imx8qxp-mek.dtb as well as imx8qxp-mek-it6263-lvds0-dual-channel.dtb but the issue is not resolved.&lt;/P&gt;&lt;P&gt;4. Tried adding “&lt;STRONG&gt;fsl, no_edid&lt;/STRONG&gt;” into &amp;amp;lbd1 node in imx8qxp-mek.dts file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After export DISPLAY=:0.0 if we run the application we have this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;freeglut (./xyz): OpenGL GLX extension not supported by display ':0.0'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion for running our OpenGL application on the iMX8QXP MEK board would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 14:17:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MEK-OpenGL-application-not-working/m-p/1159398#M162556</guid>
      <dc:creator>priyank_bhatt</dc:creator>
      <dc:date>2020-09-25T14:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QXP-MEK OpenGL application not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MEK-OpenGL-application-not-working/m-p/1160103#M162635</link>
      <description>&lt;P&gt;Hello Priyant_bhatt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Freeglut is not supported by default in yocto, I Think you need mesa to run it.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;FreeGLUT&lt;/EM&gt; – FreeGLUT is an open source alternative to the OpenGL Utility Toolkit (GLUT), a window system independent toolkit for writing OpenGL programs. It implements a simple windowing application programming interface (API) for OpenGL. This is not necessary for drawing the model on the window but foes allow for functions such as rotating it.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MEK-OpenGL-application-not-working/m-p/1160103#M162635</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-09-28T13:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8QXP-MEK OpenGL application not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MEK-OpenGL-application-not-working/m-p/1161064#M162725</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for a quick reply.&lt;/P&gt;&lt;P&gt;In my build folder, I can see freeglut and mesa. Also when building using imx-image-multimedia I can observe mesa being compiled.&lt;/P&gt;&lt;P&gt;I have added &lt;STRONG&gt;DEPENDS = "devil freeglut mesa" &lt;/STRONG&gt;to my .bb file still, I am unable to execute the application.&lt;/P&gt;&lt;P&gt;I also tried by adding&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISTRO_FEATURES_append = " opengl"&lt;BR /&gt;CORE_IMAGE_BASE_INSTALL += "libgles1-mesa"&lt;BR /&gt;CORE_IMAGE_BASE_INSTALL += "libgles2-mesa"&lt;BR /&gt;CORE_IMAGE_BASE_INSTALL += "libegl-mesa"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to my local.conf file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am new to the OpenGL application. Please provide any reference we can use to resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QXP-MEK-OpenGL-application-not-working/m-p/1161064#M162725</guid>
      <dc:creator>priyank_bhatt</dc:creator>
      <dc:date>2020-09-30T05:38:41Z</dc:date>
    </item>
  </channel>
</rss>

