<?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>2059</bug_id>
          
          <creation_ts>2012-03-07 07:05:58 +0000</creation_ts>
          <short_desc>Fail to build project based on Clutter with taget arch arm/mips/ppc</short_desc>
          <delta_ts>2012-04-17 02:11:57 +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.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P3) Development (100% complete) - patch submitted</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongna Xu">hongnax.xu</reporter>
          <assigned_to name="Joshua Lock - Disabled">josh</assigned_to>
          <cc>edwin.zhai</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>lianhao.lu</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>18889</commentid>
    <comment_count>0</comment_count>
    <who name="Hongna Xu">hongnax.xu</who>
    <bug_when>2012-03-07 07:05:58 +0000</bug_when>
    <thetext>When cross building clutter based applications against core-image-sato-sdk, it will fail beging reported &quot;fatal error: clutter/clutter.h: No such file or directory&quot;. The error is caused by the missing gl.pc in the target rootfs.  

When running &quot;pkg-config --cflags clutter-1.0&quot;, i got the log below:
******************************************
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc&apos;
to the PKG_CONFIG_PATH environment variable
Package &apos;gl&apos;, required by &apos;Clutter&apos;, not found
******************************************

Branch:poky/1.2_M3
CommitId: 320558f494c618f53e0c773db3ea0109476e8359</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18893</commentid>
    <comment_count>1</comment_count>
    <who name="jiajun">jiajun.xu</who>
    <bug_when>2012-03-07 07:43:47 +0000</bug_when>
    <thetext>It&apos;s developer&apos;s responsibility to change the field &quot;Target Milestone&quot;, which indicates the deadline for bug fixing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18917</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-03-08 19:19:07 +0000</bug_when>
    <thetext>Looks like packaging issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19775</commentid>
    <comment_count>3</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2012-04-01 10:38:43 +0000</bug_when>
    <thetext>The package mesa-dri-dev which contains the gl.pc is installed on qemux86/qemux86-64, but not on qemuarm/qemuppc. 

I guess the reason is in the difference of choosing XSERVER between IA and non-IA. On IA, we choose XSERVER xserver-xorg while on non-IA we use xserver-kdrive-fbdev.
The xserver-xorg-dev will &quot;recommend&quot; mesa-dri-dev, which brings in the gl.pc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19805</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-03 00:14:13 +0000</bug_when>
    <thetext>I don&apos;t know what provides GL on platforms with kdrive x server but I&apos;d guess kdrive isn&apos;t linking to it directly and therefore the dependency isn&apos;t being correctly encoded.

I&apos;ll run some builds and try and find more information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19918</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-04 22:14:35 +0000</bug_when>
    <thetext>Can you provide reproducer steps please?

So far as I can tell you&apos;re using the ADT with a core-image-sato-sdk image to cross-compile clutter applications for arm/mips/ppc targets?

It&apos;d be really useful to have more detail before I spend time setting up to debug and test this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19919</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-04 22:16:18 +0000</bug_when>
    <thetext>Edwin, this seems like an X issue - can you comment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19929</commentid>
    <comment_count>7</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2012-04-05 06:26:35 +0000</bug_when>
    <thetext>See my fix for gl on qemuarm/mips/ppc.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5cdb58f683d76e4008eae2f8afa2314824a74966

The mesa lib for xserver-kdrive is mesa-xlib. You can check if it is installed in core-image-sato-sdk after my fix.

Thanks,
Edwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19976</commentid>
    <comment_count>8</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-06 00:33:19 +0000</bug_when>
    <thetext>The gl.pc file was being included in mesa-$variant-dev, not in libgl-dev. Patch submitted to package it with libgl-dev.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20184</commentid>
    <comment_count>9</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-11 15:06:13 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=73e3fd88b43e632f8bf93ca7af67aec0a7faf393</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20491</commentid>
    <comment_count>10</comment_count>
    <who name="Hongna Xu">hongnax.xu</who>
    <bug_when>2012-04-17 02:11:57 +0000</bug_when>
    <thetext>Verify and fixed on 1.2M4 rc3 testing.
Tree/Branch: Poky/1.2_M4
Commit id: fae1c7a5fdcea199338b5f91efaafd7c72aec5dd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>