How to move a Qt-VS project to a new computer
-
Hi there
I'm migrating a Qt project from another computer, however there's some error which doesn't have much information on the Internet.
Simply copying them to a new computer doen't work, some of the path might not be same, that's some reason made it wrong.The env is Qt5.9, Vs2015, win8.1
I'm getting the error MSB6006 cmd.exe exited with code 2.
(There's not much error showing here, even though I believe it's a env problem)I have reason to believe moving qt-msvc project to a new computer is not just setting header path and qt version on qt vs tools, I must missing something that cause the program compile failed.
The problem I'm facing now is forcing me to reinstall Qt on new compter same path with the old one, but that's not possible if I need to handle serval Qt project from different person.
The question is: how am I able to move a qt-vs project to a new computer safely, with copying all the files,dlls,associated path to another new computer?
-
Also, don't copy any auto-generated files between the two computers. This includes the <projectname>.pro.user file, any Makefiles, .vcxproj files, etc. Only copy your source (*.cpp and *.h) files and your project (.pro) file, any other original files (files that go into a resource, etc.), and version control files (e.g., git files).
-
Also, don't copy any auto-generated files between the two computers. This includes the <projectname>.pro.user file, any Makefiles, .vcxproj files, etc. Only copy your source (*.cpp and *.h) files and your project (.pro) file, any other original files (files that go into a resource, etc.), and version control files (e.g., git files).
-
Problem solved, need to set .user file's path with opening it.
It contained last computer's qt path. -
@Puppy-Bear said in How to move a Qt-VS project to a new computer:
Problem solved, need to set .user file's path with opening it.
mchinand about 13 hours ago
Also, don't copy any auto-generated files between the two computers. This includes the <projectname>.pro.user
You must not copy the .user file as @mchinand already told you as it contains data (e.g. paths) specific to your configuration.