What should be in C:\Users\*name*\qt
-
Hi all,
I have been developing a Qt app in Visual Studio 2019, which worked for a time. I now think i ran CCleaner and it has deleted some files in the path C:\Users*name*\qt. I only realised belatedly that it was this path which was being effected. The reason is that Qt 6.1.3 explicitly told me that this is where it was looking.
I removed Qt, 5.15 and reinstalled with Qt 6.1.3 and that made the build work. I ran CCleaner again and of course it stopped working. I have since uninstalled 6.1.3 and reinstalled it but perhaps because its the same build its not triggering these files to be populated. It sounds like some just need to be copied from Qt installation directory to C:\Users*name*\Qt.
I have all the necessary .dlls in my debug directory for VS.
The error message is as in image.
My question is what exactly should the folder structure look like.
I currently have the folders as listed in the title of this topic.I can probably copy qguiapplication.cpp there, but then i imagine there will be other files required.
Thanks
Pete -
Hi
- My question is what exactly should the folder structure look like.
http://www.tripleboot.org/?p=138
but you should use
https://doc.qt.io/qt-5/windows-deployment.html
as it will make the needed sub folders. -
Hi, and welcome!
Please provide the following information:
- Where did you install Qt?
- How did you try to run your application?
@Enogma said in What should be in C:\Users\*name*\qt:
I now think i ran CCleaner and it has deleted some files in the path C:\Users*name*\qt. I only realised belatedly that it was this path which was being effected.
...
I ran CCleaner again and of course it stopped working.
That sounds very strange; my CCleaner has never affected my Qt installation.
CCleaner shows you a list of files that it deletes. Have a closer look at what it does when you run it.
The reason is that Qt 6.1.3 explicitly told me that this is where it was looking.
That path looks like the source code structure that was in place when the DLL was built. That doesn't mean your computer needs that structure.
I can probably copy qguiapplication.cpp there, but then i imagine there will be other files required.
No, you don't need any *.cpp files to run your application.
-
Hi. Thanks both.
- I installed qt in d:\qt. It is looking explicitly for files in c:\users\name\qt. which is currently empty.
- I can try to run from the IDE or launch the exe with the same result.
I understand programs dont need .cpp to run, its for compiling. However, it wants it. Probably because im running in debug and its trying to link a pdb.
I have no definitive proof that CCleaner did it but there is a trend.
Works been very busy so have done what mrjj said, but i shall try now!