PDA

View Full Version : qt-everywhere 5.14.1 build error under MSYS2



RolandHughes
31st March 2020, 13:55
All,

Man, an entire day compiling from source.

./configure -opensource -confirm-license -release -skip qtwebengine -opengl desktop -qt-sqlite -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz -nomake examples -nomake tests -prefix /usr/local/qt-5-14-1 -platform win32-g++ -silent

mingw32-make -j 4

make was clean or at least didn't abend.

mingw32-make install

Looks like it is back to building whatever you skipped.

moc qgeocoordinate.h
compiling .moc/moc_qgeocoordinate.cpp
moc qgeopositioninfosource.h
compiling .moc/moc_qgeopositioninfosource.cpp
moc qgeosatelliteinfosource.h
compiling .moc/moc_qgeosatelliteinfosource.cpp
moc qnmeapositioninfosource.h
compiling .moc/moc_qnmeapositioninfosource.cpp
moc qgeopolygon.h
compiling .moc/moc_qgeopolygon.cpp
moc qgeopath.h
compiling .moc/moc_qgeopath.cpp
moc qnmeapositioninfosource_p.h
compiling .moc/moc_qnmeapositioninfosource_p.cpp
moc qgeopath_p.h
compiling .moc/moc_qgeopath_p.cpp
moc qgeopolygon_p.h
compiling .moc/moc_qgeopolygon_p.cpp
moc qgeocoordinateobject_p.h
compiling .moc/moc_qgeocoordinateobject_p.cpp
windres -i Qt5Positioning_resource.rc -o .obj/Qt5Positioning_resource_res.o --include-dir=. -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_POSITIONING_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB
linking ../../lib/Qt5Positioning.dll
g++.exe: error: G:/qt-everywhere-src-5.14.1/qtlocation/lib/libclip2tri.a: No such file or directory
g++.exe: error: G:/qt-everywhere-src-5.14.1/qtlocation/lib/libpoly2tri.a: No such file or directory
g++.exe: error: G:/qt-everywhere-src-5.14.1/qtlocation/lib/libclipper.a: No such file or directory
mingw32-make[3]: *** [Makefile:201: ../../lib/Qt5Positioning.dll] Error 1
mingw32-make[3]: Leaving directory 'G:/qt-everywhere-src-5.14.1/qtlocation/src/positioning'
mingw32-make[2]: *** [Makefile:145: sub-positioning-install_subtargets] Error 2
mingw32-make[2]: Leaving directory 'G:/qt-everywhere-src-5.14.1/qtlocation/src'
mingw32-make[1]: *** [Makefile:64: sub-src-install_subtargets] Error 2
mingw32-make[1]: Leaving directory 'G:/qt-everywhere-src-5.14.1/qtlocation'
mingw32-make: *** [Makefile:830: module-qtlocation-install_subtargets] Error 2

Is there a way around this issue to make install complete? I don't need location or any of the stuff I skipped. I just need to compile one KeyEventExample program so I can finish filing a bug report with GnuEmacs. Volunteered to test this under Windows and not just linux.

Ginsengelf
3rd April 2020, 10:09
Hi, check configure --help, there should be some option to disable the location library. This might also be usefull: https://doc.qt.io/qt-5/configure-options.html

Ginsengelf

RolandHughes
3rd April 2020, 13:44
Hi, check configure --help, there should be some option to disable the location library. This might also be usefull: https://doc.qt.io/qt-5/configure-options.html

Ginsengelf

Yeah, I was hoping someone had walked the trail of tears before me. No such luck.

Here is what you have to do to build under Msys2 (http://www.logikalsolutions.com/wordpress/information-technology/compiling-qt-5-14-under-msys2/).

5.14 certainly isn't in good condition.

make install certainly hasn't been fixed. That bug has been there since version 5 first came out. Make lets you skip stuff, completes successfully. Then you issue make install (where you can't really use a -j option) And it runs off building a bunch of other (&)(*&)(. It takes you a lot of tries to figure out what won't build under Msys.