Jpegs are fine on my developer machine, but are not supported when i deploy my application to a fresh machine. all jpeg files used in stylesheets are still built with the application’s resources, but are never displayed.
-
I tried deploying an “imageformats” folder, child of the executable folder, containing a “qjpeg4.dll” inside.
-
I tried linking against the qjpeg4.lib in my .pro file, WITH what’s specified above.
still no good. Is there something in code I need to specify?
This is just a guess, but I’m wondering if there is some dependency of the plugin that cannot be resolved on the virtual machine. Like you said, it is a simple file/folder thing, so it is probably finding the plugin dll. But maybe the dll is failing to load because it cannot resolve one if its dependencies.
The most likely culprit would be the C++ runtimes. Are you deploying those side-by-side in the application directory, or installed via the redistributable? If the former, the plugin may not be able to find them since it is in a different directory. To track this down, you could use the “Dependency Walker” and “SxSTrace.exe” tools.