I'm following these instructions: http://wiki.qtcentre.org/index.php?t..._Qt_on_Windows
I was misunderstandable, I did run configure AND make. Sorry about that. I want one exe file that needs no DLL's.
I'm following these instructions: http://wiki.qtcentre.org/index.php?t..._Qt_on_Windows
I was misunderstandable, I did run configure AND make. Sorry about that. I want one exe file that needs no DLL's.
So I suggest you download the source code only and then configure and make. Don't install binaries or you'll be mixing two installations.
Aceman2000 (3rd February 2008)
Problem solved!
I'm not sure what solved it, so here's a list of what I did:
-uninstall Qt, remove any remaining files by hand
-reinstall Qt
-edit the g++ mkspecs (add -static to lflags)
-configure -static -release -no-qt3support -no-exceptions -no-qmake -fast
-make sub-corelib,sub-gui,sub-network,sub-svg, and sub-plugins (maybe I forgot one)
My .pro file's relevant lines are now
QT += svg
QTPLUGIN += qsvg
LIBS += -L$$[QT_INSTALL_PLUGINS]/iconengines
LIBS += $$[QT_INSTALL_PLUGINS]/iconengines/libqsvg.a
With this, my program compiles and shows the icons when run.
Thanks!
Because this says so
It's just for convenience, so that you don't have to add it to your projects. But ok, if J-P says it's "required" then let's agree it is
Only if you didn't want MinGW dependencies. And let's face it, most Windows machines do have that library installed.
I agree, at first (long time ago) my program didn't even execute (complaining about mingwm10.dll), only when I ran it from a Qt command prompt (which 'fixed' PATH).
J-P Nurmi
Bookmarks