[Development] Compiling QT 5.7 Windows 64-bit

Partha Bagchi partha1b at gmail.com
Wed Mar 30 04:25:36 CEST 2016


On Tue, Mar 29, 2016 at 8:35 PM, Partha Bagchi <partha1b at gmail.com> wrote:

>
>
> On Tue, Mar 29, 2016 at 1:05 AM, Andreas Holzammer <
> andreas.holzammer at kdab.com> wrote:
>
>> Hey,
>>
>> this got fixed in the 5.6 branch and did not get forward merged yet.
>> https://codereview.qt-project.org/#/c/153305/
>> Please use that patch and the c++11 error should go away.
>>
>> Thank you
>>
>> Andy
>>
>> Am 29.03.2016 um 03:57 schrieb Thiago Macieira:
>> > On segunda-feira, 28 de março de 2016 21:33:11 PDT Partha Bagchi wrote:
>> >> EXTRA_CXXFLAGS = -std=c++11 -DUNICODE -ffunction-sections
>> >
>> > It's there, but it's not in your command-line, which had:
>> >
>> > g++ -c -o project.o -DUNICODE -g   -IZ:/src/qt5/qtbase/qmake
>> >
>> > It's missing two options. I don't know how or why. From what I can see
>> in the
>> > Makefile, it should be impossible.
>> >
>>
>> OK, I think I applied the patch properly. Here is what I did:
> git fetch https://codereview.qt-project.org/qt/qtbase
> refs/changes/05/153305/4 && git format-patch -1 --stdout FETCH_HEAD
>
> One question, do I run mingw32-make from the cmd subshell or should I try
> to run make from the regular shell?
>
> I configured within the cmd subshell with the following command:
>
> configure -prefix Z:/opts/opt64-kde  -opensource -confirm-license
> -optimized-tools -shared -nomake tests -nomake examples -release -opengl
> desktop -openssl -glib -qt-style-windows -I Z:\opts\opt64-kde\include -I
> Z:\opts\opt64-kde\include/freetype2 -I Z:\opts\opt64-kde\include/glib-2.0
> -L Z:\opts\opt64-kde\lib -l glib-2.0 -l intl -l fontconfig -l freetype -l
> harfbuzz -fontconfig -system-zlib -system-libpng -system-harfbuzz
> -system-freetype -system-libjpeg -icu -largefile -wmf-backend
>
>
> Another question. After you run configure from the subshell, you get the
> following message:
>
> Qt is now configured for building. Just run mingw32-make.
> To reconfigure, run mingw32-make confclean and configure.
>
> However, mingw32-make confclean gives an error:
>
> Z:\src\kde\qt5>mingw32-make confclean
> mingw32-make: *** No rule to make target 'confclean'.  Stop.
>
> Perhaps it's time to change this message? :)
>
> Thanks,
> Partha
>
>
>> --
>> Andreas Holzammer | andreas.holzammer at kdab.com | Senior Software Engineer
>> KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
>> Tel: +49-30-521325470
>> KDAB - The Qt Experts
>>
>>
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development
>>
>>
> I went ahead and ran make from the msys shell. I now get the following
error:

g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++1z -fno-exceptions
-frtti -Wall -Wextra -Wvla -Wdate-time -DUNICODE -DQ_FONTCONFIGDATABASE
-DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -I. -IZ:/opts/opt64-kde/include
-IZ:/opts/opt64-kde/include/freetype2 -IZ:/opts/opt64-kde/include/glib-2.0
-I../../../../include -I../../../../include/QtPlatformSupport
-I../../../../include/QtPlatformSupport/5.7.0
-I../../../../include/QtPlatformSupport/5.7.0/QtPlatformSupport
-I../../../../include/QtGui/5.7.0 -I../../../../include/QtGui/5.7.0/QtGui
-I../../../../include/QtGui -I../../../../include/QtCore/5.7.0
-I../../../../include/QtCore/5.7.0/QtCore -I../../../../include/QtCore
-I.moc/release -I../../../../mkspecs/win32-g++  -o
.obj/release/qminimalintegration.o qminimalintegration.cpp
qminimalintegration.cpp: In member function 'virtual QPlatformFontDatabase*
QMinimalIntegration::fontDatabase() const':
qminimalintegration.cpp:123:34: error: 'QGenericUnixFontDatabase' does not
name a type
             m_fontDatabase = new QGenericUnixFontDatabase;
                                  ^
Makefile.Release:916: recipe for target
`.obj/release/qminimalintegration.o' failed
make[6]: *** [.obj/release/qminimalintegration.o] Error 1
make[6]: Leaving directory
`/usr/src/kde/qt5/qtbase/src/plugins/platforms/minimal'
Makefile:34: recipe for target `release' failed
make[5]: *** [release] Error 2
make[5]: Leaving directory
`/usr/src/kde/qt5/qtbase/src/plugins/platforms/minimal'
Makefile:39: recipe for target `sub-minimal-make_first' failed
make[4]: *** [sub-minimal-make_first] Error 2
make[4]: Leaving directory `/usr/src/kde/qt5/qtbase/src/plugins/platforms'
Makefile:95: recipe for target `sub-platforms-make_first' failed
make[3]: *** [sub-platforms-make_first] Error 2
make[3]: Leaving directory `/usr/src/kde/qt5/qtbase/src/plugins'
Makefile:661: recipe for target `sub-plugins-make_first' failed
make[2]: *** [sub-plugins-make_first] Error 2
make[2]: Leaving directory `/usr/src/kde/qt5/qtbase/src'
Makefile:41: recipe for target `sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory `/usr/src/kde/qt5/qtbase'
Makefile:83: recipe for target `module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160329/d815aa34/attachment.html>


More information about the Development mailing list