Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.10 version gets installed under /home and not found by cmake

Qt 5.10 version gets installed under /home and not found by cmake

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 382 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nihon
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      1. If you are using the command line use cmake -DCMAKE_PREFIX_PATH=/path/to/Qt/lib/cmake
      2. Yes, you can change that when you install Qt
      3. 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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved