How to run qtquick program?
-
I finished my program and compiled and every thing is great.
in Windows when I double click on program it needs some dll file and I collect all dll file for it.
but some thing still is wrong with QtCore4.dll. The error is:
The procedure entry point ?mse@ATime@@QBEHXZ could not be located in the dynamic link library QTCore4.dll
How can I run my program? -
You need to put Qt dlls near your exe file. You can read more "here":http://qt-project.org/doc/qt-4.8/deployment-windows.html
-
I know and I put the dll files near exe file. after that I receive this Error. without that It simply show an error massage says which dll file is messing. I read that page before
Actually When I compile the program in the release folder there is a folder contain a qml file and three images which I use in my program.
I put the neare exe file but nothing changed. What's the problem -
[quote author="beemaster" date="1351608096"]1) Can you run your program from Qt Creator?
2) Please put a full list of dll files (both Qt and MinGW) that you copied near your exe file.[/quote]Yes the program runs from Qt-Creator perfectly
list of dlls:
libgcc_s_dw2-1.dll
libstdc++-6.dll
mingwm10.dll
msvcr90.dll
QtCore4.dll
QtDeclarative4.dll
QtGui4.dll
QtNetwork4.dll
QtScript4.dll
QtSql4.dll
QtXmlPatterns4.dll
I know some of dlls are not needed but those were suggestion of dependency wakler
-
Ensure that there are no other copies of Qt library in your PATH. Sometimes happens that there are older versions shipped with programs that are in PATH (MiKTeX, LyX, TortoiseHG for example). Try executing your program from a command line prompt, after having set the PATH: set PATH=C:\path\to\qt;%PATH%. If that works set the PATH system widely
http://stackoverflow.com/questions/11484000/qtgui4-dll-entry-point-not-found -
[quote author="beemaster" date="1351611758"]Ensure that there are no other copies of Qt library in your PATH. Sometimes happens that there are older versions shipped with programs that are in PATH (MiKTeX, LyX, TortoiseHG for example). Try executing your program from a command line prompt, after having set the PATH: set PATH=C:\path\to\qt;%PATH%. If that works set the PATH system widely
http://stackoverflow.com/questions/11484000/qtgui4-dll-entry-point-not-found[/quote]Thank you very much.
@1st I add the mingw\bin and qt\bin path to the system path. Now it just shows the qmlviewer not my program (And there is not a program! just a qml file which should be open with qmlViewer)
My project name is qmltest --> Near the release folder there is another folder named qml
2nd: I copied the qml folder into release folder near qmlviewer (in this case qmltest.exe).
Now I'm running the exe file and my program is running very well. thanks