Desktop: No Qt platform plugin in Windows

Created on 28 Sep 2018  路  3Comments  路  Source: nextcloud/desktop

Hi,

I'm trying to set up an environment to compile the client in Windows.

I tried compiling dependencies following this doc (https://github.com/nextcloud/desktop/blob/master/doc/building.rst) and this (https://github.com/nextcloud/desktop/wiki/How-to-compile-the-desktop-client). Tried compiling using MinGW and MSVC.

When trying to compile with MinGW, the cmake will complain about not finding the package "Qt5WebEngineWidgets".

When trying to compile with MSVC, I managed to compile all dependencies and the client but when executing the nextcloud.exe I receive a lot of errors about loading libraries (Qt5Xml.dll, qt5keychain.dll and libcrypto-1_1-x64.dll). If I get these dlls and copy to the root, the client throws an exception (0xc000007b). If I add to PATH the folders where these dlls are from, the .exe shows an error about finding no Qt platform plugin.

Can anyone help me setting up the environment to compile in Windows?

Thanks in advance.

Most helpful comment

@wdehoog it worked. The problem was just I wasn't using the windeployqt tool to put together the dependencies.

All 3 comments

Here is another howto: https://github.com/nextcloud/client-building maybe it helps you finding the problem.

@wdehoog it worked. The problem was just I wasn't using the windeployqt tool to put together the dependencies.

@andresantacruz I also got that error. How did you use windeployqt tool?

Was this page helpful?
0 / 5 - 0 ratings