Hi Mario,
I'd say, prefer the mingw variant, but this is a delicate recommendation. I
haven't tried to build Qt5 myself since the script exists, so I'm not able
to give you any info.
I do know that Qt configure generates MSYS makefiles so you'll need MSYS
make, not mingw32-make to actually build it.
Ruben
2016-03-24 11:03 GMT+01:00 Mario Emmenlauer <ma...@emmenlauer.de>:
>
> Hi Ruben,
>
> thanks for this very very good pointer!! I did not dare look behind
> the scenes of the MinnGW packages, but it turns out that was my
> mistake, they are indeed readable, and helpful! :-)
>
> One more question, if I may: in the PKGBUILD you pointed out, there
> seems to be a "wild" :-) mix of recommended packages from mingw and msys.
> Is there an easy beginners guideline which package to prefer if both
> exist, something like: always prefer mingw-package over msys-package?
> Should I use python2 from msys or mingw? Or install both? For another
> build, I tried cmake from msys and miserably failed, whereas cmake from
> mingw worked out of the box. Is mingw usually "preferable"?
>
> Thanks for your help, and all the best,
>
> Mario
>
>
>
>
> On 24.03.2016 10:47, Ruben Van Boxem wrote:
> > Hi Mario,
> >
> >
> > A thing as large as Qt is quite daunting to get to work, often because
> each little thing you try requires a full rebuild to make sure the change
> was actually
> > propagated through all the layers of the build system.
> >
> > I would suggest starting from the PKGBUILD for the binary package, which
> includes the exact commands, dependencies, and options used to build the Qt
> package you
> > already found. It is located here:
> >
> https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-qt5/PKGBUILD
> >
> > It's quite a monster, but most of that is to suppor the static build and
> making it work with the other MSYS2 libraries instead of those included
> with Qt.
> >
> > Make sure you have all the prerequisite libraries (the "depends" and
> "makedepends" arrays) and try to figure out a sane set of configure
> options. In the worst
> > case just add an "echo" in front of line 541 <
> https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-qt5/PKGBUILD#L541>,
> so you can see what is used
> > for the MSYS2 package.
> >
> > Hope this helps!
> >
> > Qt 4 was simpler, but also less configurable.
> >
> > Good luck!
> >
> > Ruben
> >
> > 2016-03-24 9:56 GMT+01:00 Mario Emmenlauer <ma...@emmenlauer.de <mailto:
> ma...@emmenlauer.de>>:
> >
> >
> > Dear All,
> >
> > thanks for the awesome mingw64, and for the equally awesome msys2.
> > Installation has been almost trivial, very nice work!
> >
> > For the learning experience, I'm trying to compile Qt 5.5.1 for
> x86_64,
> > but I fail. It goes quite a while, but then it fails with:
> > g++ -c -include .pch/release/qt_pch.h -pipe
> -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -Wall
> -Wextra -DUNICODE -DQT_NO_MTDEV
> > -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT
> -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_PLATFORMSUPPORT_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_NO_EXCEPTIONS
> -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iaccessibility
> -Idbusmenu -I../gui/kernel
> > -Idbustray -I../gui/kernel -I../../include
> -I../../include/QtPlatformSupport -I../../include/QtPlatformSupport/5.5.1
> > -I../../include/QtPlatformSupport/5.5.1/QtPlatformSupport -Itmp
> -I../../include/QtCore/5.5.1 -I../../include/QtCore/5.5.1/QtCore
> -I../../include/QtGui/5.5.1
> > -I../../include/QtGui/5.5.1/QtGui -I../../include/QtGui
> -I../../include/QtDBus -I../../include/QtCore -I.moc/release
> -I../../mkspecs/win32-g++ -o
> > .obj/release/qdbusmenuconnection.o dbusmenu/qdbusmenuconnection.cpp
> >
> > In file included from dbustray/qdbustrayicon_p.h:55:0,
> >
> > from dbusmenu/qdbusmenuconnection.cpp:35:
> >
> >
>
> ../../include/QtPlatformSupport/5.5.1/QtPlatformSupport/private/qdbusmenuconnection_p.h:1:79:
> fatal error:
> > ../../../../../src/platformsupport/dbusmenu/qdbusmenuconnection_p.h:
> No such file or directory
> >
> > compilation terminated.
> >
> >
> >
> > When I follow all the relative paths, the header is there:
> >
>
> ../../include/QtPlatformSupport/5.5.1/QtPlatformSupport/private/../../../../../src/platformsupport/dbusmenu/qdbusmenuconnection_p.h
> >
> > But I could not find out if g++ is supposed to resolve the relative
> path
> > relative to the included header? Strangely enough, I can not find
> any-
> > thing related to this error on the web, so it must be something I'm
> > doing wrong? I'm a bit lost where to report this. Is it Qt related,
> or
> > something g++ should do (differently), or an msys2-setting I did
> wrong?
> >
> > Thanks for any pointers, and all the best,
> >
> > Mario
> >
> >
> >
> > PS: I've seen that Qt is also packaged with msys2, but I was hoping
> to
> > have a good learning experience by compiling it myself. Does someone
> > have experience how hard it is to get basic functionality working?
>
>
>
> Viele Gruesse,
>
> Mario Emmenlauer
>
>
> --
> BioDataAnalysis GmbH, Mario Emmenlauer Tel. Buero: +49-89-74677203
> Balanstr. 43 mailto: memmenlauer * biodataanalysis.de
> D-81669 München http://www.biodataanalysis.de/
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public