<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi All,<br>
    <br>
    I want to import and build an existing CAN driver for PCI Express
    Mini into rock (from
    <a class="moz-txt-link-freetext" href="http://www.peak-system.com/fileadmin/media/linux/index.htm">http://www.peak-system.com/fileadmin/media/linux/index.htm</a>)<br>
    The driver has a pure makefile and therefore I am using the <b>import</b><b>_package</b>
    command of Autoproj.<br>
    Basically I am editing a libs.autobuild of my package_set. I am
    following the documentation on the website
(<a class="moz-txt-link-freetext" href="http://rock-robotics.org/master/documentation/autoproj/advanced/autobuild.html">http://rock-robotics.org/master/documentation/autoproj/advanced/autobuild.html</a>)<br>
    <br>
    I just have the very simple example code:<br>
    <br>
    <blockquote>in_flavor 'master', 'next', 'stable' <b>do</b><br>
      &nbsp;&nbsp;&nbsp; import_package 'drivers/pcan_pcie_mini' <b>do</b> |pkg|<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Autoproj.message "Importing package PCI Express Mini"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>def</b> pkg.do_build<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Autoproj.message "Something that should be noted about
      package %s"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; run('build', Autobuild.tool(:make),
      "-j#{parallel_build_level}", "-C", srcdir)<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>end</b><br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>if </b>pkg.respond_to?(:progress_start) # newer
      versions of autoproj<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Autoproj.message "Newer Autoproj version"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pkg.post_install <b>do</b><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Autoproj.message "Something more that should be
      noted about package %s"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pkg.progress_start "building %s" <b>do</b><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pkg.do_build<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>end</b><b><br>
      </b><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end</b><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>else</b><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Autoproj.message "Older Autoproj version"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pkg.post_install <b>do</b><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Autoproj.message "Something more that should be
      noted about package %s"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pkg.progress "building %s"<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pkg.do_build<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>end</b><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>end</b> #if else<br>
      <br>
      &nbsp;&nbsp;&nbsp; <b>end</b> #import_package<br>
      <b>end </b># in_flavor<br>
    </blockquote>
    <br>
    <br>
    And I get the following output:<br>
    <br>
    <blockquote>autoproj's main build configuration<br>
      &nbsp; Which flavor of Rock do you want to use ? master<br>
      &nbsp; Do you need compatibility with OCL ? (yes or no): false<br>
      &nbsp; the target operating system for Orocos/RTT (gnulinux or
      xenomai): gnulinux<br>
      &nbsp; which CORBA implementation should the RTT use ? omniorb<br>
      <b>Importing package PCI Express Mini</b><b><br>
      </b><b>Newer Autoproj version</b><br>
      <br>
      autoproj: importing and loading selected packages<br>
      autoproj: building and installing packages<br>
      <br>
      autodetected the shell to be bash, sourcing autoproj shell helpers<br>
      add "Autoproj.shell_helpers = false" in autoproj/init.rb to
      disable<br>
      autoproj: updated /home/jhidalgocarrio/exoter/dev/env.sh<br>
      Build finished successfully at 2014-02-11 17:31:28 +0100<br>
      <br>
    </blockquote>
    <br>
    Does anyone knows why is not entering on_build method? not even on
    the "Something that ..blabla" Autoproj.message to print on console?<br>
    <br>
    Thanks in advance,<br>
    <br>
    Javier.<br>
    <br>
    <br>
    <br>
  </body>
</html>