Unsolved Qt 5.10 version gets installed under /home and not found by cmake
-
Hi
I have installed Qt 5.10. It ends up under /home/username/Qt/5.10.0. I believe I never chose the complete Qt to be installed under /home
Other applications (plasma 5 probably) has installed Qt 5.6 as well but not in to the home directory.The problem is that cmake finds the Qt5Core_DIR at /usr/lib/x86_x64_-linux-gnu/cmake/Qt5Core and it seems that means the 5.6 version is used.
I need to manually change this path in cmake.Question: How can I make sure the 5.10.0 version is found by cmake instead?
Question2: Is it really expected that the Qt 5.10.0 version should end up under home/
Question3: Can I move 5.10.0 or somehow force the 5.6 version to be upgrade to 5.10.0 as well? -
Hi and welcome to devnet,
- If you are using the command line use
cmake -DCMAKE_PREFIX_PATH=/path/to/Qt/lib/cmake
- Yes, you can change that when you install Qt
- No, from what you describe Qt 5.6 comes with your Linux distribution, so don't try to replace it with a non system package.
- If you are using the command line use