<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5339</bug_id>
          
          <creation_ts>2013-10-11 12:49:44 +0000</creation_ts>
          <short_desc>Generated toolchain not working outside default installation path</short_desc>
          <delta_ts>2013-10-30 07:52:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.4.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.4.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Sueiro">diego.sueiro</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37844</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Sueiro">diego.sueiro</who>
    <bug_when>2013-10-11 12:49:44 +0000</bug_when>
    <thetext>When installing a generated toolchain outside of it&apos;s default path all binaries have the default absolute path to the dynamic loader (/opt/poky/...) hardcoded in the elf INTERP section.
This issue was detected when trying to use the meta-toolchain-qte with QT Creator and was reproduced on danny and dylan branches.

Here is some additional info about it:
https://lists.yoctoproject.org/pipermail/yocto/2013-October/018637.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38215</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-10-28 13:44:22 +0000</bug_when>
    <thetext>Apparently, the paths where QT looks for stuff (libraries, headers, etc) are hard-coded in qmake. A simple &apos;strings qmake | grep poky&apos; reveals the following:

qt_demopath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/demos
qt_xmplpath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/examples
qt_trnspath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/translations
qt_datapath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr
qt_impspath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/imports
qt_plugpath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/plugins
qt_binspath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin
qt_libspath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib
qt_hdrspath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/include
qt_docspath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/doc
qt_prfxpath=/opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr

These can also be seen by executing &apos;qmake -query&apos;. Luckily, QT allows overriding these paths by providing a qt.conf file in the same directory with qmake. The following qt.conf made it work (replace PATH_TO_MY_SDK_DIR with the path to your sdk installation dir):
-------------
[Paths]
Prefix = &lt;PATH_TO_MY_SDK_DIR&gt;/sysroots/x86_64-pokysdk-linux/usr
-------------

qt-creator didn&apos;t complain anymore. I&apos;ll prepare a fix for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38225</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-10-28 15:48:04 +0000</bug_when>
    <thetext>Sent a fix on the oe-core mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38289</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-10-30 07:52:27 +0000</bug_when>
    <thetext>Patches merged:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=60e271a3cdb00f46446e9839293cf0f9dba76428
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8f431d070c61ee0d2fe8e9d10a9b102e9770de49</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>