<?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 Enabling &amp;quot;directfb.​h&amp;quot; for i.MX233 running L2.6.31. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156789#M2436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to try out DirectFB for my application - I have enabled the package in ltib (2.6.31) as well as run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;./ltib -p DirectFB.spec -f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and opened up the examples using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;./ltib --mode prep --pkg DirectFB-examples&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I don't seem to have "directfb.h" put onto my system.&amp;nbsp; Those were the only .spec files I could find with "DirectFB" in them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything else I should be doing to put the directfb.h into the include paths?&amp;nbsp; If this isn't showing up I'm wondering if the kernel is being built properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other anomaly that I see is that I don't have the &amp;lt;LTIB_PATH&amp;gt;/rpm/linux/include produced.&amp;nbsp; I did see it when I was working with the i.MX257 and its ltib but I don't here - could I have built it incorrectly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also curious as to what is the correct way to invoke an application which uses DirectFB?&amp;nbsp;&amp;nbsp;I'm curious because the input parameters (argc &amp;amp; argv) are passed to the &lt;STRONG&gt;DirectFBInit&lt;/STRONG&gt; function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, where can I find some good examples showing how to create DirectFB applications (especially using a touch screen)?&amp;nbsp; I have brought out the included examples (as you can see above) and have looked at the ones at DirectFB.org, but I'm wondering if there are any others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 18:44:36 GMT</pubDate>
    <dc:creator>myke_predko</dc:creator>
    <dc:date>2011-06-07T18:44:36Z</dc:date>
    <item>
      <title>Enabling "directfb.​h" for i.MX233 running L2.6.31.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156789#M2436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to try out DirectFB for my application - I have enabled the package in ltib (2.6.31) as well as run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;./ltib -p DirectFB.spec -f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and opened up the examples using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;./ltib --mode prep --pkg DirectFB-examples&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I don't seem to have "directfb.h" put onto my system.&amp;nbsp; Those were the only .spec files I could find with "DirectFB" in them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything else I should be doing to put the directfb.h into the include paths?&amp;nbsp; If this isn't showing up I'm wondering if the kernel is being built properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other anomaly that I see is that I don't have the &amp;lt;LTIB_PATH&amp;gt;/rpm/linux/include produced.&amp;nbsp; I did see it when I was working with the i.MX257 and its ltib but I don't here - could I have built it incorrectly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also curious as to what is the correct way to invoke an application which uses DirectFB?&amp;nbsp;&amp;nbsp;I'm curious because the input parameters (argc &amp;amp; argv) are passed to the &lt;STRONG&gt;DirectFBInit&lt;/STRONG&gt; function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, where can I find some good examples showing how to create DirectFB applications (especially using a touch screen)?&amp;nbsp; I have brought out the included examples (as you can see above) and have looked at the ones at DirectFB.org, but I'm wondering if there are any others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 18:44:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156789#M2436</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2011-06-07T18:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling "directfb.​h" for i.MX233 running L2.6.31.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156790#M2437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's good when I answer my own question; the execution parameters and their use are described here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.directfb.org/wiki/index.php/Configuring_DirectFB"&gt;http://www.directfb.org/wiki/index.php/Configuring_DirectFB&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still trying to figure out what I'm doing wrong with my set up so that I don't have directfb.h for the build.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 20:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156790#M2437</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2011-06-07T20:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling "directfb.​h" for i.MX233 running L2.6.31.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156791#M2438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia"&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm halfway there - I have created the &lt;STRONG&gt;directfb.h&lt;/STRONG&gt; file as well as am now able to compile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a lot of googling and searching, I:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Found a DirectFB patch which is part of the ltib tar file that&amp;nbsp;I think I have included in my build.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Reran &lt;STRONG&gt;./ltib -c&lt;/STRONG&gt; with DirectFB disabled to clear my previous work&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Ran &lt;STRONG&gt;./ltib -p tslib.spec -f&lt;/STRONG&gt; as this is the package which puts together the TSLIB functions as well as inserts&amp;nbsp;the DirectFB patch that is included in the ltib tar.&amp;nbsp; After doing this...&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Went back to &lt;STRONG&gt;./ltib -c&lt;/STRONG&gt; and re-enabled DirectFB and then built the kernel image and the boot stream.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one of the example DirectFB apps from the &lt;A href="http://www.directfb.org/" target="_blank"&gt;http://www.directfb.org&lt;/A&gt;&amp;nbsp;web site (the first one "DirectFB_Line") that I have set up as an Eclipse project for and added the directory &amp;lt;ltib_directory&amp;gt;/rootfs/usr/include/directfb and it seems to compile without any problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I have to figure out how to link.&amp;nbsp; I get two types of errors:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; In the form of: "&lt;STRONG&gt;warning: libz.so.1, needed by .../libdirectfg.so, not found (try using -rpath or -rpath-link)&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; "&lt;STRONG&gt;.../libdirectfb.so: undefined reference to 'fusion_arena_get_shared_field'&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;These errors don't make sense because the .so files are in &amp;lt;ltib_director&amp;gt;/rootfs/usr/lib which is referenced as one of the linker library source directories.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions that I can try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 04:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156791#M2438</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2011-06-08T04:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling "directfb.​h" for i.MX233 running L2.6.31.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156792#M2439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to successfully run ltib, build an application as well as debug using the cross-gdb tools on Eclipse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To properly build the kernel with DirectFB 1.4.9 (the latest version) you must (this was taken from the other thread where I was having problems getting DirectFB to build properly):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Execute &lt;STRONG&gt;./ltib -c&lt;/STRONG&gt; and make sure &lt;STRONG&gt;DirectFB&lt;/STRONG&gt; is not selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I would recommend executing &lt;STRONG&gt;./ltib -f&lt;/STRONG&gt; to make sure everything has been built without any possible lingering references to DirectFB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Copy &lt;STRONG&gt;DirectFB-1.4.9.tar.gz&lt;/STRONG&gt; (from &lt;STRONG&gt;&lt;A href="http://www.directfb.org/" target="_blank"&gt;http://www.directfb.org&lt;/A&gt;&lt;/STRONG&gt;) into the &lt;STRONG&gt;/opt/freescale/pkgs&lt;/STRONG&gt; directory of your (Linux) PC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Click on &lt;STRONG&gt;DirectFB-1.4.9.tar.gz&lt;/STRONG&gt; to bring up the extraction tool and double click on "&lt;STRONG&gt;configure&lt;/STRONG&gt;" to bring it up into the text editor. Find the statement with "&lt;STRONG&gt;ffast-math&lt;/STRONG&gt;" and add a "&lt;STRONG&gt;-lm&lt;/STRONG&gt;" link flag after it. This will eliminate the missing "&lt;STRONG&gt;sqrt&lt;/STRONG&gt;" errors. &lt;STRONG&gt;NOTE:&lt;/STRONG&gt; that when you save the file after the changes you will be prompted by the extraction tool to update the tar file - click to update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Repeat step 4 for "&lt;STRONG&gt;configure.in&lt;/STRONG&gt;" file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. Modify &lt;STRONG&gt;dist/lfs-5.1/DirectFB/DirectFB.spec&lt;/STRONG&gt; with the following changes:&lt;/P&gt;&lt;P&gt;a. Version should be &lt;STRONG&gt;1.4.9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;b. Delete the patches&lt;/P&gt;&lt;P&gt;c. Optionally remove the "/" characters (as they come out double when the build takes place) from the "export FREETYPE" statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7. Run &lt;STRONG&gt;./ltib -c&lt;/STRONG&gt; and select &lt;STRONG&gt;DirectFB&lt;/STRONG&gt;. The build should take place without errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After doing this, load the kernel and rfs onto the NAND Flash of your i.MX233 EVK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When building a DirectFB app, you must add the following flags to the Eclipse (Version 3.4) Project﻿ "&lt;STRONG&gt;Properties&lt;/STRONG&gt;" under "&lt;STRONG&gt;Miscellaneous&lt;/STRONG&gt;" which is under "&lt;STRONG&gt;GCC Linker&lt;/STRONG&gt;":&lt;/P&gt;&lt;P&gt;-lz&lt;/P&gt;&lt;P&gt;-ldirectfb&lt;/P&gt;&lt;P&gt;-lfusion&lt;/P&gt;&lt;P&gt;-ldirect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be honest, this has been successful once in a row, but I have been able to work through the &lt;STRONG&gt;DirectFB_Line&lt;/STRONG&gt; example app from &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;A href="http://www.directfb.org/" target="_blank"&gt;http://www.directfb.org&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; and I will go through additional example apps from the site as well as the "&lt;STRONG&gt;DirectFB-0.9.23-example&lt;/STRONG&gt;" Package that comes with ltib. I'm pretty sure this is correct as I have done numerous output captures and I was able to characterize the errors as well as when the application was working correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2011 05:26:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-quot-directfb-h-quot-for-i-MX233-running-L2-6-31/m-p/156792#M2439</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2011-06-25T05:26:06Z</dc:date>
    </item>
  </channel>
</rss>

