<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Norman,<br>
    <br>
    You only really need to use a recipe if you want to have bitbake
    build the package for you, which is ultimately good in order to
    automate the installation of that package and dependencies of it
    with the generated image.<br>
    <br>
    If in the short term you want to build a Makefile (or use
    Autotools), and run it on a Yocto-generated filesystem, then you can
    build an environment script that can be sourced:<br>
    <br>
    > bitbake meta-ide-support<br>
    <br>
    ...wait for it to complete...<br>
    <br>
    > source tmp/environment-blah-blah-blah<br>
    <br>
    This sets up all of the PATH and toolchain settings to your Yocto
    sysroots that can used by most well-behaved makefiles.<br>
    <br>
    > cd <your gstreamer application project directory><br>
    > make<br>
    <br>
    Then you can copy the generated binaries to your Yocto rootfs, or
    use Eclipse with RSE to do it via SSH/SCP.<br>
    <br>
    Here is an example Makefile I use to build a gstreamer application I
    have called videoserver.  It is not the prettiest thing, I know.  It
    works, though.  Note the use of pkg-config, which automatically
    feeds the library include file and location information to the CC
    line.<br>
    <br>
    #<br>
    # Makefile<br>
    #<br>
    <br>
    BINDIR = bin<br>
    SRCDIR = src<br>
    INCLUDEDIR = include<br>
    SRCS = $(SRCDIR)/videoserver.c<br>
    OUTNAME = videoserver<br>
    OBJS = $(SRCS:.c*=.o)<br>
    <br>
    # Target Cross Tools<br>
    CC = $(CROSS_COMPILE)gcc<br>
    PKG_CFG_STRING=$(shell pkg-config --cflags --libs gstreamer-0.10
    libconfig)<br>
    CFLAGS += -I$(INCLUDEDIR)<br>
    <br>
    # Debugging<br>
    ifdef DEBUG<br>
    CFLAGS += -DDEBUG -O0 -g<br>
    endif<br>
    <br>
    all: $(OUTNAME)<br>
            <br>
    $(OUTNAME) : $(OBJS) Makefile<br>
            $(CC) $(CFLAGS) $(SRCDIR)/videoserver.c -o
    $(BINDIR)/videoserver $(PKG_CFG_STRING) $(LDFLAGS)<br>
    <br>
    .PHONY : clean<br>
            <br>
    clean:<br>
            @rm -f $(BINDIR)/$(OUTNAME)<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 11/7/13 2:31 PM, br jer wrote:<br>
    </div>
    <blockquote
cite="mid:CAHWZUV93_eMiobgGMa9t5r89xkJTH2vjTVqia3Xb=AUPC=hsEg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Daiane,
        <div><br>
        </div>
        <div>
          <div>Thanks for sending my the examples, I am sorry that I am
            not grasping the examples.</div>
          <div><br>
          </div>
          <div>Looking at the "tiny example" below, it inherits
            autotools, so that is good, as I am using autools in my
            project to generate Makefile as well.</div>
          <div><br>
          </div>
          <div>My questions: </div>
          <div>- Where in this recipe below points to my project
            directory?</div>
          <div>- Is ${FSL_MIRROR}/${PN} where I place my project?  Or </div>
          <div>- where in the build/tmp/work/... area should I place my
            project? In my case, what environment variables shall I use?</div>
          <div><br>
          </div>
          <div>How can I skip the SRC_URI checksums?  I don't need that
            as I am placing trusted source in the the tree.</div>
          <div><br>
          </div>
          <div>Would BB automatically run ./configure , make and make
            install ?</div>
          <div><br>
          </div>
          <div>How would this recipe get called ? entry in my
            conf.local?</div>
          <div><br>
          </div>
          <div>Many Thanks,</div>
          <div><br>
          </div>
          <div>Norman</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div># Copyright (C) 2013 Freescale Semiconductor</div>
          <div># Released under the MIT license (see COPYING.MIT for the
            terms)</div>
          <div>DESCRIPTION = "Freescale Multimedia VPU wrapper"</div>
          <div>DEPENDS = "imx-vpu"</div>
          <div>LICENSE = "Proprietary"</div>
          <div>SECTION = "multimedia"</div>
          <div>LIC_FILES_CHKSUM =
            <a class="moz-txt-link-rfc2396E" href="file://EULA.txt;md5=93b784b1c11b3fffb1638498a8dde3f6">"file://EULA.txt;md5=93b784b1c11b3fffb1638498a8dde3f6"</a></div>
          <div><br>
          </div>
          <div># FIXME: Inspecting the source code the content is in
            fact 1.0.40</div>
          <div>SRC_URI = "${FSL_MIRROR}/${PN}-<a moz-do-not-send="true"
              href="tel:3.10.9-1.0.0" value="+13109100" target="_blank">3.10.9-1.0.0</a>.bin;fsl-eula=true"</div>
          <div>SRC_URI[md5sum] = "25891ef8d92e82d9b2e999a74a327971"</div>
          <div>SRC_URI[sha256sum] =
            "84d610c478963e7b6a9660a38547b5365ca910159972b3860d7356aee33b9b41"</div>
          <div><br>
          </div>
          <div>S = "${WORKDIR}/${PN}-<a moz-do-not-send="true"
              href="tel:3.10.9-1.0.0" value="+13109100" target="_blank">3.10.9-1.0.0</a>"</div>
          <div><br>
          </div>
          <div>inherit fsl-eula-unpack autotools pkgconfig</div>
          <div><br>
          </div>
          <div>do_install_append() {</div>
          <div>    # FIXME: Drop examples for now</div>
          <div>    rm -r ${D}${datadir}/imx-mm</div>
          <div>}</div>
          <div><br>
          </div>
          <div>PACKAGE_ARCH = "${MACHINE_ARCH}"</div>
          <div>COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6s)"</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Thu, Nov 7, 2013 at 4:50 AM, Daiane
          Angolini <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:daiane.angolini@freescale.com"
              target="_blank">daiane.angolini@freescale.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div class="HOEnZb">
              <div class="h5">On 07-11-2013 02:16, br jer wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  I am using the "master" branch of Yocto.  I have a
                  gstreamer application<br>
                  that is compiled and tested on Ubuntu.  I have a
                  Makefile for this<br>
                  application.  The Yocto build I use fsl-image-test and
                  added a few<br>
                  plugins in my conf.local.  I have tested all the
                  plugins/pipeline that<br>
                  is needed for this app with gst-launch.<br>
                  <br>
                  I just want to run a quick test of the code on the
                  wandboard,  what is<br>
                  the fastest way to do a make and produce a executable
                  ?  I looked at the<br>
                  Yocto manual and it seems that it calls for creating a
                  recipe etc.  Is<br>
                  there a simple template that I can use?<br>
                </blockquote>
                <br>
              </div>
            </div>
            You can try to use your already built binary into any
            rootfs.<br>
            <br>
            If you decide to try to make the recipe, you can share here
            your problems, but, please take care of proprietary stuff.<br>
            <br>
            You can try at first an tiny example:<br>
            <a moz-do-not-send="true"
href="http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.40.bb?h=master-next&id=9135a32b50800cac2c3feb0bac1f19c3d6743add"
              target="_blank">http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.40.bb?h=master-next&id=9135a32b50800cac2c3feb0bac1f19c3d6743add</a><br>
            <br>
            <br>
            and then go to a more complex one:<br>
            <br>
            <a moz-do-not-send="true"
href="http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-multimedia/gst-plugins/gst-fsl-plugin_3.0.9.bb?h=master-next&id=9135a32b50800cac2c3feb0bac1f19c3d6743add"
              target="_blank">http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-multimedia/gst-plugins/gst-fsl-plugin_3.0.9.bb?h=master-next&id=9135a32b50800cac2c3feb0bac1f19c3d6743add</a><br>
            <br>
            <br>
            Daiane<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <br>
              Thanks,<br>
              Norman<br>
              <br>
              <br>
              _______________________________________________<br>
              meta-freescale mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:meta-freescale@yoctoproject.org"
                target="_blank">meta-freescale@yoctoproject.org</a><br>
              <a moz-do-not-send="true"
                href="https://lists.yoctoproject.org/listinfo/meta-freescale"
                target="_blank">https://lists.yoctoproject.org/listinfo/meta-freescale</a><br>
              <br>
              <span class="HOEnZb"><font color="#888888">
                </font></span></blockquote>
            <span class="HOEnZb"><font color="#888888">
                <br>
                <br>
                -- <br>
                Daiane<br>
                <br>
              </font></span></blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
meta-freescale mailing list
<a class="moz-txt-link-abbreviated" href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a>
<a class="moz-txt-link-freetext" href="https://lists.yoctoproject.org/listinfo/meta-freescale">https://lists.yoctoproject.org/listinfo/meta-freescale</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>