Problem Compiling Qt 4.8.7 on Windows 7
-
Hi
I'm a complete newbie, so even if anyone is kind enough to help, I might need a simple explanation.
I'm trying to compile 4.8.7 on Windows 7, but I've encountered these errors.
itemviews.cpp: In member function 'virtual QAccessible::State QAccessibleTable2: :state(int) const': itemviews.cpp:415:49: warning: unused parameter 'child' [-Wunused-parameter] QAccessible::State QAccessibleTable2::state(int child) const ^~~~~ itemviews.cpp: In member function 'virtual QString QAccessibleTable2::text(QAcce ssible::Text, int) const': itemviews.cpp:467:45: warning: unused parameter 'child' [-Wunused-parameter] QString QAccessibleTable2::text(Text t, int child) const ^~~~~ itemviews.cpp: In member function 'virtual QRect QAccessibleTable2::rect(int) co nst': itemviews.cpp:475:35: warning: unused parameter 'child' [-Wunused-parameter] QRect QAccessibleTable2::rect(int child) const ^~~~~ itemviews.cpp: In member function 'virtual QAccessible::Role QAccessibleTable2Ce ll::role(int) const': itemviews.cpp:785:51: warning: unused parameter 'child' [-Wunused-parameter] QAccessible::Role QAccessibleTable2Cell::role(int child) const ^~~~~ itemviews.cpp: In member function 'virtual QAccessible::State QAccessibleTable2C ell::state(int) const': itemviews.cpp:791:53: warning: unused parameter 'child' [-Wunused-parameter] QAccessible::State QAccessibleTable2Cell::state(int child) const ^~~~~ itemviews.cpp: In member function 'virtual QRect QAccessibleTable2Cell::rect(int ) const': itemviews.cpp:837:5: warning: this 'if' clause does not guard... [-Wmisleading-i ndentation] if (!r.isNull()) ^~ itemviews.cpp:839:9: note: ...this statement, but the latter is misleadingly ind ented as if it were guarded by the 'if' r.translate(view->mapToGlobal(QPoint(0, 0))); ^ itemviews.cpp:830:39: warning: unused parameter 'child' [-Wunused-parameter] QRect QAccessibleTable2Cell::rect(int child) const ^~~~~ itemviews.cpp: In member function 'virtual QString QAccessibleTable2Cell::text(Q Accessible::Text, int) const': itemviews.cpp:843:49: warning: unused parameter 'child' [-Wunused-parameter] QString QAccessibleTable2Cell::text(Text t, int child) const ^~~~~ itemviews.cpp: In member function 'virtual void QAccessibleTable2Cell::setText(Q Accessible::Text, int, const QString&)': itemviews.cpp:864:53: warning: unused parameter 'child' [-Wunused-parameter] void QAccessibleTable2Cell::setText(Text /*t*/, int child, const QString &text) ^~~~~ itemviews.cpp: In member function 'virtual QAccessible::Relation QAccessibleTabl e2Cell::relationTo(int, const QAccessibleInterface*, int) const': itemviews.cpp:938:61: warning: unused parameter 'child' [-Wunused-parameter] QAccessible::Relation QAccessibleTable2Cell::relationTo(int child, const QAcces sibleInterface *other, int otherChild) const ^~~~~ itemviews.cpp:938:107: warning: unused parameter 'otherChild' [-Wunused-paramete r] QAccessible::Relation QAccessibleTable2Cell::relationTo(int child, const QAcces sibleInterface *other, int otherChild) const ^~~~~~~~~~ itemviews.cpp: In member function 'virtual QAccessible::Role QAccessibleTable2He aderCell::role(int) const': itemviews.cpp:977:57: warning: unused parameter 'child' [-Wunused-parameter] QAccessible::Role QAccessibleTable2HeaderCell::role(int child) const ^~~~~ itemviews.cpp: In member function 'virtual QAccessible::State QAccessibleTable2H eaderCell::state(int) const': itemviews.cpp:985:59: warning: unused parameter 'child' [-Wunused-parameter] QAccessible::State QAccessibleTable2HeaderCell::state(int child) const ^~~~~ itemviews.cpp: In member function 'virtual QRect QAccessibleTable2HeaderCell::re ct(int) const': itemviews.cpp:991:45: warning: unused parameter 'child' [-Wunused-parameter] QRect QAccessibleTable2HeaderCell::rect(int child) const ^~~~~ itemviews.cpp: In member function 'virtual QString QAccessibleTable2HeaderCell:: text(QAccessible::Text, int) const': itemviews.cpp:1020:55: warning: unused parameter 'child' [-Wunused-parameter] QString QAccessibleTable2HeaderCell::text(Text t, int child) const ^~~~~ mingw32-make[4]: *** [Makefile.Release:2404: tmp/obj/release_static/itemviews.o] Error 1 mingw32-make[4]: Leaving directory 'C:/Qt/4.8.7/src/plugins/accessible/widgets' mingw32-make[3]: *** [Makefile:34: release] Error 2 mingw32-make[3]: Leaving directory 'C:/Qt/4.8.7/src/plugins/accessible/widgets' mingw32-make[2]: *** [Makefile:39: sub-widgets-make_default] Error 2 mingw32-make[2]: Leaving directory 'C:/Qt/4.8.7/src/plugins/accessible' mingw32-make[1]: *** [Makefile:200: sub-accessible-make_default] Error 2 mingw32-make[1]: Leaving directory 'C:/Qt/4.8.7/src/plugins' mingw32-make: *** [Makefile:596: sub-plugins-make_default-ordered] Error 2
Does anyone know what is causing this?
Thanks
-
This output does not show any error messages, please check your compilation again and locate the actual error.
BTW. are you locked to Qt 4.x? It is a very old release.
-
This output does not show any error messages, please check your compilation again and locate the actual error.
BTW. are you locked to Qt 4.x? It is a very old release.
@sierdzio Thanks for the reply, I appreciate it. I apologise for my lack of knowledge.
I ran
configure -release -opensource -confirm-license -static -no-sql-sqlite -no-qt3support -no-opengl -qt-zlib -no-gif -qt-libpng -qt-libmng -no-libtiff -qt-libjpeg -no-dsp -no-vcproj -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-webkit -no-script -no-scripttools -no-declarative -no-declarative-debug -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -nomake demos -nomake examples
I received this message: WARNING: Using static linking will disable the use of plugins.
Make sure you compile ALL needed modules into the library.
Creating qmake...It then said to run mingw32-make. It complied for about 45 minutes and stopped after:
mingw32-make[4]: *** [Makefile.Release:2404: tmp/obj/release_static/itemviews.o] Error 1 mingw32-make[4]: Leaving directory 'C:/Qt/4.8.7/src/plugins/accessible/widgets' mingw32-make[3]: *** [Makefile:34: release] Error 2 mingw32-make[3]: Leaving directory 'C:/Qt/4.8.7/src/plugins/accessible/widgets' mingw32-make[2]: *** [Makefile:39: sub-widgets-make_default] Error 2 mingw32-make[2]: Leaving directory 'C:/Qt/4.8.7/src/plugins/accessible' mingw32-make[1]: *** [Makefile:200: sub-accessible-make_default] Error 2 mingw32-make[1]: Leaving directory 'C:/Qt/4.8.7/src/plugins' mingw32-make: *** [Makefile:596: sub-plugins-make_default-ordered] Error 2
I can't see any other information on these errors.
As for using Qt 4. I attempt to download the newest version but it reaches 97% and then says 'Network error', 'Connection timed out'.
Thanks
-
Hi
Can i ask why you try to compile it yourself?you can just download one from
https://download.qt.io/official_releases/qt/4.8/4.8.7/(or any newer version, which is recommended)
-
Hi
Can i ask why you try to compile it yourself?you can just download one from
https://download.qt.io/official_releases/qt/4.8/4.8.7/(or any newer version, which is recommended)
@mrjj Hi. Thanks for your reply.
I was just following some instructions. It said to download the zip version, extract and then run:
$ configure -release -opensource -confirm-license -static -no-sql-sqlite -no-qt3support -no-opengl -qt-zlib -no-gif -qt-libpng -qt-libmng -no-libtiff -qt-libjpeg -no-dsp -no-vcproj -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-webkit -no-script -no-scripttools -no-declarative -no-declarative-debug -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -nomake demos -nomake examples $ mingw32-make
I encountered an error: 'sub-xmlpatterns-make_default-ordered] Error 2' so made changes to /src/xmlpatterns/api/qcoloroutput_p.h after finding the solution through a search, and compiled again and then came across another error further on, which I posted above. Are you saying I don't even need to compile it, I can just download the Zip version and extract it? Why would instructions say I need to compile it if that's not necessary?
As you can probably tell, I'm really new to this. Thanks for your time.
-
Hi,
No, not the zip file. The installer pointed to by @mrjj. But as suggest you should rather use Qt 5 as Qt 4 as reached end of life.
As for the download problem, did you consider changing the mirror used ?
-
@mrjj Hi. Thanks for your reply.
I was just following some instructions. It said to download the zip version, extract and then run:
$ configure -release -opensource -confirm-license -static -no-sql-sqlite -no-qt3support -no-opengl -qt-zlib -no-gif -qt-libpng -qt-libmng -no-libtiff -qt-libjpeg -no-dsp -no-vcproj -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-webkit -no-script -no-scripttools -no-declarative -no-declarative-debug -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -nomake demos -nomake examples $ mingw32-make
I encountered an error: 'sub-xmlpatterns-make_default-ordered] Error 2' so made changes to /src/xmlpatterns/api/qcoloroutput_p.h after finding the solution through a search, and compiled again and then came across another error further on, which I posted above. Are you saying I don't even need to compile it, I can just download the Zip version and extract it? Why would instructions say I need to compile it if that's not necessary?
As you can probably tell, I'm really new to this. Thanks for your time.
@Instigator said in Problem Compiling Qt 4.8.7 on Windows 7:
Why would instructions say I need to compile it if that's not necessary?
Because for some people it might be necessary. But that's advanced stuff. If you want to start, use the installer as pointed out by @mrjj and @SGaist.
And in any case, don't start new development with Qt 4. Use Qt 5.9.x or 5.10.
Regards.
-
@Instigator said in Problem Compiling Qt 4.8.7 on Windows 7:
Why would instructions say I need to compile it if that's not necessary?
Because for some people it might be necessary. But that's advanced stuff. If you want to start, use the installer as pointed out by @mrjj and @SGaist.
And in any case, don't start new development with Qt 4. Use Qt 5.9.x or 5.10.
Regards.
@aha_1980 @mrjj @SGaist Thanks everyone for the help. I downloaded qt-opensource-windows-x86-5.10.0.exe from official_releases/qt/5.10/5.10.0/ and I'm installing it now, though have just received an installation error, which I had to click Ignore to continue:
Cannot start: "{0,3010,1603, 5100} msiexec/i C:\Qt\\tools\Perl52213\strawberry-perl-5.22.1.3-32bit.msi /quiet": Process failed to start: No such file or directory.
-
@aha_1980 @mrjj @SGaist Thanks everyone for the help. I downloaded qt-opensource-windows-x86-5.10.0.exe from official_releases/qt/5.10/5.10.0/ and I'm installing it now, though have just received an installation error, which I had to click Ignore to continue:
Cannot start: "{0,3010,1603, 5100} msiexec/i C:\Qt\\tools\Perl52213\strawberry-perl-5.22.1.3-32bit.msi /quiet": Process failed to start: No such file or directory.
@Instigator: It tries to install Perl, which fails for some reason (I think this is a known bug, I read about this already).
I think that is nothing to worry about - you should be able to start coding now :)