<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>
import_package 'drivers/pcan_pcie_mini' <b>do</b> |pkg|<br>
Autoproj.message "Importing package PCI Express Mini"<br>
<b>def</b> pkg.do_build<br>
Autoproj.message "Something that should be noted about
package %s"<br>
run('build', Autobuild.tool(:make),
"-j#{parallel_build_level}", "-C", srcdir)<br>
<b>end</b><br>
<br>
<b>if </b>pkg.respond_to?(:progress_start) # newer
versions of autoproj<br>
Autoproj.message "Newer Autoproj version"<br>
pkg.post_install <b>do</b><br>
Autoproj.message "Something more that should be
noted about package %s"<br>
pkg.progress_start "building %s" <b>do</b><br>
pkg.do_build<br>
<b>end</b><b><br>
</b><b> end</b><br>
<b>else</b><br>
Autoproj.message "Older Autoproj version"<br>
pkg.post_install <b>do</b><br>
Autoproj.message "Something more that should be
noted about package %s"<br>
pkg.progress "building %s"<br>
pkg.do_build<br>
<b>end</b><br>
<b>end</b> #if else<br>
<br>
<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>
Which flavor of Rock do you want to use ? master<br>
Do you need compatibility with OCL ? (yes or no): false<br>
the target operating system for Orocos/RTT (gnulinux or
xenomai): gnulinux<br>
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>