<?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>3409</bug_id>
          
          <creation_ts>2012-11-12 16:02:56 +0000</creation_ts>
          <short_desc>meta-toolchain-qte fails to find c++ headers when relocated</short_desc>
          <delta_ts>2012-11-26 09:36:42 +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.3</version>
          <rep_platform>x86</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>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Bénard">eric</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>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27361</commentid>
    <comment_count>0</comment_count>
      <attachid>938</attachid>
    <who name="Eric Bénard">eric</who>
    <bug_when>2012-11-12 16:02:56 +0000</bug_when>
    <thetext>Created attachment 938
qt helloworld

After compiling meta-toolchain-qte with danny for an armv7 :

- if I install the sdk in $HOME/WORK/test/sdk
then I try to compile a helloworld QT project with qmake, make, that fails with :
/home/ebenard/WORK/test/sdk/sysroots/armv7a-vfp-neon-oe-linux-gnueabi//usr/include/qtopia/QtCore/qglobal.h:68:21: fatal error: algorithm: No such file or directory
of course the file is there.

- if I install the sdk in /usr/local/oecore-x86_64/
then the same project compiles fine (and runs fine on the target).

so it seems there is an issue to find the headers when the SDK is relocated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27633</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-11-23 08:38:07 +0000</bug_when>
    <thetext>You&apos;re probably missing the --sysroot option. I compiled your application just fine with the following line:

$ $CXX -I$OE_QMAKE_INCDIR_QT -I$OE_QMAKE_INCDIR_QT/QtGui -L$OE_QMAKE_LIBDIR_QT $OE_QMAKE_LDFLAGS -o test test.cpp -lQtGuiE -lQtCoreE

$CXX has the --sysroot included. However, $OE_QMAKE_CXX doesn&apos;t. So, you&apos;ll have to provide it the --sysroot option. If the --sysroot is missing then I get the error you specified in the bug description.

Install in the default location will work because the toolchain has been compiled with a default sysroot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27636</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Bénard">eric</who>
    <bug_when>2012-11-23 08:41:16 +0000</bug_when>
    <thetext>Shouldn&apos;t we expect the --sysroot option to be automatically added in
the SDK&apos;s environment variables when relocating it so that the end user
doesn&apos;t have to take care of that ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27637</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-11-23 08:53:32 +0000</bug_when>
    <thetext>CXX variable has --sysroot included. This is not a relocation issue. This is just OE_QMAKE_CXX/OE_QMAKE_CC not including the --sysroot option. I&apos;ll send a patch for that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27638</commentid>
    <comment_count>4</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-11-23 08:57:13 +0000</bug_when>
    <thetext>Even though this has nothing to do with relocating the SDK, I agree that the --sysroot has to ba included. So, reopening the issue and will send a patch shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27639</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Bénard">eric</who>
    <bug_when>2012-11-23 08:57:58 +0000</bug_when>
    <thetext>OK thanks I understand better now and sorry for the wrong diagnotic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27653</commentid>
    <comment_count>6</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-11-23 13:22:47 +0000</bug_when>
    <thetext>Patch for adding --sysroot to OE_QMAKE_CC/OE_QMAKE_CXX was sent to the mailing list. Review pending...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27676</commentid>
    <comment_count>7</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-11-26 09:36:42 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a68c456e851023606c882f287a398bbaba16f298</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>938</attachid>
            <date>2012-11-12 16:02:56 +0000</date>
            <delta_ts>2012-11-12 16:02:56 +0000</delta_ts>
            <desc>qt helloworld</desc>
            <filename>file_3409.txt</filename>
            <type>text/plain</type>
            <size>375</size>
            <attacher name="Eric Bénard">eric</attacher>
            
              <data encoding="base64">bWFpbi5jcHAgOg0KDQogI2luY2x1ZGUgPFFBcHBsaWNhdGlvbj4NCiAjaW5jbHVkZSA8UVB1c2hC
dXR0b24+DQoNCiBpbnQgbWFpbihpbnQgYXJnYywgY2hhciAqYXJndltdKQ0KIHsNCiAgICAgUUFw
cGxpY2F0aW9uIGFwcChhcmdjLCBhcmd2KTsNCg0KICAgICBRUHVzaEJ1dHRvbiBoZWxsbygiSGVs
bG8gd29ybGQhIik7DQogICAgIGhlbGxvLnJlc2l6ZSgxMDAsIDMwKTsNCg0KICAgICBoZWxsby5z
aG93KCk7DQogICAgIHJldHVybiBhcHAuZXhlYygpOw0KIH0NCg0KdGVzdC5wcm8gOg0KDQpURU1Q
TEFURSA9IGFwcA0KVEFSR0VUID0gDQpERVBFTkRQQVRIICs9IC4NCklOQ0xVREVQQVRIICs9IC4N
Cg0KIyBJbnB1dA0KU09VUkNFUyArPSBtYWluLmNwcA0K
</data>

          </attachment>
      

    </bug>

</bugzilla>