<?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>topic Re: Building unit_test with including linux file manually using created toolchain in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Building-unit-test-with-including-linux-file-manually-using/m-p/428270#M65075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you install the toolchain successfully , I attach the toolchain release note to you, hope helpful for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2015 05:47:53 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2015-08-18T05:47:53Z</dc:date>
    <item>
      <title>Building unit_test with including linux file manually using created toolchain</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-unit-test-with-including-linux-file-manually-using/m-p/428269#M65074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We have install toolchain, but if we include &amp;lt;linux/xxx.h&amp;gt;", the result is error.&lt;/P&gt;&lt;P&gt;We have add -I path in compile as below: However, it still can't find linux path.&lt;/P&gt;&lt;P&gt;How can I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test (1) =&amp;gt; add -I git/include/linux&lt;/P&gt;&lt;P&gt;14.28-1.0.0/test/mxc_fb_test$ arm-poky-linux-gnueabi-gcc -mfloat-abi=hard -I /home/neo/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/include/linux mxc_fb_test.c -o mxc_fb_testIn file included from /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdio.h:33:0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from mxc_fb_test.c:29:&lt;/P&gt;&lt;P&gt;/home/neo/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/include/linux/stddef.h:4:31: fatal error: uapi/linux/stddef.h: No such file or directory&lt;/P&gt;&lt;P&gt; #include &amp;lt;uapi/linux/stddef.h&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;compilation terminated.&lt;/P&gt;&lt;P&gt;neo@neo-P45VA:~/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/imx-test/1_3.14.28-1.0.0-r0/imx-test-3.14.28-1.0.0/test/mxc_fb_test$ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======================================================================================================================&lt;/P&gt;&lt;P&gt;Test(2)=&amp;gt; add -I git/include/uapi/linux&lt;/P&gt;&lt;P&gt;14.28-1.0.0/test/mxc_fb_test$ arm-poky-linux-gnueabi-gcc -mfloat-abi=hard -I /home/neo/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/include/uapi/linux -I /home/neo/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/include/linux mxc_fb_test.c -o mxc_fb_testIn file included from /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdio.h:33:0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from mxc_fb_test.c:29:&lt;/P&gt;&lt;P&gt;/home/neo/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/include/uapi/linux/stddef.h:1:28: fatal error: linux/compiler.h: No such file or directory&lt;/P&gt;&lt;P&gt; #include &amp;lt;linux/compiler.h&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;compilation terminated.&lt;/P&gt;&lt;P&gt;=======================================================================================================================&lt;/P&gt;&lt;P&gt;Test(3) =&amp;gt; add -I git/include/linux and -I git/include/uapi/linux&lt;/P&gt;&lt;P&gt;14.28-1.0.0/test/mxc_fb_test$ arm-poky-linux-gnueabi-gcc -mfloat-abi=hard -I /home/neo/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/include/uapi/linux -I /home/neo/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/include/linux mxc_fb_test.c -o mxc_fb_test&lt;/P&gt;&lt;P&gt;In file included from /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdio.h:33:0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from mxc_fb_test.c:29:&lt;/P&gt;&lt;P&gt;/home/neo/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/include/uapi/linux/stddef.h:1:28: fatal error: linux/compiler.h: No such file or directory&lt;/P&gt;&lt;P&gt; #include &amp;lt;linux/compiler.h&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;compilation terminated.&lt;/P&gt;&lt;P&gt;neo@neo-P45VA:~/fsl/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/imx-test/1_3.14.28-1.0.0-r0/imx-test-3.14.28-1.0.0/test/mxc_fb_test$ &lt;/P&gt;&lt;P&gt;==================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 06:14:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-unit-test-with-including-linux-file-manually-using/m-p/428269#M65074</guid>
      <dc:creator>yaolinchang</dc:creator>
      <dc:date>2015-08-11T06:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Building unit_test with including linux file manually using created toolchain</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-unit-test-with-including-linux-file-manually-using/m-p/428270#M65075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you install the toolchain successfully , I attach the toolchain release note to you, hope helpful for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 05:47:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-unit-test-with-including-linux-file-manually-using/m-p/428270#M65075</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2015-08-18T05:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Building unit_test with including linux file manually using created toolchain</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-unit-test-with-including-linux-file-manually-using/m-p/428271#M65076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 02:28:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-unit-test-with-including-linux-file-manually-using/m-p/428271#M65076</guid>
      <dc:creator>yaolinchang</dc:creator>
      <dc:date>2015-08-19T02:28:22Z</dc:date>
    </item>
  </channel>
</rss>

