Skip to contentSkip to conversation

Jonathan Liu : qt-creator: add new recipe for version 2.7.2

oe-commits Andreas Müller 2 participants 3 messages Jul 15, 2013 – Jul 16, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 45 lines · On Mon, Jul 8, 2013 at 10:30 AM, <[email protected]> wrote:
Module: meta-openembedded.git
Branch: master
Commit: 4d2b8ed90614a21d8d7d7c38d013c0c74d9ffffc
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4d2b8ed90614a21d8d7d7c38d013c0c74d9ffffc
Author: Jonathan Liu <[email protected]>
Date:   Sat Jul  6 02:46:58 2013 +0000

qt-creator: add new recipe for version 2.7.2

---

 meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb |   30 +++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +20 -0
new file mode 100644
index 0000000..2948d81
@@ -0,0 +1,30 @@
+DESCRIPTION = "Lightweight, cross-platform integrated development environment"
+
+HOMEPAGE = "http://qt-project.org/"
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://LGPL_EXCEPTION.TXT;md5=eb6c371255e1262c55ae9b652a90b528 \
+                    file://LICENSE.LGPL;md5=243b725d71bb5df4a1e5920b344b86ad"
+SECTION = "qt/app"
+
+SRC_URI = "http://download.qt-project.org/official_releases/qtcreator/2.7/${PV}/${BP}-src.tar.gz"
+SRC_URI[md5sum] = "7f1c10740784d3edf2347c27be21fd1a"
+SRC_URI[sha256sum] = "5df913faa43a5fbf44fb1f25faaf6d258134b8f9e6b8ef8a21277136dec9e189"
+
+S = "${WORKDIR}/${BP}-src"
+
+inherit qt4x11
+
+do_install() {
+       oe_runmake INSTALL_ROOT=${D}${prefix} install
+       oe_runmake INSTALL_ROOT=${D}${prefix} install_docs
+       rm -f ${D}${libdir}/qtcreator/lib*.so

meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb line 30

Quoted 10 lines
meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +10 -0
+}
+
+FILES_${PN} += "${datadir}/icons \
+                ${datadir}/qtcreator \
+                ${libdir}/qtcreator/*"
+FILES_${PN}-dbg += "${datadir}/qtcreator/*/*/*/*/.debug \
+                    ${libdir}/qtcreator/.debug \
+                    ${libdir}/qtcreator/*/*/.debug"
+RRECOMMENDS_${PN} += "packagegroup-core-buildessential \
+                      packagegroup-qt-toolchain-target"

I get

Log data follows:

| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| NOTE: using qmake spec in
/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/share/qt4/mkspecs/linux-gnueabi-oe-g++,
using profiles ''
| Project MESSAGE: Cannot build Qt Creator with Qt version .
| Project ERROR: Use at least Qt 4.8.0.
| ERROR: Error calling

/home/andreas/tmp/oe-core-eglibc/sysroots/x86_64-linux/usr/bin/qmake2
on qtcreator.pro
| ERROR: Function failed: do_configure (see /home/andreas/tmp/oe-core-eglibc/work/cortexa8hf-vfp-neon-angstrom-linux-gnueabi/qt-creator/2.7.2-r0/temp/log.do_configure.29576 for further information)

Is it possible that iti is caused by checking host's qt version (this is 4.7.4)?

Andreas

#2 lore raw
Quoted 74 lines · Andreas Müller
Quoted 45 lines · On Mon, Jul 8, 2013 at 10:30 AM, <[email protected]> wrote:
Module: meta-openembedded.git
Branch: master
Commit: 4d2b8ed90614a21d8d7d7c38d013c0c74d9ffffc
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4d2b8ed90614a21d8d7d7c38d013c0c74d9ffffc
Author: Jonathan Liu <[email protected]>
Date:   Sat Jul  6 02:46:58 2013 +0000

qt-creator: add new recipe for version 2.7.2

---

  meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb |   30 +++++++++++++++++++++
  1 files changed, 30 insertions(+), 0 deletions(-)
meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +20 -0
new file mode 100644
index 0000000..2948d81
@@ -0,0 +1,30 @@
+DESCRIPTION = "Lightweight, cross-platform integrated development environment"
+
+HOMEPAGE = "http://qt-project.org/"
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://LGPL_EXCEPTION.TXT;md5=eb6c371255e1262c55ae9b652a90b528 \
+                    file://LICENSE.LGPL;md5=243b725d71bb5df4a1e5920b344b86ad"
+SECTION = "qt/app"
+
+SRC_URI = "http://download.qt-project.org/official_releases/qtcreator/2.7/${PV}/${BP}-src.tar.gz"
+SRC_URI[md5sum] = "7f1c10740784d3edf2347c27be21fd1a"
+SRC_URI[sha256sum] = "5df913faa43a5fbf44fb1f25faaf6d258134b8f9e6b8ef8a21277136dec9e189"
+
+S = "${WORKDIR}/${BP}-src"
+
+inherit qt4x11
+
+do_install() {
+       oe_runmake INSTALL_ROOT=${D}${prefix} install
+       oe_runmake INSTALL_ROOT=${D}${prefix} install_docs
+       rm -f ${D}${libdir}/qtcreator/lib*.so

meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb line 30

Quoted 10 lines
meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +10 -0
+}
+
+FILES_${PN} += "${datadir}/icons \
+                ${datadir}/qtcreator \
+                ${libdir}/qtcreator/*"
+FILES_${PN}-dbg += "${datadir}/qtcreator/*/*/*/*/.debug \
+                    ${libdir}/qtcreator/.debug \
+                    ${libdir}/qtcreator/*/*/.debug"
+RRECOMMENDS_${PN} += "packagegroup-core-buildessential \
+                      packagegroup-qt-toolchain-target"

I get

Log data follows:

| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| NOTE: using qmake spec in
/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/share/qt4/mkspecs/linux-gnueabi-oe-g++,
using profiles ''
| Project MESSAGE: Cannot build Qt Creator with Qt version .
| Project ERROR: Use at least Qt 4.8.0.
| ERROR: Error calling

/home/andreas/tmp/oe-core-eglibc/sysroots/x86_64-linux/usr/bin/qmake2
on qtcreator.pro
| ERROR: Function failed: do_configure (see /home/andreas/tmp/oe-core-eglibc/work/cortexa8hf-vfp-neon-angstrom-linux-gnueabi/qt-creator/2.7.2-r0/temp/log.do_configure.29576 for further information)

Quoted 3 lines

Is it possible that iti is caused by checking host's qt version (this is 4.7.4)?

Andreas

Are you using the latest openembedded-core master? These have been many fixes for Qt.
For example: http://cgit.openembedded.org/openembedded-core/commit/?id=dcaa40e65d986587fa7c44f4285bbd0883478cc3

Regards,
Jonathan

#3 lore raw
Quoted 92 lines · Jonathan Liu
Quoted 83 lines · Andreas Müller
Quoted 54 lines · On Mon, Jul 8, 2013 at 10:30 AM, <[email protected]> wrote:

Module: meta-openembedded.git
Branch: master
Commit: 4d2b8ed90614a21d8d7d7c38d013c0c74d9ffffc
URL:
http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4d2b8ed90614a21d8d7d7c38d013c0c74d9ffffc

Author: Jonathan Liu <[email protected]>
Date:   Sat Jul  6 02:46:58 2013 +0000

qt-creator: add new recipe for version 2.7.2

---

  meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb |   30
+++++++++++++++++++++
  1 files changed, 30 insertions(+), 0 deletions(-)
meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +1 -0
new file mode 100644
index 0000000..2948d81
@@ -0,0 +1,30 @@
+DESCRIPTION = "Lightweight, cross-platform integrated development

environment"

meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +4 -0
+
+HOMEPAGE = "http://qt-project.org/"
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM =

"file://LGPL_EXCEPTION.TXT;md5=eb6c371255e1262c55ae9b652a90b528 \
+ file://LICENSE.LGPL;md5=243b725d71bb5df4a1e5920b344b86ad"

meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +3 -0
+SECTION = "qt/app"
+
+SRC_URI =

"http://download.qt-project.org/official_releases/qtcreator/2.7/${PV}/${BP}-src.tar.gz"

meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +2 -0
+SRC_URI[md5sum] = "7f1c10740784d3edf2347c27be21fd1a"
+SRC_URI[sha256sum] =

"5df913faa43a5fbf44fb1f25faaf6d258134b8f9e6b8ef8a21277136dec9e189"

meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +9 -0
+
+S = "${WORKDIR}/${BP}-src"
+
+inherit qt4x11
+
+do_install() {
+       oe_runmake INSTALL_ROOT=${D}${prefix} install
+       oe_runmake INSTALL_ROOT=${D}${prefix} install_docs
+       rm -f ${D}${libdir}/qtcreator/lib*.so

meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb

Quoted 10 lines
meta-oe/recipes-qt/qt-creator/qt-creator_2.7.2.bb new file +10 -0
+}
+
+FILES_${PN} += "${datadir}/icons \
+                ${datadir}/qtcreator \
+                ${libdir}/qtcreator/*"
+FILES_${PN}-dbg += "${datadir}/qtcreator/*/*/*/*/.debug \
+                    ${libdir}/qtcreator/.debug \
+                    ${libdir}/qtcreator/*/*/.debug"
+RRECOMMENDS_${PN} += "packagegroup-core-buildessential \
+                      packagegroup-qt-toolchain-target"

I get

Log data follows:

| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| NOTE: using qmake spec in

/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/share/qt4/mkspecs/linux-gnueabi-oe-g++, using profiles ''

| Project MESSAGE: Cannot build Qt Creator with Qt version .
| Project ERROR: Use at least Qt 4.8.0.
| ERROR: Error calling

/home/andreas/tmp/oe-core-eglibc/sysroots/x86_64-linux/usr/bin/qmake2 on qtcreator.pro
| ERROR: Function failed: do_configure (see

Quoted 7 lines

/home/andreas/tmp/oe-core-eglibc/work/cortexa8hf-vfp-neon-angstrom-linux-gnueabi/qt-creator/2.7.2-r0/temp/log.do_configure.29576 for further information)

Is it possible that iti is caused by checking host's qt version (this is 4.7.4)?

Andreas

Quoted 7 lines

Are you using the latest openembedded-core master? These have been many fixes for Qt.
For example:
http://cgit.openembedded.org/openembedded-core/commit/?id=dcaa40e65d986587fa7c44f4285bbd0883478cc3

Regards,
Jonathan

Thanks for the helping hint. You are right I am not using latest oe-core. After cherry-picking qt-related patches (especially the one you mentioned) configure passes.

But now I fail for known ARM issue [1]

-I.moc/release-shared -I.uic -o .obj/release-shared/botan.o ../3rdparty/botan/botan.cpp
| ../3rdparty/botan/botan.cpp:46220:21: fatal error: cpuid.h: No such file or directory

|    #include <cpuid.h>
|                      ^
| compilation terminated.
| make[3]: *** [.obj/release-shared/botan.o] Error 1

Have not found a solution yet. FWIW qt-creator 2.8.0 fails same.

Andreas

[1] https://bugreports.qt-project.org/browse/QTCREATORBUG-8107