Something wrong with qt
-
I did'nt used Qt like for month or so, last project was finished and worked perfectly and compiles without any errors. Now i opened that project in qt, and that gave me some strange error when i attempt to compile.
Since Qt forum don't have "spoiler" feature, i can't fold my text in to better shape, so:
Error #1(don't appear anymore, unnecessary to read)
D:\stud\Qt\build-GetValue-Desktop_Qt_5_10_1_MSVC2017_64bit2-Debug test.EXE does'nt exist
But it should exist there, in that folder, it must exist only in next folder \debug. I copied that test.exe in previous folder as Qt asked and that compiles, but when i press ctrl+R it open that copy(so no updates, qt open only that copy, not compiled new program), and compiled remained in proper \debug folder.
I deleted that copy, reload qt couple of times and that error just disappeared(so not my fault was, if simple restarts of program resolve error).
After that only one question: Qt, wtf?
Error #2
Everything was fine month ago, i did'nt change anything in Qt folders or project folder.
-
Hi,
Any chance of an update to your system ?
Change/update of anti-virus ? -
@SGaist emm...
I runed Full scan with my antivirus today, but it found nothing. And my system is still the same i think.
And i tried to compile some my projects in VS2017, everything fine there, so i think it's not a global thing, it's with Qt(my opinion).
-
What about
user64.lib
? -
AFAIK, there's only the User32 library provided on Windows.
-
Did you try a full rebuild of your project ?
-
@SGaist like function "rebuild all"? Yes, it build with 0 errors, but error then will come when i press Ctrl+R
P.S. it's definately about Qt, because when i opened first time, after first error it worked, and after like 15min that error with user64 appear. In between i do basically nothing in my computer.
-
So neither does error 1 and 2 happen anymore ?
-
@SGaist like function "rebuild all"? Yes, it build with 0 errors, but error then will come when i press Ctrl+R
P.S. it's definately about Qt, because when i opened first time, after first error it worked, and after like 15min that error with user64 appear. In between i do basically nothing in my computer.
@Engelard
Given the state you seem to be in (e.g. I don't think you should ever be looking for auser64.lib
), I think @SGaist would like to see a completely fresh rebuild done, where there is no chance of it picking up bits of already compiled stuff lying around. Now I'm not expert because I don't use C++/Qt Creator/cmake builds, but you should be able to literally delete anything & everything that is not part of your sources and build again from complete scratch. I know "rebuild all" sounds good enough, but it may not be.I don't know what to tell you to delete for sure, but I don't think you should even start with folders named
debug
in existence, they should all get created I imagine during the build process. You don't want.obj
s,.pch
s etc. If you're unsure, you can always precede by copying the whole folder hierarchy somewhere, or copying all the sources into a newly-created hierarchy. It is worth doing all this, because your situation sounds pretty strange....P.S.
and after like 15min that error with user64 appear
Extraordinary!
-
@Engelard
Given the state you seem to be in (e.g. I don't think you should ever be looking for auser64.lib
), I think @SGaist would like to see a completely fresh rebuild done, where there is no chance of it picking up bits of already compiled stuff lying around. Now I'm not expert because I don't use C++/Qt Creator/cmake builds, but you should be able to literally delete anything & everything that is not part of your sources and build again from complete scratch. I know "rebuild all" sounds good enough, but it may not be.I don't know what to tell you to delete for sure, but I don't think you should even start with folders named
debug
in existence, they should all get created I imagine during the build process. You don't want.obj
s,.pch
s etc. If you're unsure, you can always precede by copying the whole folder hierarchy somewhere, or copying all the sources into a newly-created hierarchy. It is worth doing all this, because your situation sounds pretty strange....P.S.
and after like 15min that error with user64 appear
Extraordinary!
Extraordinary!
It's not time for fun rly. My Qt not working anymore.
P.S. tried to compile other projects i have, they compiled and run as they should. But i did'nt add or remove anything from my project which have error. It's in fact the same as that which i mentioned before.
-
Extraordinary!
It's not time for fun rly. My Qt not working anymore.
P.S. tried to compile other projects i have, they compiled and run as they should. But i did'nt add or remove anything from my project which have error. It's in fact the same as that which i mentioned before.
-
So what can i do? And what might cause such a problem?
UPDATE:
Oh. I just goes to build folder, and in \debug was no output .exe file of this project, seems like something happened when i removed that copy of .exe which was asked first error. But if i put that .exe in \debug folder and try to build project - it deletes that .exe and give save link error.... And now i can't restore that .exe which was removed by Qt. It's not even in Recycle bin...
-
So what can i do? And what might cause such a problem?
UPDATE:
Oh. I just goes to build folder, and in \debug was no output .exe file of this project, seems like something happened when i removed that copy of .exe which was asked first error. But if i put that .exe in \debug folder and try to build project - it deletes that .exe and give save link error.... And now i can't restore that .exe which was removed by Qt. It's not even in Recycle bin...
-
@Engelard Well, the executable is deleted when you're building because it will be replaced by new one if the build succeeds. You should try to delete the complete build folder, run qmake and build.
-
@SGaist said in Something wrong with qt:
AFAIK, there's only the User32 library provided on Windows.
I searched for this "user64.lib" on PC, nothing found. Searched for such a file to download - also, seems like no such .lib even exist. So why then Qt ask me for that thing which does'nt exist?
-
I just now tried next:
- Found User32.lib on my C:\
- Place it in build directory
- Renamed it to user64.lib
And that stupidity just worked now.
What's wrong with qt? it's certainly should'nt work like that...Some stupid questions:
Are you the only one having access to that PC?
Is there a chance that someone is trying to play some nasty games with you?
When you are in creator, press "Ctrl+Shift+F" and search all projects for user64 and have a look what pops up.