[Interest] Need help to configure qt6 under Windows 10

Liang Jian jianliang79 at gmail.com
Wed Mar 3 14:30:09 CET 2021


    Ok, Now I know the problem, I clone qt git repository and run

> perl init-repository

    which will clone all the sub-repository of qt, I have removed some will
known sub-modules which are not meant to be supported until qt 6.2 but
there are more sub-module I have to remove. I will check them one by one.
Thank you so much!

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

> Hi Liang,
>
>
>
> Searching for ‘CMake error’ shows up
>
>
>
> Configuring 'qtgraphicaleffects'
>
> CMake Error at qtbase/cmake/QtPluginHelpers.cmake:69 (add_library):
>
>   add_library cannot create target "qtgraphicaleffectsplugin" because
> another
>
>    target with the same name already exists.  The existing target is a
> module
>
>    library created in source directory
>
>    "E:/qt5/qt5compat/src/imports/graphicaleffects5".  See documentation for
>
>    policy CMP0002 for more details.
>
> Call Stack (most recent call first):
>
>   E:/qt6-build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:81
> (qt_internal_add_plugin)
>
>    qtgraphicaleffects/src/effects/CMakeLists.txt:7
> (qt_internal_add_qml_module)
>
>
>
> qgraphicaleffects is not part of qt 6 (see also
> https://doc-snapshots.qt.io/qt6-dev/whatsnew60.html#removed-modules-in-qt-6-0
> ). I assume you’ve been cloning from git? Please make sure to only clone
> submodules that are part of the respective release. This is easiest done by
>  a) Cloning qt5.git b) checking out the right branch/tag , and c) only then
> running perl init-repository.
>
>
>
> Regards
>
>
>
> Kai
>
>
>
>
>
>
>
> *Von:* Liang Jian <jianliang79 at gmail.com>
> *Gesendet:* Mittwoch, 3. März 2021 11:17
> *An:* Kai Köhne <Kai.Koehne at qt.io>
> *Cc:* Macieira, Thiago <thiago.macieira at intel.com>; Interest <
> interest at qt-project.org>
> *Betreff:* Re: [Interest] Need help to configure qt6 under Windows 10
>
>
>
>     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/7541c8fc/attachment.html>


More information about the Interest mailing list