Qt4 recipe fix; fixes configure so compiler is, detected properly, and QXMLPatterns gets built
A message that is not in the archive (sent off-list or not yet received): mailman.142.1280333371.17151.openembedded-devel@lists.openembedded.org
Quoted 6 lines
this patch removes the patch you want to add. Is that correct? Could you add the "More Info" to the top of the patch as well? Could you also include the failure you are seeing?
I have fixed the patch (common error, had reversed the order of arguments to diff).
http://home.comcast.net/~jay.snyder/Qt4-recipe-compiler-fix/Qt4-recipe-compiler-fix.patch
Please see attachments.
Another user requested using git-diff. My changes are in an overlay directory, so git-diff will not work. How do I get a git-format diff from the normal diff program?
Also, you ask to "include the failure you are seeing", here it is (from log.do_configure.*):
./configure: line 6406: $(OE_QMAKE_CXX): command not found
The configure script needs to use the contents of the ${OE_QMAKE_CXX} variable, but is instead trying to use $(OE_QMAKE_CXX), because that is what QMAKE_CXX is set to in the .pro file, and in the resultant Makefile.
The above failure results in compiler features not being tested, and ultimately QtXmlPatterns doesn't get turned on (I don't know what other features might get disabled, but this is one that I needed).
Regards,
Jay
recipes/qt4/qt-4.6.0.inc renamed from openembedded/recipes/qt4/qt-4.6.0.inc +1 -0
@@ -3,6 +3,7 @@ FILESPATHPKG .= ":qt-${PV}" SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ + file://configure-conf_compiler-fix.patch \ file://0001-cross-compile.patch \ file://0002-fix-resinit-declaration.patch \ file://0004-no-qmake.patch \
recipes/qt4/qt-4.6.2.inc renamed from openembedded/recipes/qt4/qt-4.6.2.inc +1 -0
@@ -3,6 +3,7 @@ FILESPATHPKG .= ":qt-${PV}" SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ + file://configure-conf_compiler-fix.patch \ file://0001-cross-compile.patch \ file://0002-fix-resinit-declaration.patch \ file://0004-no-qmake.patch \
recipes/qt4/qt4-embedded.inc renamed from openembedded/recipes/qt4/qt4-embedded.inc +1 -0
@@ -12,6 +12,7 @@ QT_LIBINFIX = "E" SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-embedded-linux-opensource-src-${PV}.tar.bz2 \ + file://configure-conf_compiler-fix.patch \ file://0001-cross-compile.patch \ file://0002-fix-resinit-declaration.patch \ file://0003-no-tools.patch \
recipes/qt4/qt4-x11-free.inc renamed from openembedded/recipes/qt4/qt4-x11-free.inc +1 -0
@@ -8,6 +8,7 @@ INC_PR = "r18" SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-${PV}.tar.gz \ + file://configure-conf_compiler-fix.patch \ file://0001-cross-compile.patch \ file://0002-fix-resinit-declaration.patch \ file://0003-no-tools.patch \
Index qt-everywhere-opensource-src-4.6.0.orig/configure
===================================================================
configure renamed from configure.orig +1 -0
@@ -2917,6 +2917,7 @@ fi QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1," | tail -1` +eval QMAKE_CONF_COMPILER=$(echo $QMAKE_CONF_COMPILER | sed "s/(/{/" | sed "s/)/}/") TEST_COMPILER="$CC" [ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER