[Interest] Qt 5.12 for Windows (Static)
Nuno Santos
nunosantos at imaginando.pt
Fri Jan 18 08:29:31 CET 2019
Markus,
Curious…
I’ve been build Qt from source on Windows with JOM for the last 4 years and I have never ran into this problem before… lucky?
Thanks for your feedback!
Best regards,
Nuno
> On 18 Jan 2019, at 05:59, Markus Maier <markus.maier.sw at gmail.com> wrote:
>
> Which kind of make are you using?
>
> There is QTBUG-53393, and I believe I ran into this at least with Qt
> 5.9 static msvc builds, using jom for multicore builds. Switching to
> nmake made all my issues go. For dynamic builds, jom always has worked
> for me for the "make" step.
>
> For the "make install" step, I use nmake in any case (both dynamic and
> static), I experienced some issues with "jom install" quite some time
> ago (quite a lot of "0 files copied" entries in the build output ...)
> which were also completely solved by switching to nmake. I found it
> impossible to create a MCVE in this case, so I never reported a bug
> for this ...
>
> Best regards
> Markus
>
> Am Do., 17. Jan. 2019 um 15:29 Uhr schrieb Nuno Santos
> <nunosantos at imaginando.pt>:
>>
>> Maurice,
>>
>> It doesn't work with Qt Examples as well.
>>
>> This is a new machine and I have installed Visual Studio Community 2017, Python 3.7.2 and Perl Strawberry 5.28.
>>
>> Created the dir C:\Qt\5.12.0\ and inside I have created a qt_5.12_64_vars.cmd file with the following content:
>>
>> CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
>> SET _ROOT=C:\Qt\5.12.0\src\
>> SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%;C:\Users\sinos\AppData\Local\Programs\Python\Python37-32\
>> SET _ROOT=
>>
>> Then I call the following commands from git bash:
>>
>> 1) git clone git://code.qt.io/qt/qt5.git src
>> 2) perl init-repository -f --module-subset=qtbase,qtdeclarative,qtgraphicaleffects,qtimageformats,qtquickcontrols,qtquickcontrols2,qtwinextras,qtsvg,qtwebsockets
>>
>> Next, opened a visual studio 2017 command line prompt and changed dir to c:\Qt\5.12.0\ and executed qt_5.12_64_vars.cmd and then:
>>
>>> configure -confirm-license -recheck -prefix c:\qt\5.12.0\msvc2017_5_12_static_64 -commercial -debug-and-release -static -static-runtime -nomake examples -nomake tools -nomake tests -opengl dynamic -openssl-linked -I c:\openssl-lib\include64 -L c:\openssl-lib\lib64 OPENSSL_LIBS="libeay32MT.lib ssleay32MT.lib" -qtnamespace com_imaginando_qt_5_12_64
>>
>> As I'm linking with openssl, the test that checks if openssl is available was failing and after some debugging I found that the reason was some missing symbols. In order to fix this I edited msvc-desktop.conf under C:\Qt\5.12.0\src\qtbase\mkspecs\common and added the following libs to QMAKE_LIBS
>>
>> QMAKE_LIBS = kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib gdi32.lib
>>
>> After that it compiled smoothly until the end. And this is where I am now.
>>
>>
>>
>> Can you spot anything wrong?
>>
>> Thanks!
>>
>> Best regards,
>>
>> Nuno
>>
>> On 17 Jan 2019, at 11:32, Maurice Kalinowski <Maurice.Kalinowski at qt.io> wrote:
>>
>> Those are windows related and resolved during runtime.
>>
>> Maybe you could post your exact configure line, so that others can try to reproduce it? Also which modules of Qt are you using?
>> Does it work for Qt examples?
>>
>> Maurice
>>
>>
>> From: Interest <interest-bounces at qt-project.org> On Behalf Of Nuno Santos
>> Sent: Thursday, January 17, 2019 12:12 PM
>> To: Tony Rietwyk <tony at rightsoft.com.au>
>> Cc: interest at qt-project.org
>> Subject: Re: [Interest] Qt 5.12 for Windows (Static)
>>
>> Tony,
>>
>> It actually ended up something. There are a lot of issues. Can anyone understand what is happening?
>>
>> Thanks!
>>
>> Nuno
>>
>> <image001.png>
>>
>>
>> On 17 Jan 2019, at 10:55, Tony Rietwyk <tony at rightsoft.com.au> wrote:
>>
>> Hi Nuno,
>>
>> Are you sure that the static build of Qt worked?
>>
>> What happens when you start the debugging by single stepping? In my dynamically built exe, I get to qtmain_win.cpp, WinMain routine. If the single step works, how far do you get? If it doesn't, then I think you may be picking up the wrong runtime dlls - check the path env var. My understanding is that a statically built exe still needs dynamic linking to the c/c++ runtime? Try running the exe via MS depends utility from http://www.dependencywalker.com/
>>
>> Hope that helps,
>>
>>
>> On 17/01/2019 8:06 pm, Nuno Santos wrote:
>>
>>
>> Hi,
>>
>> I have just compiled a fresh Qt 5.12.1 from the source statically on Windows but I’m having a basic problem.
>>
>> Any application that I run, crashes immediately, even the Qt Creator project templates, like que Qt Quick application template.
>>
>> I don’t have a clue of what is going on. Any ideas on how to get more information to eventually fill a bug report?
>>
>> Thanks!
>>
>> Nuno
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>>
>>
>>
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://lists.qt-project.org/listinfo/interest
More information about the Interest
mailing list