Closed Bug 876043 Opened 12 years ago Closed 12 years ago

Build for multi qt4/qt5 ubuntu environment

Categories

(Core Graveyard :: Widget: Qt, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla24

People

(Reporter: tatiana, Assigned: tatiana)

References

Details

Attachments

(1 file, 2 obsolete files)

1) Fix configuration for building with multi qt4/qt5 ubuntu environment 2) Minor compile issue after landing bug 842927 (Qt::Key_Print) + qt5, not valid identifier. 3) QInputContext is removed in Qt5
Summary: Build with multi qt4/qt5 ubuntu environment → Build for multi qt4/qt5 ubuntu environment
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → tanya.meshkova
Status: NEW → ASSIGNED
Attachment #754019 - Flags: review?(romaxa)
Attachment #754019 - Flags: review?(mh+mozilla)
Comment on attachment 754019 [details] [diff] [review] patch Looks good to me, thanks.
Attachment #754019 - Flags: review?(romaxa) → review+
Comment on attachment 754019 [details] [diff] [review] patch Review of attachment 754019 [details] [diff] [review]: ----------------------------------------------------------------- ::: configure.in @@ +4705,5 @@ > [ --with-qtdir=\$dir Specify Qt directory ], > [ QTDIR=$withval]) > > if test -z "$QTDIR"; then > + AC_CHECK_PROGS(HOST_QMAKE, $QMAKE qmake, "") Does HOST_ mean this is expected to be run as native on cross compiles? @@ +4709,5 @@ > + AC_CHECK_PROGS(HOST_QMAKE, $QMAKE qmake, "") > + QT_VERSION=`$HOST_QMAKE -v | grep 'Using Qt version' | grep -oP '\d+\.\d+\.\d+'` > + case $QT_VERSION in > + 5.*) > + echo "Using qt5: $QT_VERSION" While here, please make this use AC_MSG_RESULT. @@ +4710,5 @@ > + QT_VERSION=`$HOST_QMAKE -v | grep 'Using Qt version' | grep -oP '\d+\.\d+\.\d+'` > + case $QT_VERSION in > + 5.*) > + echo "Using qt5: $QT_VERSION" > + PKG_CHECK_MODULES(MOZ_QT, Qt5Gui Qt5Network Qt5Core Qt5OpenGL Qt5Widgets Qt5Multimedia Qt5PrintSupport) You're not checking if this succeeds. @@ +4727,5 @@ > AC_CHECK_PROGS(HOST_MOC, $MOC moc, "") > AC_CHECK_PROGS(HOST_RCC, $RCC rcc, "") > else > + HOST_QMAKE="$QTDIR/bin/qmake" > + QT_VERSION=`$HOST_QMAKE -v | grep 'Using Qt version' | grep -oP '\d+\.\d+\.\d+'` Please factor this out and share with the other branch.
Attachment #754019 - Flags: review?(mh+mozilla) → review-
> > if test -z "$QTDIR"; then > > + AC_CHECK_PROGS(HOST_QMAKE, $QMAKE qmake, "") > > Does HOST_ mean this is expected to be run as native on cross compiles? qmake is just Makefile creator which can generate makefiles for cross and native compilation... it does not produce any binaries... and here it only used as provider of default Qt version used by system.
Attached patch patch v2 (obsolete) — Splinter Review
Attachment #754019 - Attachment is obsolete: true
Attachment #761221 - Flags: review?(mh+mozilla)
Comment on attachment 761221 [details] [diff] [review] patch v2 Review of attachment 761221 [details] [diff] [review]: ----------------------------------------------------------------- ::: configure.in @@ +4744,5 @@ > + case $QT_VERSION in > + 5.*) > + AC_MSG_RESULT("Using qt5: $QT_VERSION") > + PKG_CHECK_MODULES(MOZ_QT, Qt5Gui Qt5Network Qt5Core Qt5OpenGL Qt5Widgets Qt5PrintSupport, , > + [echo "$MOZ_QT_PKG_ERRORS" PKG_CHECK_MODULES should be outputting error messages already.
Attachment #761221 - Flags: review?(mh+mozilla) → review+
(In reply to Mike Hommey (high latency until June 25) [:glandium] from comment #6) > > + PKG_CHECK_MODULES(MOZ_QT, Qt5Gui Qt5Network Qt5Core Qt5OpenGL Qt5Widgets Qt5PrintSupport, , > > + [echo "$MOZ_QT_PKG_ERRORS" > > PKG_CHECK_MODULES should be outputting error messages already. It does only if there is no custom action-if-failed argument. I need packages info to be there too.
Moving r+ from prev patch
Attachment #761221 - Attachment is obsolete: true
Attachment #765092 - Flags: review+
Attachment #765092 - Flags: checkin+
Attachment #765092 - Flags: checkin+ → checkin?
Attachment #765092 - Flags: checkin? → checkin+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Depends on: 895238
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: