<?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>4575</bug_id>
          
          <creation_ts>2013-05-30 02:44:17 +0000</creation_ts>
          <short_desc>qt-mobility: qmetaobjectbuilder fails to build</short_desc>
          <delta_ts>2014-03-03 01:50:46 +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>core</component>
          <version>1.4</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.6 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wenzong.Fan">wenzong.fan</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>Martin.Jansa</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>wenzong.fan</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33379</commentid>
    <comment_count>0</comment_count>
    <who name="Wenzong.Fan">wenzong.fan</who>
    <bug_when>2013-05-30 02:44:17 +0000</bug_when>
    <thetext>This is a known issue on upstream:
https://bugreports.qt-project.org/browse/QTMOBILITY-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

And has been fixed by:
http://qt.gitorious.org/qt-mobility/qt-mobility/commit/f102053b28009b3094b0e5777177208afa6097c5

Reproduce steps in Yocto:
1) Add below lines to local.conf:
# Remove &apos;-fpermissive&apos; option from CXXFLAGS
export BUILD_CXXFLAGS = &quot;${BUILD_CFLAGS}&quot;
export TARGET_CXXFLAGS = &quot;${TARGET_CFLAGS}&quot;

2) bitbake qt-mobility-x11 &amp;&amp; bitbake qt-mobility-embedded

3) Error messages:
ipc/qmetaobjectbuilder.cpp:803:65: error: invalid conversion from &apos;QMetaObjectExtraData::StaticMetacallFunction {aka void (*)(QObject*, QMetaObject::Call, int, void**)} &apos; to &apos;QtMobility::QMetaObjectBuilder::StaticMetacallFunction {aka int (*)(QMetaObject::Call, int, void**)} 

We should backport the upstream patches to Yocto.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34209</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-06-28 09:38:55 +0000</bug_when>
    <thetext>If keep &apos;-fpermissive&apos; option, the above diagnostics about
nonconformant code from errors to warnings as following:
...
ipc/qmetaobjectbuilder.cpp:803:65: warning: invalid conversion from
&apos;QMetaObjectExtraData::StaticMetacallFunction {aka void (*)(QObject*,
QMetaObject::Call, int, void**)}&apos; to &apos;QtMobility::QMetaObjectBuilder
::StaticMetacallFunction {aka int (*)(QMetaObject::Call, int, void*
*)}&apos; [-fpermissive]
...

Hi Saul,

Should we fix the conversion warning in this situation? Or just keep
option &apos;-fpermissive&apos; as where it is.

If choose to fix the conversion warning, there is already a patch in
oe-core to fix this:
http://qt.gitorious.org/qt-mobility/qt-mobility/commit/f102053b28009b3094b0e5777177208afa6097c5 

If not, I will close this bug.

Thanks,
Hongxu</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34210</commentid>
    <comment_count>2</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-06-28 09:42:21 +0000</bug_when>
    <thetext>
&gt; http://qt.gitorious.org/qt-mobility/qt-mobility/commit/
&gt; f102053b28009b3094b0e5777177208afa6097c5 
&gt; 

http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/qt-mobility 

//Hongxu</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34243</commentid>
    <comment_count>3</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-06-29 05:42:10 +0000</bug_when>
    <thetext>Hi Paul,

What&apos;s your suggestions about the above question?

Thanks,
Hongxu</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34288</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-07-02 22:05:53 +0000</bug_when>
    <thetext>I&apos;m OK with Wenzong&apos;s backported patch linked above, although it is a bit large.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40733</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2014-02-27 09:56:22 +0000</bug_when>
    <thetext>If you know about qt-mobility, can you please also check:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5414</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40815</commentid>
    <comment_count>6</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-03-03 01:50:46 +0000</bug_when>
    <thetext>Merged into master:

commit ae59f6ff20a6ccbf12bc030f250baffc384042f2
Author: Hongxu Jia &lt;hongxu.jia@windriver.com&gt;
Date:   Thu Feb 27 17:32:19 2014 +0800

    qt-mobility: fix metaobjectbuilder build errors</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>