Patchwork qt-x11-free_7.7.2 fail configure missing qmake

login
register
mail settings
Submitter Eric BENARD
Date May 13, 2011, 7:35 p.m.
Message ID <4DCD881C.3080103@eukrea.com>
Download mbox | patch
Permalink /patch/3993/
State Superseded
Headers show

Comments

Eric BENARD - May 13, 2011, 7:35 p.m.
Hi,

> On 13/05/2011 16:28, Eivind Kvedalen wrote:
>> I get the same problem here when trying to compile qt4-embedded_4.7.2.bb.
>>
>> Build Configuration:
>> BB_VERSION = "1.10.2"
>> METADATA_BRANCH = "master"
>> METADATA_REVISION = "54ab33e"
>> TARGET_ARCH = "arm"
>> TARGET_OS = "linux-gnueabi"
>> MACHINE = "beagleboard"
>> DISTRO = "angstrom"
>> DISTRO_VERSION = "v2011.05"
>> TARGET_FPU = "hard"
>>
problem reproduced with a clean tmp.
this patch restore a part that 5a6efd58cdc85d08ab9e106c84bbac5110b5aecd 
removed in do_install which seems to be the root of the problem.

I'm testing and will send a clean patch if that works.

Eric

      done
Søren Holm - May 14, 2011, 12:36 a.m.
I'll test with a clean bui too adn report back.

Fredag den 13. maj 2011 21:35:56 skrev Eric Bénard:
> problem reproduced with a clean tmp.
> this patch restore a part that 5a6efd58cdc85d08ab9e106c84bbac5110b5aecd 
> removed in do_install which seems to be the root of the problem.
> 
> I'm testing and will send a clean patch if that works.
>
Simon Busch - May 15, 2011, 12:06 p.m.
On 13.05.2011 21:35, Eric Bénard wrote:
> Hi,
> 
>> On 13/05/2011 16:28, Eivind Kvedalen wrote:
>>> I get the same problem here when trying to compile
>>> qt4-embedded_4.7.2.bb.
>>>
>>> Build Configuration:
>>> BB_VERSION = "1.10.2"
>>> METADATA_BRANCH = "master"
>>> METADATA_REVISION = "54ab33e"
>>> TARGET_ARCH = "arm"
>>> TARGET_OS = "linux-gnueabi"
>>> MACHINE = "beagleboard"
>>> DISTRO = "angstrom"
>>> DISTRO_VERSION = "v2011.05"
>>> TARGET_FPU = "hard"
>>>
> problem reproduced with a clean tmp.
> this patch restore a part that 5a6efd58cdc85d08ab9e106c84bbac5110b5aecd
> removed in do_install which seems to be the root of the problem.

I tested this with

# bitbake qt4-native && bitbake qt4-x11-free

and both builds succceeded. Only the qt4-x11-free build prints some
WARNINGS I didn't discoverd before:


WARNING: the following files were installed but not shipped in any package:
WARNING:   /usr/imports/Qt/labs/particles/libqmlparticlesplugin.so
WARNING:   /usr/imports/Qt/labs/particles/qmldir
WARNING:   /usr/imports/Qt/labs/particles/.debug/libqmlparticlesplugin.so
WARNING:
/usr/imports/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.so
WARNING:   /usr/imports/Qt/labs/folderlistmodel/qmldir
WARNING:
/usr/imports/Qt/labs/folderlistmodel/.debug/libqmlfolderlistmodelplugin.so
WARNING:   /usr/imports/Qt/labs/gestures/libqmlgesturesplugin.so
WARNING:   /usr/imports/Qt/labs/gestures/qmldir
WARNING:   /usr/imports/Qt/labs/gestures/.debug/libqmlgesturesplugin.so
WARNING:   /usr/imports/QtWebKit/libqmlwebkitplugin.so
WARNING:   /usr/imports/QtWebKit/qmldir
WARNING:   /usr/imports/QtWebKit/.debug/libqmlwebkitplugin.so
WARNING:   /usr/lib/fonts/fontdir
WARNING:   /usr/lib/qt4/plugins/qmltooling/libtcpserver.so
WARNING:   /usr/lib/qt4/plugins/qmltooling/.debug/libtcpserver.so

As this are some quite relevant components (like the QML webkit plugin)
they should really get packaged by our qt4-x11-free recipe. Will see if
I have the time to provide a patch for this too.

Will send a patch with my changes to the qt4-native.inc file (which are
mostly the same as Eric did) after this mail.

regards,
Simon
Simon Busch - May 15, 2011, 12:15 p.m.
On 15.05.2011 14:06, Simon Busch wrote:
> On 13.05.2011 21:35, Eric Bénard wrote:
>> Hi,
>>
>>> On 13/05/2011 16:28, Eivind Kvedalen wrote:
>>>> I get the same problem here when trying to compile
>>>> qt4-embedded_4.7.2.bb.
>>>>
>>>> Build Configuration:
>>>> BB_VERSION = "1.10.2"
>>>> METADATA_BRANCH = "master"
>>>> METADATA_REVISION = "54ab33e"
>>>> TARGET_ARCH = "arm"
>>>> TARGET_OS = "linux-gnueabi"
>>>> MACHINE = "beagleboard"
>>>> DISTRO = "angstrom"
>>>> DISTRO_VERSION = "v2011.05"
>>>> TARGET_FPU = "hard"
>>>>
>> problem reproduced with a clean tmp.
>> this patch restore a part that 5a6efd58cdc85d08ab9e106c84bbac5110b5aecd
>> removed in do_install which seems to be the root of the problem.
> 
> I tested this with
> 
> # bitbake qt4-native && bitbake qt4-x11-free
> 
> and both builds succceeded. Only the qt4-x11-free build prints some
> WARNINGS I didn't discoverd before:
> 
> 
> WARNING: the following files were installed but not shipped in any package:
> WARNING:   /usr/imports/Qt/labs/particles/libqmlparticlesplugin.so
> WARNING:   /usr/imports/Qt/labs/particles/qmldir
> WARNING:   /usr/imports/Qt/labs/particles/.debug/libqmlparticlesplugin.so
> WARNING:
> /usr/imports/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.so
> WARNING:   /usr/imports/Qt/labs/folderlistmodel/qmldir
> WARNING:
> /usr/imports/Qt/labs/folderlistmodel/.debug/libqmlfolderlistmodelplugin.so
> WARNING:   /usr/imports/Qt/labs/gestures/libqmlgesturesplugin.so
> WARNING:   /usr/imports/Qt/labs/gestures/qmldir
> WARNING:   /usr/imports/Qt/labs/gestures/.debug/libqmlgesturesplugin.so
> WARNING:   /usr/imports/QtWebKit/libqmlwebkitplugin.so
> WARNING:   /usr/imports/QtWebKit/qmldir
> WARNING:   /usr/imports/QtWebKit/.debug/libqmlwebkitplugin.so
> WARNING:   /usr/lib/fonts/fontdir
> WARNING:   /usr/lib/qt4/plugins/qmltooling/libtcpserver.so
> WARNING:   /usr/lib/qt4/plugins/qmltooling/.debug/libtcpserver.so
> 
> As this are some quite relevant components (like the QML webkit plugin)
> they should really get packaged by our qt4-x11-free recipe. Will see if
> I have the time to provide a patch for this too.
> 
> Will send a patch with my changes to the qt4-native.inc file (which are
> mostly the same as Eric did) after this mail.

Hm, ok someone was fast than me and already commited the patch without
mention it here. Thanks Eric!

regards,
Simon

Patch

diff --git a/recipes/qt4/qt4-native.inc b/recipes/qt4/qt4-native.inc
index d99d9de..495a928 100644
--- a/recipes/qt4/qt4-native.inc
+++ b/recipes/qt4/qt4-native.inc
@@ -63,6 +63,18 @@  do_compile() {
  NATIVE_INSTALL_WORKS = "1"

  do_install() {
+    install -d ${D}${bindir}/
+    install -m 0755 bin/qmake ${D}${bindir}/qmake2
+    for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
+        install -m 0755 bin/${i} ${D}${bindir}/${i}4
+    done
+
+    install -d ${D}${datadir}/qt4/
+    cp -PfR mkspecs ${D}${datadir}/qt4/
+    ln -sf linux-g++ ${D}${datadir}/qt4/mkspecs/${BUILD_OS}-oe-g++
+    cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf 
${D}${datadir}/qt4/mkspecs/common/
+    install -m 0644 tools/porting/src/q3porting.xml ${D}${datadir}/qt4/
+
      for i in ${TOBUILD}; do
          cd ${S}/$i && oe_runmake install INSTALL_ROOT=${D}