Results 1 to 3 of 3

Thread: qt-everywhere 5.14.1 build error under MSYS2

  1. #1
    Join Date
    Nov 2008
    Posts
    180
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default qt-everywhere 5.14.1 build error under MSYS2

    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.

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    451
    Thanks
    9
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qt-everywhere 5.14.1 build error under MSYS2

    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

  3. #3
    Join Date
    Nov 2008
    Posts
    180
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qt-everywhere 5.14.1 build error under MSYS2

    Quote Originally Posted by Ginsengelf View Post
    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.

    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.

Similar Threads

  1. Replies: 5
    Last Post: 30th January 2020, 17:01
  2. Qt Static Build - Build error g++
    By dan3460 in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2017, 09:19
  3. Replies: 14
    Last Post: 2nd August 2015, 22:07
  4. Replies: 0
    Last Post: 29th February 2012, 09:48
  5. Qt 4.4.3 build error
    By anoop7181 in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2012, 04:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.