Strange problem with a project.
-
wrote on 4 Dec 2019, 07:54 last edited by aha_1980 12 Apr 2019, 09:06
Suddenly, when I run an executable from a build/debug/ folder I get an exception
The program can't start because Qt5Cored.dll is missing from your computer. Try reinstalling the program to fix this problem.
But when I run from Qt Creator it runs OK, no problem. -
Suddenly, when I run an executable from a build/debug/ folder I get an exception
The program can't start because Qt5Cored.dll is missing from your computer. Try reinstalling the program to fix this problem.
But when I run from Qt Creator it runs OK, no problem.wrote on 4 Dec 2019, 08:04 last edited by ODБOï 12 Apr 2019, 08:04@jenya7 hi
that is normal,
to be able to run your program from its executable you have to deploy it.
see for windows https://doc.qt.io/qt-5/windows-deployment.html -
wrote on 4 Dec 2019, 08:33 last edited by
and what about Linux? I have to deploy it on Linux machine too?
-
@jenya7 said in Strange problem with a project.:
and what about Linux? I have to deploy it on Linux machine too?
It depends on how you will distribute your application. If you provide a package for one or more distribution, it will use the distribution provided Qt. If you want to distribute it with a specific version of Qt then yes. You can use the linuxdeployqt to help in that case.
-
wrote on 4 Dec 2019, 09:14 last edited by
Thank you.
-
wrote on 4 Dec 2019, 10:03 last edited by jenya7 12 Apr 2019, 10:04
when I build a project on a Linux machine I get
*.cpp has modification time 390886 s in the future.
Clock skew detected. Your build may be incomplete. -
when I build a project on a Linux machine I get
*.cpp has modification time 390886 s in the future.
Clock skew detected. Your build may be incomplete.@jenya7 Did you copy your source code to a Linux file system?
Do you use a VCS? -
wrote on 4 Dec 2019, 12:53 last edited by
@jsulm said in Strange problem with a project.:
@jenya7 Did you copy your source code to a Linux file system?
Do you use a VCS?Actually I copy-pasted the code from Windows to Linux. What is VCS?
-
@jsulm said in Strange problem with a project.:
@jenya7 Did you copy your source code to a Linux file system?
Do you use a VCS?Actually I copy-pasted the code from Windows to Linux. What is VCS?
-
wrote on 4 Dec 2019, 13:19 last edited by
@jsulm said in Strange problem with a project.:
@jenya7 said in Strange problem with a project.:
What is VCS
Version Control System
no. I don't use it. is it related to the problem?
-
@jsulm said in Strange problem with a project.:
@jenya7 said in Strange problem with a project.:
What is VCS
Version Control System
no. I don't use it. is it related to the problem?
@jenya7 said in Strange problem with a project.:
is it related to the problem?
Not directly, but it would make sure that date/time are correct.
On which file system is your project located? It is a Linux file system (like ext3)?
And how did you copy to Linux? -
@jenya7 said in Strange problem with a project.:
is it related to the problem?
Not directly, but it would make sure that date/time are correct.
On which file system is your project located? It is a Linux file system (like ext3)?
And how did you copy to Linux?wrote on 4 Dec 2019, 13:41 last edited by@jsulm said in Strange problem with a project.:
@jenya7 said in Strange problem with a project.:
is it related to the problem?
Not directly, but it would make sure that date/time are correct.
On which file system is your project located? It is a Linux file system (like ext3)?
And how did you copy to Linux?It's Debian for RaspberryPi (Raspbian). I copy-paste the code to files created with QtCreator Installed on Linux.
-
when I build a project on a Linux machine I get
*.cpp has modification time 390886 s in the future.
Clock skew detected. Your build may be incomplete.@jenya7 said in Strange problem with a project.:
*.cpp has modification time 390886 s in the future.
Clock skew detected. Your build may be incomplete.This means your Windows and Linux PCs have different times. At least one of them is wrong.
For the Makefile system to work correctly, all of your files must have the correct "modified date" timestamps.
-
@jenya7 said in Strange problem with a project.:
*.cpp has modification time 390886 s in the future.
Clock skew detected. Your build may be incomplete.This means your Windows and Linux PCs have different times. At least one of them is wrong.
For the Makefile system to work correctly, all of your files must have the correct "modified date" timestamps.
wrote on 4 Dec 2019, 15:36 last edited by@JKSH said in Strange problem with a project.:
@jenya7 said in Strange problem with a project.:
*.cpp has modification time 390886 s in the future.
Clock skew detected. Your build may be incomplete.This means your Windows and Linux PCs have different times. At least one of them is wrong.
For the Makefile system to work correctly, all of your files must have the correct "modified date" timestamps.
But how do I set those timestamps?
-
@JKSH said in Strange problem with a project.:
@jenya7 said in Strange problem with a project.:
*.cpp has modification time 390886 s in the future.
Clock skew detected. Your build may be incomplete.This means your Windows and Linux PCs have different times. At least one of them is wrong.
For the Makefile system to work correctly, all of your files must have the correct "modified date" timestamps.
But how do I set those timestamps?
wrote on 4 Dec 2019, 15:50 last edited by@jenya7 I'm assuming the RasPi was never connected to the internet so the system time was never set properly. You can just connect your RasPi to the internet and it should auto update the system time. You should look into use github (or something else similar to it) to keep track of your code and it makes it easy to pull code onto different devices.
-
@JKSH said in Strange problem with a project.:
@jenya7 said in Strange problem with a project.:
*.cpp has modification time 390886 s in the future.
Clock skew detected. Your build may be incomplete.This means your Windows and Linux PCs have different times. At least one of them is wrong.
For the Makefile system to work correctly, all of your files must have the correct "modified date" timestamps.
But how do I set those timestamps?
-
@jenya7 I'm assuming the RasPi was never connected to the internet so the system time was never set properly. You can just connect your RasPi to the internet and it should auto update the system time. You should look into use github (or something else similar to it) to keep track of your code and it makes it easy to pull code onto different devices.
wrote on 5 Dec 2019, 06:29 last edited by jenya7 12 Aug 2019, 06:53@vmanso said in Strange problem with a project.:
@jenya7 I'm assuming the RasPi was never connected to the internet so the system time was never set properly. You can just connect your RasPi to the internet and it should auto update the system time. You should look into use github (or something else similar to it) to keep track of your code and it makes it easy to pull code onto different devices.
Indeed at some point I disconnected it from internet (was testing internal LAN). Now I connected it back but still the same warning.
-
@vmanso said in Strange problem with a project.:
@jenya7 I'm assuming the RasPi was never connected to the internet so the system time was never set properly. You can just connect your RasPi to the internet and it should auto update the system time. You should look into use github (or something else similar to it) to keep track of your code and it makes it easy to pull code onto different devices.
Indeed at some point I disconnected it from internet (was testing internal LAN). Now I connected it back but still the same warning.
This post is deleted! -
wrote on 5 Dec 2019, 06:52 last edited by
@jsulm said in Strange problem with a project.:
@jenya7 said in Strange problem with a project.:
But how do I set those timestamps?
man touch
Thank you. It helps. Did it for every file. Now it compiles OK.
1/20