Page 1 of 1

no Qt platform plugin could be initialized

Posted: Mon Nov 29, 2021 3:36 pm
by AntoninoC
Hi,
I downloaded the CloudCompare code using git and after changing some lines of code in the ccCommandLine file i created a new CloudCompare.exe file. I would like to use this new application on different machine, so i created an installer using VisualStudio2019.

After this, I installed the new executable on a new pc and the error I get is the following:

"This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: windows."

Am I missing any libraries?
Could you help me?

Thanks!
Best regards

Re: no Qt platform plugin could be initialized

Posted: Mon Nov 29, 2021 8:23 pm
by daniel
Ah, it's probably because you don't compile CC with the same compiler and dependencies as the official version.

Normally, you are not supposed to do it this way... You should create a plugin with its own command line option (that's now supported) and then only distribute the plugin (changing the executable is dangerous and you may infringe the GPL license depending on whether your modifications are public or not).

Another option is of course to share your changes with everyone and integrate it in the main branch / project.

Re: no Qt platform plugin could be initialized

Posted: Tue Apr 16, 2024 7:10 am
by dlauener
Hello,

This is still the case with 2.13.1 version (CloudCompare_v2.13.1_setup_x64.exe) from March 2024, source:
https://www.cloudcompare.org/release

Obviously, I did not compile anything, just downloaded the fresh new installer of this wonderful tool.
BTW: congrats for the job achieved: amazing !

Kind regards

Dany

Re: no Qt platform plugin could be initialized

Posted: Thu Apr 18, 2024 12:11 pm
by daniel
That's weird... Have you tried a clean uninstall/reinstall process?

Re: no Qt platform plugin could be initialized

Posted: Wed Apr 24, 2024 7:28 am
by dlauener
Yes Daniel,
I did the following:
- run command line in admin mode:

Code: Select all

sfc/scannow
errors corrected...
- upgrade graphic driver ... (AMD Radeon is hidden there, but everything was working fine previously!)
- uninstall / install fresh with and without Python & 3DFin plugins
- uninstall / install fresh with and without Faro
- uninstall / install fresh with no plugin at all

About Qt: another software using Qt 5.15.2 is running perfectly on the machine (as before).
Any idea welcome

Re: no Qt platform plugin could be initialized

Posted: Sat Apr 27, 2024 5:18 am
by daniel
Which version of Windows are you using?

Re: no Qt platform plugin could be initialized

Posted: Mon May 27, 2024 2:07 pm
by dlauener
I'm using Windows 10 Pro / v10.0.19045
CPU: AMD Ryzen 9 5900X / 12 cores
RAM: 96 GB

Re: no Qt platform plugin could be initialized

Posted: Wed May 29, 2024 5:50 pm
by daniel
Or maybe that's a super smart protection to prevent people from creating their own installer of Cloudcompare and infringing the GPL license ;)

Just kidding. The only other culprit I see is the Visual Studio 2019 Installation framework you used. I don't know anything about it, but I guess an installer has the power to mess up with system files, Dlls, WinSxS, etc.