Errors During QT program compilation in Linux: qmakespec has not been set, so configuration cannot be deduced.
Source: Internet
Author: User
This is because, in the new machine environment, you want to change the installation directory of QT, from the original directory A to directory B, without re-compiling QT Source code, But compiled ProgramAnd the library directly to the new directory, set the qtdir environment variable to the new directory. However, the above error is found. The reason is that CodeThe configured directory is the original directory. Therefore, when using dynamic libraries and programs, you can find the directory according to the original configuration. All pri files are compiled as the configured directory. This causes the above problems. The solution is to configure and recompile QT according to the changed directory.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service