Exe would not load qwindows.dll

Discuss issues related to installing or building
Post Reply
daniele.trimarchi
Posts: 1
Joined: Tue Sep 03 2024 9:24 am

Exe would not load qwindows.dll

Post by daniele.trimarchi »

Hi,
I have successifully compiled CopperSpice under Visual Studio in a cmake generated project. I now have the copperSpice dlls.
I have a simple example program (below) that links to CSCore1.9.dll and CSGui.dll
I can build and link the program.
However, when I execute it, I have an error :

The application failed to start because the platform plugin was not found or did not load.
Requested Plugin Key: "windows"


I cannot identify qwindows.dll in the CopperSpice package, nor in the binary distribution available at https://download.copperspice.com/copperspice/binary/cs-1.9/

Am I missing something ? Where can I find a compatible version of qwindows.dll in order to execute my program ?

Thanks,
Daniele

======================================================================

Source code:

Code: Select all

#include <QtGui>
 
int main(int argc, char *argv[])
{
   QApplication app(argc, argv);
 
   QWidget window;
   window.resize(320, 240);
   window.show();
   window.setWindowTitle("Top-level widget");
 
   return app.exec();
}
barbara
Posts: 464
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Exe would not load qwindows.dll

Post by barbara »

Thanks for reaching out to the CopperSpice team.

The current CopperSpice Windows platform plugin file is called CsGuiWin1.9.dll. This plugin must be located in a folder named platforms which is located in the same directory as your executable.

Based on the message reported, it is likely you did not run "ninja install" for your application. Did you build your MSVC application from the command line or the VS GUI?

We have lots of information about the build process in our CS Overview Documentation. The following link is a good place to start.
https://www.copperspice.com/docs/cs_overview/sample-ks-msvc.html

Another place for information is the CS Journal. This contains sample scripts and close to 50 sample programs.
https://journal.copperspice.com/?p=180#build-msvc

Please let us know if you have additional questions.

Barbara
Post Reply