enable kdelib4-native to build makekdewidgets.
Hi All,
The original kdelibs4-native recipe is from Samuel Stirtzel, and I update qt4 to enable kdelib4-native to build makekdewidgets.
Regards,
Kai
PATCH 1/3 qt4-native: enable features to build kdelib4-native
add a bbappend file to enable qt4-native 4.7.4 to enable openssl and phonon support. Add flags '-no-pch -no-sm' to make qt4-native itself compiled successfully.
--- recipes-misc-support/qt4-native_4.7.4.bbappend | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) create mode 100644 recipes-misc-support/qt4-native_4.7.4.bbappend
recipes-misc-support/qt4-native_4.7.4.bbappend new file +4 -0
@@ -0,0 +1,4 @@ +# Needed by kdelibs4-native +EXTRA_OECONF += "-no-pch -no-sm -openssl" + +TOBUILD += "src/phonon"
Signature · 1 line
1.7.5.4
Re: [PATCH 1/3] qt4-native: enable features to build kdelib4-native
2012/4/16 Kang Kai <[email protected]>:
Quoted 21 lines
add a bbappend file to enable qt4-native 4.7.4 to enable openssl and phonon support. Add flags '-no-pch -no-sm' to make qt4-native itself compiled successfully.
Signed-off-by Kang Kai <[email protected]>---
recipes-misc-support/qt4-native_4.7.4.bbappend | 4 ++++1 files changed, 4 insertions(+), 0 deletions(-)create mode 100644 recipes-misc-support/qt4-native_4.7.4.bbappend
recipes-misc-support/qt4-native_4.7.4.bbappend new file +4
-1@@ -0,0 +1,4 @@ +# Needed by kdelibs4-native +EXTRA_OECONF += "-no-pch -no-sm -openssl" + +TOBUILD += "src/phonon" --
Quoted 2 lines
1.7.5.4
Hi,
this patch works although it is recommended to use Qt 4.8.0 for KDE 4.8.0. I renamed the patch to let it append to qt4-native_4.8.0.bb.
Signature · 2 lines
Regards Samuel
Re: [PATCH 1/3] qt4-native: enable features to build kdelib4-native
Quoted 11 lines · Samuel Stirtzel
2012/4/16 Kang Kai<[email protected]>:
Quoted 10 lines
add a bbappend file to enable qt4-native 4.7.4 to enable openssl and phonon support. Add flags '-no-pch -no-sm' to make qt4-native itself compiled successfully.
Signed-off-by Kang Kai<[email protected]>--- recipes-misc-support/qt4-native_4.7.4.bbappend | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)create mode 100644 recipes-misc-support/qt4-native_4.7.4.bbappend
Quoted 18 lines
Quoted 11 lines
recipes-misc-support/qt4-native_4.7.4.bbappend new file +4
-1@@ -0,0 +1,4 @@ +# Needed by kdelibs4-native +EXTRA_OECONF += "-no-pch -no-sm -openssl" + +TOBUILD += "src/phonon" --Quoted 2 lines
1.7.5.4
Hi,
this patch works although it is recommended to use Qt 4.8.0 for KDE 4.8.0. I renamed the patch to let it append to qt4-native_4.8.0.bb.
Hi Samuel,
Thanks for your guide.
Kai
PATCH 2/3 kdelibs4-native: re-add the original recipe
In reply to Kang KaiThe kdelibs4-native recipe is from Samuel Stirtzel and the recipe has been deleted by commit: 586dcf21f376d50cbf9fc52bc769824ec92d73af
Because Samuel doesn't fill in the SRCREV, I add it with same commit in kdelibs4.
--- recipes-kde-base/kdelibs4-native_git.bb | 49 +++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 recipes-kde-base/kdelibs4-native_git.bb
recipes-kde-base/kdelibs4-native_git.bb new file +49 -0
@@ -0,0 +1,49 @@ +LICENSE = "GPLv2" + +LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24" + +DEPENDS = "automoc4-native giflib-native attica-native perl-native" +#strigi-native +#soprano-native +# jpeg-native libpng-native + + +inherit kde_cmake kde_without_docs mime native perlnative + + +SRC_URI = "git://anongit.kde.org/kdelibs.git;branch=v4.8.0 \ + file://0001-Don-t-build-documentation-disable-Strigi.patch \ + file://0002-Fix-openssl-check.patch \ + file://0005-Remove-docs-so-they-don-t-get-pulled-in-elsewhere.patch \ + " + +SRCREV = "1439483a67135f483632f4c4cd239e96d2ed61fc" +PV = "4.8.0+git${SRCPV}" + +S = "${WORKDIR}/git" + +# kdelibs *must* be built out of tree +OECMAKE_SOURCEPATH = ".." +OECMAKE_BUILDPATH = "build" + + +EXTRA_OECMAKE =+ "\ + -DAUTOMOC4_EXECUTABLE=${STAGING_BINDIR_NATIVE}/automoc4 \ + -DKJS_FORCE_DISABLE_PCRE=TRUE \ + -DSTRIGI_REQUIRED=FALSE \ + -DSTRIGI_INCLUDE_DIR=TRUE \ + " + +do_compile() { + cd ${S}/build && make -C kdecore/kconfig_compiler + cd ${S}/build && make -C kjs icemaker +# cd ${S}/build && oe_runmake CC="${CC}" CXX="${CXX}" +} + +do_install() { + install -d ${D}${bindir} + + install -m 0755 ${S}/build/bin/icemaker ${D}${bindir} + install -m 0755 ${S}/build/bin/kconfig_compiler ${D}${bindir} +# install -m 0755 ${S}/build/bin/makekdewidgets ${D}${bindir} +}
Signature · 1 line
1.7.5.4
PATCH 3/3 kdelib4-native: build makekdewidgets
In reply to Kang Kaiqt4-native has been updated and open phonon and openssl support, makekdewidgets could be successfully build. So build it.
--- recipes-kde-base/kdelibs4-native_git.bb | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-)
recipes-kde-base/kdelibs4-native_git.bb +6 -8
@@ -2,18 +2,15 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24" -DEPENDS = "automoc4-native giflib-native attica-native perl-native" -#strigi-native -#soprano-native -# jpeg-native libpng-native - +DEPENDS = "automoc4-native giflib-native attica-native perl-native libdbusmenu-qt-native" inherit kde_cmake kde_without_docs mime native perlnative - SRC_URI = "git://anongit.kde.org/kdelibs.git;branch=v4.8.0 \ file://0001-Don-t-build-documentation-disable-Strigi.patch \ file://0002-Fix-openssl-check.patch \ + file://0003-Fix-FindKDE4Internals-cmake-file.patch \ + file://0004-Fix-the-path-to-Icemaker.patch \ file://0005-Remove-docs-so-they-don-t-get-pulled-in-elsewhere.patch \ "
@@ -32,12 +29,13 @@ EXTRA_OECMAKE =+ "\ -DKJS_FORCE_DISABLE_PCRE=TRUE \ -DSTRIGI_REQUIRED=FALSE \ -DSTRIGI_INCLUDE_DIR=TRUE \ + -DOE_CROSSCOMPILING=FALSE \ " do_compile() { cd ${S}/build && make -C kdecore/kconfig_compiler cd ${S}/build && make -C kjs icemaker -# cd ${S}/build && oe_runmake CC="${CC}" CXX="${CXX}" + cd ${S}/build && make -C kdewidgets makekdewidgets } do_install() {
@@ -45,5 +43,5 @@ do_install() { install -m 0755 ${S}/build/bin/icemaker ${D}${bindir} install -m 0755 ${S}/build/bin/kconfig_compiler ${D}${bindir} -# install -m 0755 ${S}/build/bin/makekdewidgets ${D}${bindir} + install -m 0755 ${S}/build/bin/makekdewidgets ${D}${bindir} }
Signature · 1 line
1.7.5.4
Re: [PATCH 3/3] kdelib4-native: build makekdewidgets
2012/4/16 Kang Kai <[email protected]>:
Quoted 57 lines
qt4-native has been updated and open phonon and openssl support, makekdewidgets could be successfully build. So build it.
Signed-off-by Kang Kai <[email protected]>---
recipes-kde-base/kdelibs4-native_git.bb | 14 ++++++--------1 files changed, 6 insertions(+), 8 deletions(-)recipes-kde-base/kdelibs4-native_git.bb +0
-0@@ -2,18 +2,15 @@ LICENSE = "GPLv2"LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"
recipes-kde-base/kdelibs4-native_git.bb +1
-5-DEPENDS = "automoc4-native giflib-native attica-native perl-native" -#strigi-native -#soprano-native -# jpeg-native libpng-native - +DEPENDS = "automoc4-native giflib-native attica-native perl-native libdbusmenu-qt-native"inherit
kde_cmakekde_without_docsmime native perlnative-
SRC_URI = "git://anongit.kde.org/kdelibs.git;branch=v4.8.0\
file://0001-Don-t-build-documentation-disable-Strigi.patch \
file://0002-Fix-openssl-check.patch \
+ file://0003-Fix-FindKDE4Internals-cmake-file.patch \
+ file://0004-Fix-the-path-to-Icemaker.patch \
file://0005-Remove-docs-so-they-don-t-get-pulled-in-elsewhere.patch \
"recipes-kde-base/kdelibs4-native_git.bb +1
-0@@ -32,12 +29,13 @@ EXTRA_OECMAKE =+ "\ -DKJS_FORCE_DISABLE_PCRE=TRUE \ -DSTRIGI_REQUIRED=FALSE \ -DSTRIGI_INCLUDE_DIR=TRUE \ + -DOE_CROSSCOMPILING=FALSE \"
do_compile() {
cd ${S}/build && make -C kdecore/kconfig_compiler cd ${S}/build && make -C kjs icemaker
-# cd ${S}/build &&oe_runmakeCC="${CC}" CXX="${CXX}"
+ cd ${S}/build && make -C kdewidgets makekdewidgets }do_install() {
recipes-kde-base/kdelibs4-native_git.bb +1
-2@@ -45,5 +43,5 @@ do_install() { install -m 0755 ${S}/build/bin/icemaker ${D}${bindir} install -m 0755 ${S}/build/bin/kconfig_compiler ${D}${bindir} -# install -m 0755 ${S}/build/bin/makekdewidgets ${D}${bindir} + install -m 0755 ${S}/build/bin/makekdewidgets ${D}${bindir} } --
Quoted 2 lines
1.7.5.4
Hi Kai,
looks good.
I applied this patch together with the adjustment of kdelibs4 and kde_cmake.bbclass.
Signature · 2 lines
Regards Samuel
Quoted 8 lines · Kang Kai
Hi All,
The original kdelibs4-native recipe is from Samuel Stirtzel, and I update qt4 to enable kdelib4-native to build makekdewidgets.
Regards,
Kai
Hi Samuel,
I had put you email as a argument for 'git send-email', but I don't know why it didn't effect. Cc to you.
Thanks,
Kai
Quoted 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
2012/4/16 Kang Kai <[email protected]>:
Quoted 11 lines · Kang Kai
Quoted 10 lines
Hi All,
The original kdelibs4-native recipe is from Samuel Stirtzel, and I update qt4
to enable kdelib4-native to build makekdewidgets.Regards,
Kai
Quoted 8 lines
Hi Samuel,
I had put you email as a argument for 'git send-email', but I don't know why it didn't effect.
Cc to you.Thanks,
Kai
Hi Kai,
thank you for your patches.
I will test them and adjust the settings of the layer accordingly.
With these patches it will be easier to build KDE, great work.
Signature · 2 lines
Regards Samuel