Skip to contentSkip to conversation

qt4e.bbclass: export OE_QMAKE_QT_CONFIG

PATCH In review Jonathan Liu 4 participants 9 messages Jun 14, 2013 – Jun 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt4e.bbclass: export OE_QMAKE_QT_CONFIG

The class is inheriting qmake2.bbclass which exports OE_QMAKE_QT_CONFIG pointing to the qt4 qconfig.pri when it should be pointing to the qt4-embedded qconfig.pri.

---
 meta/classes/qt4e.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/qt4e.bbclass +1 -0
index de2a68d..13b1050 100644
@@ -9,6 +9,7 @@ QT_LIBINFIX = "E"
 # override variables set by qmake-base to compile Qt/Embedded apps
 #
 export QMAKESPEC = "${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/${TARGET_OS}-oe-g++"
+export OE_QMAKE_QT_CONFIG = "${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/qconfig.pri"
 export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/${QT_DIR_NAME}"
 export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
 export OE_QMAKE_LIBS_QT = "qt"
Signature · 1 line
1.8.3
#1 lore raw
Quoted 14 lines · Jonathan Liu

The class is inheriting qmake2.bbclass which exports OE_QMAKE_QT_CONFIG pointing to the qt4 qconfig.pri when it should be pointing to the qt4-embedded qconfig.pri.

---
  meta/classes/qt4e.bbclass | 1 +
  1 file changed, 1 insertion(+)
meta/classes/qt4e.bbclass +0 -0
index de2a68d..13b1050 100644

meta/classes/qt4e.bbclass QT_LIBINFIX = "E" · line 15

Quoted 7 lines
meta/classes/qt4e.bbclass +1 -0
@@ -9,6 +9,7 @@ QT_LIBINFIX = "E"
  # override variables set by qmake-base to compile Qt/Embedded apps
  #
  export QMAKESPEC = "${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/${TARGET_OS}-oe-g++"
+export OE_QMAKE_QT_CONFIG = "${STAGING_DATADIR}/${QT_DIR_NAME}/mkspecs/qconfig.pri"
  export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/${QT_DIR_NAME}"
  export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
  export OE_QMAKE_LIBS_QT = "qt"

Hi Saul,

Do you have a log of the error you had building qt4-embedded with this patch?

Regards,
Jonathan

#2 lore raw

It's failing in my world builds too now, you can see log here:
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches/log.world.20130627_214856.log/bitbake.log

Cheers,

Quoted 39 lines · Jonathan Liu
Quoted 17 lines · Jonathan Liu

The class is inheriting qmake2.bbclass which exports OE_QMAKE_QT_CONFIG pointing to the qt4 qconfig.pri when it should be pointing to the qt4-embedded qconfig.pri.

---
  meta/classes/qt4e.bbclass | 1 +
  1 file changed, 1 insertion(+)
meta/classes/qt4e.bbclass +0 -0
index de2a68d..13b1050 100644
@@ -9,6 +9,7 @@ QT_LIBINFIX = "E"
  # override variables set by qmake-base to compile Qt/Embedded apps
  #
  export QMAKESPEC = "${STAGING_DATADIR}/${QT_DIR_**
Quoted 7 lines

NAME}/mkspecs/${TARGET_OS}-oe-**g++"
+export OE_QMAKE_QT_CONFIG = "${STAGING_DATADIR}/${QT_DIR_** NAME}/mkspecs/qconfig.pri"
export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/${QT_DIR_**NAME}" export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}" export OE_QMAKE_LIBS_QT = "qt"

Hi Saul,

Do you have a log of the error you had building qt4-embedded with this patch?

Regards,
Jonathan

______________________________**_________________
Openembedded-core mailing list Openembedded-core@lists.**openembedded.org<[email protected]>
http://lists.openembedded.org/**mailman/listinfo/openembedded-**core<http://lists.openembedded.org/mailman/listinfo/openembedded-core>

#3 lore raw
Quoted 4 lines · On Friday 28 June 2013 14:28:56 Martin Jansa wrote:

It's failing in my world builds too now, you can see log here:
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches/log.world.2013
0627_214856.log/bitbake.log

Quoted 36 lines

Cheers,

Quoted 33 lines · Jonathan Liu
Quoted 24 lines · Jonathan Liu

The class is inheriting qmake2.bbclass which exports OE_QMAKE_QT_CONFIG pointing to the qt4 qconfig.pri when it should be pointing to the qt4-embedded qconfig.pri.

---

  meta/classes/qt4e.bbclass | 1 +
  1 file changed, 1 insertion(+)
meta/classes/qt4e.bbclass +0 -0
index de2a68d..13b1050 100644
@@ -9,6 +9,7 @@ QT_LIBINFIX = "E"
 
  # override variables set by qmake-base to compile Qt/Embedded apps
  #
  export QMAKESPEC = "${STAGING_DATADIR}/${QT_DIR_**
 

NAME}/mkspecs/${TARGET_OS}-oe-**g++"
+export OE_QMAKE_QT_CONFIG = "${STAGING_DATADIR}/${QT_DIR_** NAME}/mkspecs/qconfig.pri"

Quoted 3 lines
  export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/${QT_DIR_**NAME}"
  export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
  export OE_QMAKE_LIBS_QT = "qt"

Hi Saul,

Do you have a log of the error you had building qt4-embedded with this patch?

FWIW, I see the same error without this patch if I build qt4-embedded after building qt4-x11, so I don't know if this patch is really related to the problem or not.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw
Quoted 39 lines · Paul Eggleton
Quoted 38 lines · On Friday 28 June 2013 14:28:56 Martin Jansa wrote:

It's failing in my world builds too now, you can see log here:
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches/log.world.2013
0627_214856.log/bitbake.log

Cheers,

Quoted 31 lines · Jonathan Liu
Quoted 24 lines · Jonathan Liu

The class is inheriting qmake2.bbclass which exports OE_QMAKE_QT_CONFIG pointing to the qt4 qconfig.pri when it should be pointing to the qt4-embedded qconfig.pri.

---

  meta/classes/qt4e.bbclass | 1 +
  1 file changed, 1 insertion(+)
meta/classes/qt4e.bbclass +0 -0
index de2a68d..13b1050 100644
@@ -9,6 +9,7 @@ QT_LIBINFIX = "E"
 
  # override variables set by qmake-base to compile Qt/Embedded apps
  #
  export QMAKESPEC = "${STAGING_DATADIR}/${QT_DIR_**
 

NAME}/mkspecs/${TARGET_OS}-oe-**g++"
+export OE_QMAKE_QT_CONFIG = "${STAGING_DATADIR}/${QT_DIR_** NAME}/mkspecs/qconfig.pri"

Quoted 3 lines
  export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/${QT_DIR_**NAME}"
  export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
  export OE_QMAKE_LIBS_QT = "qt"

Hi Saul,

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

Do you have a log of the error you had building qt4-embedded with this patch?

FWIW, I see the same error without this patch if I build qt4-embedded after building qt4-x11, so I don't know if this patch is really related to the problem or not.

It was building fine in world builds until 1-2 weeks ago, but it's possible that I was just lucky to have it in right order.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#5 lore raw
Quoted 7 lines · On Friday 28 June 2013 14:45:34 Martin Jansa wrote:
Quoted 3 lines · Paul Eggleton

FWIW, I see the same error without this patch if I build qt4-embedded after building qt4-x11, so I don't know if this patch is really related to the problem or not.

It was building fine in world builds until 1-2 weeks ago, but it's possible that I was just lucky to have it in right order.

I'm pretty sure it's a recent regression, I'd be surprised if we never built them in the current order before on our autobuilder.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#6 lore raw
In reply to Martin Jansa
Quoted 39 lines · Martin Jansa
Quoted 38 lines · Paul Eggleton
Quoted 37 lines · On Friday 28 June 2013 14:28:56 Martin Jansa wrote:

It's failing in my world builds too now, you can see log here:
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches/log.world.2013
0627_214856.log/bitbake.log

Cheers,

Quoted 30 lines · Jonathan Liu
Quoted 24 lines · Jonathan Liu

The class is inheriting qmake2.bbclass which exports OE_QMAKE_QT_CONFIG pointing to the qt4 qconfig.pri when it should be pointing to the qt4-embedded qconfig.pri.

---

   meta/classes/qt4e.bbclass | 1 +
   1 file changed, 1 insertion(+)
meta/classes/qt4e.bbclass +0 -0
index de2a68d..13b1050 100644
@@ -9,6 +9,7 @@ QT_LIBINFIX = "E"
 
   # override variables set by qmake-base to compile Qt/Embedded apps
   #
   export QMAKESPEC = "${STAGING_DATADIR}/${QT_DIR_**
 

NAME}/mkspecs/${TARGET_OS}-oe-**g++"
+export OE_QMAKE_QT_CONFIG = "${STAGING_DATADIR}/${QT_DIR_** NAME}/mkspecs/qconfig.pri"

Quoted 3 lines
   export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/${QT_DIR_**NAME}"
   export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
   export OE_QMAKE_LIBS_QT = "qt"

Hi Saul,

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

Do you have a log of the error you had building qt4-embedded with this patch?

FWIW, I see the same error without this patch if I build qt4-embedded after building qt4-x11, so I don't know if this patch is really related to the problem or not.

It was building fine in world builds until 1-2 weeks ago, but it's possible that I was just lucky to have it in right order.

Repoduce the bug by STEPS:

bitbake qt4-x11-free
bitbake qt4-embedded
and build qt4-embedded failed.

//Hongxu

Quoted 6 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#7 lore raw
Quoted 49 lines · Hongxu Jia
Quoted 39 lines · Martin Jansa
Quoted 38 lines · Paul Eggleton
Quoted 37 lines · On Friday 28 June 2013 14:28:56 Martin Jansa wrote:

It's failing in my world builds too now, you can see log here:
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches/log.world.2013
0627_214856.log/bitbake.log

Cheers,

Quoted 30 lines · Jonathan Liu
Quoted 24 lines · Jonathan Liu

The class is inheriting qmake2.bbclass which exports OE_QMAKE_QT_CONFIG pointing to the qt4 qconfig.pri when it should be pointing to the qt4-embedded qconfig.pri.

---

   meta/classes/qt4e.bbclass | 1 +
   1 file changed, 1 insertion(+)
meta/classes/qt4e.bbclass +0 -0
index de2a68d..13b1050 100644
@@ -9,6 +9,7 @@ QT_LIBINFIX = "E"
 
   # override variables set by qmake-base to compile Qt/Embedded apps
   #
   export QMAKESPEC = "${STAGING_DATADIR}/${QT_DIR_**
 

NAME}/mkspecs/${TARGET_OS}-oe-**g++"
+export OE_QMAKE_QT_CONFIG = "${STAGING_DATADIR}/${QT_DIR_** NAME}/mkspecs/qconfig.pri"

Quoted 3 lines
   export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/${QT_DIR_**NAME}"
   export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
   export OE_QMAKE_LIBS_QT = "qt"

Hi Saul,

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

Do you have a log of the error you had building qt4-embedded with this patch?

FWIW, I see the same error without this patch if I build qt4-embedded after building qt4-x11, so I don't know if this patch is really related to the problem or not.

It was building fine in world builds until 1-2 weeks ago, but it's possible that I was just lucky to have it in right order.

Quoted 7 lines

Repoduce the bug by STEPS:

bitbake qt4-x11-free
bitbake qt4-embedded
and build qt4-embedded failed.

//Hongxu

There is another qt4 issue which causes cmake-native to fail or was cmake changed to require qt4 installed on host?

| CMake Warning at Modules/FindQt4.cmake:657 (message):
|   /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
|   QtCore could not be found there.  Qt is NOT installed correctly for the
|   target build environment.
| Call Stack (most recent call first):
|   Tests/RunCMake/CMakeLists.txt:79 (find_package)
| 
| 
| -- Looking for Q_WS_X11
| -- Looking for Q_WS_X11 - not found
| -- Looking for Q_WS_WIN
| -- Looking for Q_WS_WIN - not found
| -- Looking for Q_WS_QWS
| -- Looking for Q_WS_QWS - not found
| -- Looking for Q_WS_MAC
| -- Looking for Q_WS_MAC - not found
| CMake Error at Modules/FindQt4.cmake:1032 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| Call Stack (most recent call first):
|   Tests/RunCMake/CMakeLists.txt:79 (find_package)
| 
| 
| CMake Error at Modules/FindQt4.cmake:1037 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| Call Stack (most recent call first):
|   Tests/RunCMake/CMakeLists.txt:79 (find_package)
| 
| 
| CMake Error at Modules/FindQt4.cmake:1040 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| Call Stack (most recent call first):
|   Tests/RunCMake/CMakeLists.txt:79 (find_package)
| 
| 
| CMake Warning at Modules/FindQt4.cmake:657 (message):
|   /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
|   QtCore could not be found there.  Qt is NOT installed correctly for the
|   target build environment.
| Call Stack (most recent call first):
|   Tests/CMakeLists.txt:263 (find_package)
| 
| 
| CMake Error at Modules/FindQt4.cmake:1032 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| Call Stack (most recent call first):
|   Tests/CMakeLists.txt:263 (find_package)
| 
| 
| CMake Error at Modules/FindQt4.cmake:1037 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| Call Stack (most recent call first):
|   Tests/CMakeLists.txt:263 (find_package)
| 
| 
| CMake Error at Modules/FindQt4.cmake:1040 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| Call Stack (most recent call first):
|   Tests/CMakeLists.txt:263 (find_package)
| 
| 
| -- Could NOT find Qt4 (missing:  QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) (found version "4.8.1")
| -- Performing Test run_pic_test
| -- Performing Test run_pic_test - Success
| -- Configuring incomplete, errors occurred!
| ---------------------------------------------
| Error when bootstrapping CMake:
| Problem while running initial CMake
| ---------------------------------------------
| ERROR: Function failed: do_configure (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/cmake-native/2.8.11.1-r0/temp/log.do_configure.19730)

NOTE: recipe cmake-native-2.8.11.1-r0: task do_configure: Failed

Quoted 16 lines
Quoted 10 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#8 lore raw
Quoted 2 lines · On Sunday 30 June 2013 12:34:22 Martin Jansa wrote:

There is another qt4 issue which causes cmake-native to fail or was cmake changed to require qt4 installed on host?

Certainly not. I had a report of this issue but wasn't able to reproduce it:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=4565

Are you able to help me do that?

Quoted 81 lines
| CMake Warning at Modules/FindQt4.cmake:657 (message):
|   /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu"
|   but
|   QtCore could not be found there.  Qt is NOT installed correctly for the
|   target build environment.
| 
| Call Stack (most recent call first):
|   Tests/RunCMake/CMakeLists.txt:79 (find_package)
| 
| -- Looking for Q_WS_X11
| -- Looking for Q_WS_X11 - not found
| -- Looking for Q_WS_WIN
| -- Looking for Q_WS_WIN - not found
| -- Looking for Q_WS_QWS
| -- Looking for Q_WS_QWS - not found
| -- Looking for Q_WS_MAC
| -- Looking for Q_WS_MAC - not found
| 
| CMake Error at Modules/FindQt4.cmake:1032 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| 
| Call Stack (most recent call first):
|   Tests/RunCMake/CMakeLists.txt:79 (find_package)
| 
| CMake Error at Modules/FindQt4.cmake:1037 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| 
| Call Stack (most recent call first):
|   Tests/RunCMake/CMakeLists.txt:79 (find_package)
| 
| CMake Error at Modules/FindQt4.cmake:1040 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| 
| Call Stack (most recent call first):
|   Tests/RunCMake/CMakeLists.txt:79 (find_package)
| 
| CMake Warning at Modules/FindQt4.cmake:657 (message):
|   /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu"
|   but
|   QtCore could not be found there.  Qt is NOT installed correctly for the
|   target build environment.
| 
| Call Stack (most recent call first):
|   Tests/CMakeLists.txt:263 (find_package)
| 
| CMake Error at Modules/FindQt4.cmake:1032 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| 
| Call Stack (most recent call first):
|   Tests/CMakeLists.txt:263 (find_package)
| 
| CMake Error at Modules/FindQt4.cmake:1037 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| 
| Call Stack (most recent call first):
|   Tests/CMakeLists.txt:263 (find_package)
| 
| CMake Error at Modules/FindQt4.cmake:1040 (set_property):
|   set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
|   been created.
| 
| Call Stack (most recent call first):
|   Tests/CMakeLists.txt:263 (find_package)
| 
| -- Could NOT find Qt4 (missing:  QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE
| QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) (found
| version "4.8.1") -- Performing Test run_pic_test
| -- Performing Test run_pic_test - Success
| -- Configuring incomplete, errors occurred!
| ---------------------------------------------
| Error when bootstrapping CMake:
| Problem while running initial CMake
| ---------------------------------------------
| ERROR: Function failed: do_configure (log file is located at
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/
| cmake-native/2.8.11.1-r0/temp/log.do_configure.19730)
Quoted 2 lines

NOTE: recipe cmake-native-2.8.11.1-r0: task do_configure: Failed

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre