<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 08.07.2013 19:22, Sascha Arnold wrote:
    <blockquote cite="mid:51DAF550.9090906@dfki.de" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <meta http-equiv="CONTENT-TYPE" content="text/html;
        charset=ISO-8859-1">
      <p style="margin-bottom: 0cm;" lang="en-US">Hi,<br>
        I need to override two packages in the spacebot package set
        normally provided in the rock package set.<br>
        <br>
        I already overrode them in the source.yml and also applied own
        patches.<br>
        So far it works, but then it won't apply the flags defined in
        cmake_package in libs.autobuild witch are still defined in rock.<br>
        And if I redefine them in the libs.autobuild of the spacebot
        package set I get the message that I have two definitions and
        that the one from rock will be used.<br>
        <br>
        So the question is now how can I force it to use the definition
        from spacebot? Or is there a even better way?<br>
        <br>
        I need that for g2o and pcl. I already found out that I can also
        set the CMake Flags in the overrides.rb, but for the pcl lib
        this line "env_add 'PKG_CONFIG_PATH', File.join(pkg.prefix,
        'lib64', 'pkgconfig')" is also needed to find the local flann
        library and I have no clue how to add that in the overrides.rb..<br>
      </p>
    </blockquote>
    <br>
    I think overriding it inside the overrides.rb is the better way.<br>
    Take an look to the autobuild/automake api if you can cover this.<br>
    <br>
    For the building step you can simply add the environment variable
    globally like:<br>
    <br>
    Autoproj.env_add
    "PATH",File.join(Autoproj.root_dir,"install","x86_64-linux-gnu","bin")<br>
    <br>
    If you need this only for one package you could also do something
    like this.<br>
    <br>
    Autoproj.manifest.package(your_pacakge_name) do |pkg|<br>
    &nbsp;&nbsp;&nbsp; pkg.depends_on 'external/gcc'<br>
    &nbsp;&nbsp;&nbsp; pkg.using[:automake] = false<br>
    &nbsp;&nbsp;&nbsp; pkg.using[:autoconf] = false<br>
    &nbsp;&nbsp;&nbsp; pkg.using[:autogen] = false<br>
    &nbsp;&nbsp;&nbsp; pkg.using[:aclocal] = false<br>
    &nbsp;&nbsp;&nbsp; pkg.using[:libtool] = false<br>
    &nbsp;&nbsp;&nbsp; pkg.depends_on 'external/gcc'<br>
    <br>
    &nbsp;&nbsp; def pkg.do_build<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENV['TARGET'] = "#{user_config('target')}-g++"<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENV['CXX'] = "#{user_config('target')}-g++"<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENV['CC'] = "#{user_config('target')}-gcc"<br>
    &nbsp;&nbsp; end<br>
    end<br>
    <br>
    <br>
    Hope this helps...<br>
    <br>
    Matthias<br>
    <br>
    <br>
    <blockquote cite="mid:51DAF550.9090906@dfki.de" type="cite">
      <p style="margin-bottom: 0cm" lang="en-US"> <br>
        Best,<br>
        Sascha</p>
      <title></title>
      <meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
      <style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
        -->
        </style> <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Rock-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rock-dev@dfki.de">Rock-dev@dfki.de</a>
<a class="moz-txt-link-freetext" href="http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev">http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
 Dipl.-Inf. Matthias Goldhoorn 
 Space and Underwater Robotic

 Universit&auml;t Bremen
 FB 3 - Mathematik und Informatik
 AG Robotik
 Robert-Hooke-Stra&szlig;e 5
 28359 Bremen, Germany

 Tel.:     +49 421 178 45-4193
 Zentrale: +49 421 178 45-6550
 Fax:      +49 421 178 45-4150
 E-Mail:   <a class="moz-txt-link-abbreviated" href="mailto:matthias.goldhoorn@uni-bremen.de">matthias.goldhoorn@uni-bremen.de</a>

 Weitere Informationen: <a class="moz-txt-link-freetext" href="http://www.informatik.uni-bremen.de/robotik">http://www.informatik.uni-bremen.de/robotik</a></pre>
  </body>
</html>