[Interest] Qt 5.12 for Windows (Static)

Francisco Ares frares at gmail.com
Thu Jan 17 14:44:50 CET 2019


Em qui, 17 de jan de 2019 às 10:44, Maurice Kalinowski <
Maurice.Kalinowski at qt.io> escreveu:

> 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
>
>
>
>
>
> 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
>


I've built static Qt 5.12 using these steps, it can be used as a batch
file, as long as the paths are corrected:


REM Download Qt Source Packages from https://download.qt.io/archive/qt/
(look for the ZIP package, like
https://download.qt.io/archive/qt/5.12/5.12.0/single/qt-everywhere-src-5.12.0.zip),
and unzip it to the base directory in your hard drive; you'll need plenty
of disk space;
REM Choose the latest Python from https://www.python.org/downloads/release
and install it; you may remove after Qt is built and installed;
REM Choose the latest ActivePerl from http://www.activestate.com/activeperl
and install it; you may remove after Qt is built and installed;
REM Adjust the versions bellow, and run the following lines.

set PATH=%PATH%;C:\Qt\Tools\mingw730_64\bin;C:\Program
Files\Python\Python37;C:\Perl64\bin
C:
cd C:\Qt\5.12.0\Src

configure -v -opensource -confirm-license -release -no-optimize-size
-optimized-tools -strip -static -static-runtime -gc-binaries -c++std c++14
-make-tool mingw32-make -mp -silent -opengl desktop -qpa windows -gif -ico
-sql-sqlite -no-gstreamer -no-compile-examples
mingw32-make
mingw32-make install

That's it, hope it helps.

Best Regards,
Francisco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190117/377535ce/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 235355 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190117/377535ce/attachment.png>


More information about the Interest mailing list