<?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のトピックlibimxdmabuffer-master for imx8mini</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/libimxdmabuffer-master-for-imx8mini/m-p/1047249#M154227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imx8mini&lt;/P&gt;&lt;P&gt;imx-yocto-L4.14.98_2.0.0_ga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use&amp;nbsp;&lt;SPAN&gt;libimxdmabuffer ,but I compile&amp;nbsp; failed&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;从编译错误&amp;nbsp;信息来看，应当时版本不对。&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libimxdmabuffer&amp;nbsp;是从freescale的github上下载的。按理不会报错。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;请指导一下怎么正确编译&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@sunday:~/gpu/libimxdmabuffer-master# ./waf&lt;BR /&gt;Waf: Entering directory `/home/sunday/gpu/libimxdmabuffer-master/build'&lt;BR /&gt;[ 7/10] Compiling imxdmabuffer/imxdmabuffer_ion_allocator.c&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c: In function ‘imx_dma_buffer_ion_allocate_dmabuf’:&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:312:2: error: unknown type name ‘ion_user_handle_t’&lt;BR /&gt; ion_user_handle_t user_handle;&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:333:4: error: unknown field ‘align’ specified in initializer&lt;BR /&gt; .align = alignment,&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:335:20: warning: initialized field overwritten [-Woverride-init]&lt;BR /&gt; .heap_id_mask = ion_heap_id_mask,&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:335:20: note: (near initialization for ‘allocation_data.heap_id_mask’)&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:348:33: error: ‘struct ion_allocation_data’ has no member named ‘handle’&lt;BR /&gt; user_handle = allocation_data.handle;&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:351:11: error: variable ‘fd_data’ has initializer but incomplete type&lt;BR /&gt; struct ion_fd_data fd_data =&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:353:5: error: unknown field ‘handle’ specified in initializer&lt;BR /&gt; .handle = user_handle&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:353:15: warning: excess elements in struct initializer&lt;BR /&gt; .handle = user_handle&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:353:15: note: (near initialization for ‘fd_data’)&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:351:23: error: storage size of ‘fd_data’ isn’t known&lt;BR /&gt; struct ion_fd_data fd_data =&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:356:23: error: ‘ION_IOC_MAP’ undeclared (first use in this function)&lt;BR /&gt; if ((ioctl(ion_fd, ION_IOC_MAP, &amp;amp;fd_data) &amp;lt; 0) || (fd_data.fd &amp;lt; 0))&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:356:23: note: each undeclared identifier is reported only once for each function it appears in&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:351:23: warning: unused variable ‘fd_data’ [-Wunused-variable]&lt;BR /&gt; struct ion_fd_data fd_data =&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:376:10: error: variable ‘handle_data’ has initializer but incomplete type&lt;BR /&gt; struct ion_handle_data handle_data =&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:378:4: error: unknown field ‘handle’ specified in initializer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2020 06:09:32 GMT</pubDate>
    <dc:creator>tanyid</dc:creator>
    <dc:date>2020-07-01T06:09:32Z</dc:date>
    <item>
      <title>libimxdmabuffer-master for imx8mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/libimxdmabuffer-master-for-imx8mini/m-p/1047249#M154227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imx8mini&lt;/P&gt;&lt;P&gt;imx-yocto-L4.14.98_2.0.0_ga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use&amp;nbsp;&lt;SPAN&gt;libimxdmabuffer ,but I compile&amp;nbsp; failed&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;从编译错误&amp;nbsp;信息来看，应当时版本不对。&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libimxdmabuffer&amp;nbsp;是从freescale的github上下载的。按理不会报错。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;请指导一下怎么正确编译&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@sunday:~/gpu/libimxdmabuffer-master# ./waf&lt;BR /&gt;Waf: Entering directory `/home/sunday/gpu/libimxdmabuffer-master/build'&lt;BR /&gt;[ 7/10] Compiling imxdmabuffer/imxdmabuffer_ion_allocator.c&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c: In function ‘imx_dma_buffer_ion_allocate_dmabuf’:&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:312:2: error: unknown type name ‘ion_user_handle_t’&lt;BR /&gt; ion_user_handle_t user_handle;&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:333:4: error: unknown field ‘align’ specified in initializer&lt;BR /&gt; .align = alignment,&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:335:20: warning: initialized field overwritten [-Woverride-init]&lt;BR /&gt; .heap_id_mask = ion_heap_id_mask,&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:335:20: note: (near initialization for ‘allocation_data.heap_id_mask’)&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:348:33: error: ‘struct ion_allocation_data’ has no member named ‘handle’&lt;BR /&gt; user_handle = allocation_data.handle;&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:351:11: error: variable ‘fd_data’ has initializer but incomplete type&lt;BR /&gt; struct ion_fd_data fd_data =&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:353:5: error: unknown field ‘handle’ specified in initializer&lt;BR /&gt; .handle = user_handle&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:353:15: warning: excess elements in struct initializer&lt;BR /&gt; .handle = user_handle&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:353:15: note: (near initialization for ‘fd_data’)&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:351:23: error: storage size of ‘fd_data’ isn’t known&lt;BR /&gt; struct ion_fd_data fd_data =&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:356:23: error: ‘ION_IOC_MAP’ undeclared (first use in this function)&lt;BR /&gt; if ((ioctl(ion_fd, ION_IOC_MAP, &amp;amp;fd_data) &amp;lt; 0) || (fd_data.fd &amp;lt; 0))&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:356:23: note: each undeclared identifier is reported only once for each function it appears in&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:351:23: warning: unused variable ‘fd_data’ [-Wunused-variable]&lt;BR /&gt; struct ion_fd_data fd_data =&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:376:10: error: variable ‘handle_data’ has initializer but incomplete type&lt;BR /&gt; struct ion_handle_data handle_data =&lt;BR /&gt; ^&lt;BR /&gt;../imxdmabuffer/imxdmabuffer_ion_allocator.c:378:4: error: unknown field ‘handle’ specified in initializer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 06:09:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/libimxdmabuffer-master-for-imx8mini/m-p/1047249#M154227</guid>
      <dc:creator>tanyid</dc:creator>
      <dc:date>2020-07-01T06:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: libimxdmabuffer-master for imx8mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/libimxdmabuffer-master-for-imx8mini/m-p/1047250#M154228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how did you build this? we don't use github.freescale.com anymore, the source code was moved to &lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx" rel="nofollow" target="_blank"&gt;"https://source.codeaurora.org/external/imx"&lt;/A&gt;, try to change the "git://git.freescale.com/imx " to &lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx" rel="nofollow" target="_blank"&gt;"https://source.codeaurora.org/external/imx"&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 05:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/libimxdmabuffer-master-for-imx8mini/m-p/1047250#M154228</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2020-07-07T05:23:51Z</dc:date>
    </item>
  </channel>
</rss>

