Qt6 Windows result binary not working without QCreator
-
wrote on 9 Nov 2024, 19:58 last edited by
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.
-
wrote on 22 Nov 2024, 19:55 last edited by
I have this strange problem when deploy with cqtdeploy.
what is the straight way to deploy Qt c++ in windows qt6 ?
really strugling..:(
-
wrote on 22 Nov 2024, 20:43 last edited by JonB
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?
-
wrote on 22 Nov 2024, 21:20 last edited by
same error..
I have no problem on linux or mac but windows really pissing me of.
cant deploy Qt c++ .. to anther machine still...
-
I have this strange problem when deploy with cqtdeploy.
what is the straight way to deploy Qt c++ in windows qt6 ?
really strugling..:(
wrote on 23 Nov 2024, 03:31 last edited by@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. -
To add to @ChrisW67, the dll that's missing (or you have one, but it does not have that entry point _ZNSt3pmr20get_default_resourceEv) is called libstdc++-6.dll
wrote on 23 Nov 2024, 18:58 last edited by JonB@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