Qt6 Windows result binary not working without QCreator
-
Hi,
I belive this is a stutip question but I am really not familier to windows OS.
in linux Qt Cmake project (hash search ) working perfectly in QCreator or from shell.
But in windows (10) it is running inside QtCreator but not working just exiting without any error in cmd or powershell both normal user or admin ?
Really I cant find a solution...
help... :)).
-
Hi,
You have to deploy your application as you would for distribution.
-
I don't use Windows and hadn't heard of cqtdeployer, https://doc.qt.io/qt-6/windows-deployment.html#the-windows-deployment-tool still links to windeployqt for Qt6, any better?
-
same error..
I have no problem on linux or mac but windows really pissing me of.
cant deploy Qt c++ .. to anther machine still...
-
@RahibeMeryem There's no reason to expect that
std::pmr::get_default_resource()
would be in a Qt library. You need the relevant C++ support libraries (e.g. libstdc++ or equivalent) to be part of the deployment (or already installed) on the target. What these libraries are called, and how they might be deployed, will depend on the tool chain you used to build your application. -
@RahibeMeryem
@hskoglund said in Qt6 Windows result binary not working without QCreator:_ZNSt3pmr20get_default_resourceEv)
Copy "libstdc++6.dll" from where the mingw bin files are located into your folder where the executable is located. This worked for me and it should work for yall :)
If all else fails try this. If it works, and you're interested, find out how that is found inside Creator.
Thanks to you both, the problem was that I was having other mingw folder which was standalone and not qt bounded before, so i just put the path of the qt bounded mingw before that standalone mingw in my env variables and this went righ