<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 11.06.2015 21:10, Stefan Herbrechtsmeier wrote:<br>
    <blockquote cite="mid:5579DD2D.10104@herbrechtsmeier.net"
      type="cite">Am 10.06.2015 um 09:36 schrieb Moritz Blume:
      <br>
      <blockquote type="cite">Patches "qt4-fail-silent.patch" and
        "support-oe-qt4-tools-names.patch"
        <br>
        were adapted in order to fit to CMake 3.2.2 (refer to the commit
        <br>
        message in the respective patch for details).
        <br>
        Patch "cmake-2.8.11.2-FindFreetype.patch" was dropped since it
        was
        <br>
        rejected upstream and its functionality otherwise implemented in
        the
        <br>
        meantime.
        <br>
        <br>
        Note that CMake 3 needs to have the full compiler path in the
        toolchain
        <br>
        file (see cmake.bbclass).
        <br>
      </blockquote>
      Why is the full path needed?
      <br>
    </blockquote>
    <br>
    <a class="moz-txt-link-freetext" href="https://public.kitware.com/Bug/view.php?id=15251">https://public.kitware.com/Bug/view.php?id=15251</a><br>
    <br>
    "Having a full path to the compiler is a new requirement starting in
    CMake 3.0. The incompatibility was introduced across a major version
    number bump and is considered acceptable. The project will have to
    be fixed to use a full path."<br>
    <br>
    Without a full path, you get the following error message:<br>
    <br>
    <font size="3">CMake Error at CMakeLists.txt:5 (project):<br>
      | The CMAKE_C_COMPILER:<br>
      | <br>
      | gcc<br>
      | <br>
      | is not a full path and was not found in the PATH.<br>
      | <br>
      | Tell CMake where to find the compiler by setting either the
      environment<br>
      | variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the
      full path to<br>
      | the compiler, or to the compiler name if it is in the PATH.</font><br>
    <br>
    <blockquote cite="mid:5579DD2D.10104@herbrechtsmeier.net"
      type="cite">
      <br>
      Have you try to add STAGING_BINDIR_TOOLCHAIN to the
      CMAKE_FIND_ROOT_PATH?
      <br>
    </blockquote>
    <br>
    I don't understand, is this related to the compiler path?<br>
    <br>
    <blockquote cite="mid:5579DD2D.10104@herbrechtsmeier.net"
      type="cite">
      <br>
      &lt;snip&gt;
      <br>
      <br>
      <blockquote type="cite">diff --git a/meta/classes/cmake.bbclass
        b/meta/classes/cmake.bbclass
        <br>
        index 1ebb936..c97fd02 100644
        <br>
        --- a/meta/classes/cmake.bbclass
        <br>
        +++ b/meta/classes/cmake.bbclass
        <br>
        @@ -10,9 +10,11 @@ CCACHE = ""
        <br>
          # We want the staging and installing functions from autotools
        <br>
          inherit autotools
        <br>
          -# C/C++ Compiler (without cpu arch/tune arguments)
        <br>
        -OECMAKE_C_COMPILER ?= "`echo ${CC} | sed 's/^\([^ ]*\).*/\1/'`"
        <br>
        -OECMAKE_CXX_COMPILER ?= "`echo ${CXX} | sed 's/^\([^
        ]*\).*/\1/'`"
        <br>
        +# Full path to C/C++ Compiler (without cpu arch/tune arguments)
        <br>
        +C_COMPILER = "$(echo ${CC} | sed 's/^\([^ ]*\).*/\1/')"
        <br>
        +CXX_COMPILER = "$(echo ${CXX} | sed 's/^\([^ ]*\).*/\1/')"
        <br>
        +OECMAKE_C_COMPILER ?= "$(which ${C_COMPILER})"
        <br>
        +OECMAKE_CXX_COMPILER ?= "$(which ${CXX_COMPILER})"
        <br>
          OECMAKE_AR ?= "${AR}"
        <br>
      </blockquote>
      Why you don't use the full path for AR?
      <br>
      <br>
    </blockquote>
    <br>
    It is not required to have a full path here...<br>
    <pre class="moz-signature" cols="72">-- 
BMW Car IT GmbH
Dr. Moritz Blume
Spezialist Entwicklung
Petuelring 116
80809 München

Tel.: ­+49 89 189311-25
Fax:  +49 89 189311-20
Mail: <a class="moz-txt-link-abbreviated" href="mailto:moritz.blume@bmw-carit.de">moritz.blume@bmw-carit.de</a>
Web: <a class="moz-txt-link-freetext" href="http://www.bmw-carit.de">http://www.bmw-carit.de</a>

-------------------------------------------------------------
BMW Car IT GmbH
Geschäftsführer: Michael Würtenberger und Reinhard Stolle
Sitz und Registergericht: München HRB 134810
------------------------------------------------------------
</pre>
  </body>
</html>