Problem with link resources to executable file
I have a problem with resources link. I have a splash screen in my app (and other pictures). Resources.qrc file has all of them. In pro-file I have follow line:
@RESOURCES = ./resources/resources.qrc@
In main.cpp file I do follow:
@int main(int argc, char *argv)
QApplication app(argc, argv);
And it works properly on my laptop. But when I execute my app on other machine I have no resources loaded...
Could you tell me what I do wrong?
Thanks in advance!
The same behavior without line
Also I tried to compile my project with VS2008 (using special Qt build and vs-addin). And again this problem: it works properly on my laptop and there no images on other machines.
How about using png images? It's work for me :)
Really, you must provide Qt JPEG plugin(libqjpeg.so or libqjpeg.dll) with your app, if you want work with JPEG images.
sagod, thank you, png works.
Vass, what exactly I should do to use jpeg? Where I can found this plugin?
Qt has image plugins which are enabled for compilation when it finds the appropriate system library. In this case libjpeg.
If the loading of the jpeg does not work on that machine then you are missing the jpeg library and if you compiled Qt yourself you may need to recompile Qt. On Linux you need something like libjpeg62-dev. If you are using something else, google for it or tell us what system you have and you may get lucky that someone else is running it that reads this thread :)
Oh, recompile... Again... :)
I use Win XP. And as I understand I should configure Qt with -qt-libjpeg key. Do I need something else to get it done?