[Interest] Need help to configure qt6 under Windows 10

Liang Jian jianliang79 at gmail.com
Wed Mar 3 11:17:13 CET 2021


    Hi Kai, I have attached the configure log which is generated with the
following command:

..\qt5\configure.bat -prefix ..\qt6-win64 -developer-build -opengl desktop
> -D QT_NO_BUILD_TESTS=ON -D QT_NO_MAKE_EXAMPLES=ON -skip qt3d -skip
> qtwebengine > configure.log 2>&1


    I hope that will help you to find the issue, thanks.

On Wed, Mar 3, 2021 at 5:38 PM Kai Köhne <Kai.Koehne at qt.io> wrote:

>
>
> > Von: Interest <interest-bounces at qt-project.org> Im Auftrag von Liang
> Jian
> > Gesendet: Mittwoch, 3. März 2021 09:43
> > An: Macieira, Thiago <thiago.macieira at intel.com>
> > Cc: Interest <interest at qt-project.org>
> > Betreff: Re: [Interest] Need help to configure qt6 under Windows 10
> >
> >    Thank you for the suggestion. Since all the documentations I have
> read so far tell me to build qt6 with configure first, such
> > as https://wiki.qt.io/Building_Qt_6_from_Git , I have no idea how to
> configure and build qt6 using CMake directly since qt
> > build  system is so complex. Do you know is there any documentation on
> the web to teach one how to configure and build qt6 > with  CMake directly?
> Thanks.
>
> I think this is a red herring. configure (which has a nicer command line,
> and therefore still is the officially recommended way, see
> https://doc.qt.io/qt-5/configure-options.html) just calls cmake, and the
> used cmake arguments are printed on the very first line.
>
> Can you paste the full output of the configure tool? You can redirect the
> output to a file:
>
>   ..\qt5\configure.bat -prefix ..\qt6-win64 -developer-build -opengl
> >configure.log 2>&1
>
> Regards
>
> Kai
>
> On Wed, Mar 3, 2021 at 3:32 AM Thiago Macieira <mailto:
> thiago.macieira at intel.com> wrote:
> On Tuesday, 2 March 2021 01:26:45 PST Liang Jian wrote:
> > Hi everyone, I have a problem configuring qt6 under Windows 10, msvc
> 2019.
> > My building environment is as follows:
> >     1) I use the latest qt 6.1 branch from git
> >     2) I have msvc 2019 installed under a windows 10 x64 machine
> >     3) I have installed cmake 3.19.6 and copied the latest ninja.exe to
> > cmake installation path (which is C:\Program Files\CMake\bin) and I am
> sure
> > when I build qt6 from source cmake used is the one installed by me
> instead
> > of the one installed with msvc
>
> Ninja isn't mandatory, but a good idea.
>
> >     4) I have installed Active perl 5.4.2/Active python 2.7.2
> >
> >     I build qt6 with the following commands:
> > >     mkdir qt6-build
> > >     cd qt6-build
> > >     ..\qt5\configure.bat -prefix ..\qt6-win64 -developer-build -opengl
>
> Don't use the configure scripts any more. Please use CMake directly.
>
> >     I just can't figure out where the error comes from. I have no clue
> how
> > I can solve this configuration error.
> >     CMakeOutput.log and CMakeError.log have been attached.
> >     Any suggestion is welcome! Thanks
>
> The CMake logs aren't useful if the problem isn't compiling something.
> Please
> paste the entire output from CMake.
>
> We may need a run with --trace-expand to find out the decisions it made.
>
> I spent over one hour to get past the "cmake" step yesterday on macOS. I
> have
> not started on Windows. Will probably do that in June.
>
> --
> Thiago Macieira - thiago.macieira (AT) http://intel.com
>   Software Architect - Intel DPG Cloud Engineering
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210303/06029c45/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 54170 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210303/06029c45/attachment-0001.obj>


More information about the Interest mailing list