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 <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.kalinow...@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-boun...@qt-project.org > <mailto:interest-boun...@qt-project.org>> On Behalf Of Nuno Santos > Sent: Thursday, January 17, 2019 12:12 PM > To: Tony Rietwyk <t...@rightsoft.com.au <mailto:t...@rightsoft.com.au>> > Cc: interest@qt-project.org <mailto:interest@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 <t...@rightsoft.com.au > <mailto:t...@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/ <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@qt-project.org <mailto:Interest@qt-project.org> > https://lists.qt-project.org/listinfo/interest > <https://lists.qt-project.org/listinfo/interest> > _______________________________________________ > Interest mailing list > Interest@qt-project.org <mailto:Interest@qt-project.org> > https://lists.qt-project.org/listinfo/interest > <https://lists.qt-project.org/listinfo/interest> >
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest