No icons when deploy application using SVG files
-
You need
- QtSvg library
- plugin iconengines/libqsvgicon.dll
- plugin imageformats/libqsvg.dll
- the dependencies: QtCore, QtGui, QtXml library
all in the proper directories.
Also, you might want to add the plugin path manually. Add the following your main function, right before doing any Qt related stuff that needs the plugins (eg. GUI classes):
@
QStringList libPaths = QCoreApplication::libraryPaths();
libPaths << QCoreApplication::applicationDirPath + "/plugins";
QCoreApplication::setLibraryPaths(libPaths);
@I have the above in my code and all plugins are found.
-
Still nothing (or its to late...)
Maybe i make a mistake, so step for step:- clone my rep: git@gitorious.org:fixtestpc/fixtestpc.git
- open project with qt-creator
- add your code to main/main.cpp
- choose project "main" and build it with "release" (takes 3-4 minutes)
- copy the application to INSTALL
- copy libgcc_s_dw2-1.dll mingwm10.dll QtCore4.dll QtGui4.dll QtOpenGL4.dll QtSvg4.dll QtXml4.dll from C:\Qt\2010.05\qt\bin to INSTALL
- copy qsvg4.dll from C:\Qt\2010.05\qt\plugins\imageformats to INSTALL/plugins
- copy qsvgicon4.dll from C:\Qt\2010.05\qt\plugins\iconengines to INSTALL/plugins
- copy qsqlite4.dll from C:\Qt\2010.05\qt\plugins\sqldrivers to INSTALL/plugins
deploy the application to another computer ... application without svg images and sqlite support...
tomorrow (nope... today) i have diploma defense and this thing will not work -.-
-
Sorry, that's not irritating, but just plain normal.
On you dev machines you have everything in place, so the parts needed are found. On the user machines you have to install every single piece yourself, if only one is missing, your applications or parts of it can break.
-
Volker, it seems a similar problem I had using jpg against png images. But in my case I set properly all the dll and the problem remain unsolved... Is it possible that the same principle can be applied also in my case?
Thks
-
[quote author="Alicemirror" date="1298992583"]Volker, it seems a similar problem I had using jpg against png images. But in my case I set properly all the dll and the problem remain unsolved... Is it possible that the same principle can be applied also in my case?
[/quote]Yes, of course. It does not depend if your dealing with svg or png or jpg (despite the fact that you might have different "cross dependencies":http://developer.qt.nokia.com/wiki/Qt_library_cross_dependencies
-
Mmmh... Strange that my previous post about this you missed.
If you have five minutes, please take a look to the link: http://developer.qt.nokia.com/forums/viewthread/4028/ This was my first post, but the moderator moved this to the area related to deployment and installations... Then I find a solution (not a final solution, but a solution for this particular case) here:
http://developer.qt.nokia.com/forums/viewthread/4087/
But this post is actually without answer...Thks.
-
[quote author="Alicemirror" date="1298997133"]Mmmh... Strange that my previous post about this you missed.
If you have five minutes, please take a look to the link: http://developer.qt.nokia.com/forums/viewthread/4028/ This was my first post, but the moderator moved this to the area related to deployment and installations... Then I find a solution (not a final solution, but a solution for this particular case) here:
http://developer.qt.nokia.com/forums/viewthread/4087/
But this post is actually without answer...Thks.[/quote]
I merged both threads as it's on the very same topic. You've been pointed to some reading - not clear if you read (and and understood) these already.