no Qt platform plugin could be initialized

Feel free to ask any question here
Post Reply
AntoninoC
Posts: 3
Joined: Tue Oct 26, 2021 12:38 pm

no Qt platform plugin could be initialized

Post 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
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: no Qt platform plugin could be initialized

Post 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.
Daniel, CloudCompare admin
dlauener
Posts: 3
Joined: Tue Apr 16, 2024 7:07 am

Re: no Qt platform plugin could be initialized

Post 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
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: no Qt platform plugin could be initialized

Post by daniel »

That's weird... Have you tried a clean uninstall/reinstall process?
Daniel, CloudCompare admin
dlauener
Posts: 3
Joined: Tue Apr 16, 2024 7:07 am

Re: no Qt platform plugin could be initialized

Post 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
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: no Qt platform plugin could be initialized

Post by daniel »

Which version of Windows are you using?
Daniel, CloudCompare admin
dlauener
Posts: 3
Joined: Tue Apr 16, 2024 7:07 am

Re: no Qt platform plugin could be initialized

Post by dlauener »

I'm using Windows 10 Pro / v10.0.19045
CPU: AMD Ryzen 9 5900X / 12 cores
RAM: 96 GB
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: no Qt platform plugin could be initialized

Post 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.
Daniel, CloudCompare admin
Post Reply