Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Using developer-build of Qt6
QtWS25 Last Chance

Using developer-build of Qt6

Scheduled Pinned Locked Moved Solved Qt 6
qt6cmake
3 Posts 2 Posters 426 Views
  • 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.
  • B Offline
    B Offline
    beroset
    wrote on last edited by
    #1

    I'm trying to help test patches for this issue. I have downloaded and successfully build Qt6 from source after configuring with this command:

    ../qt5/configure -developer-build -opensource -nomake examples -nomake tests -confirm-license
    

    However, now I can't figure out how to get my CMake-based test program to find that Qt6 version. Specifically, when I configure my project with -DCMAKE_PREFIX_PATH=~/tools/qt5-build/qtbase/lib/cmake/Qt6 it reports that it can't find either Qt6::DBus or Qt6::QML, both of which are required in my project. Also, I have no other version of Qt6 installed on my machine (a Linux box running the latest Fedora distro), but I do have Qt5 installed.

    How do I fix this?

    1 Reply Last reply
    0
    • kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by kkoehne
      #2

      @beroset said in Using developer-build of Qt6:

      -DCMAKE_PREFIX_PATH=~/tools/qt5-build/qtbase/lib/cmake/Qt6

      Qt6DBus, Qt6Qml are directories in parallel to Qt6 directory. That is, pass e.g. -DCMAKE_PREFIX_PATH=~/tools/qt5-build/qtbase/lib/cmake, or just -DCMAKE_PREFIX_PATH=~/tools/qt5-build/qtbase

      Director R&D, The Qt Company

      B 1 Reply Last reply
      1
      • kkoehneK kkoehne

        @beroset said in Using developer-build of Qt6:

        -DCMAKE_PREFIX_PATH=~/tools/qt5-build/qtbase/lib/cmake/Qt6

        Qt6DBus, Qt6Qml are directories in parallel to Qt6 directory. That is, pass e.g. -DCMAKE_PREFIX_PATH=~/tools/qt5-build/qtbase/lib/cmake, or just -DCMAKE_PREFIX_PATH=~/tools/qt5-build/qtbase

        B Offline
        B Offline
        beroset
        wrote on last edited by
        #3

        @kkoehne Thank you so much! Using -DCMAKE_PREFIX_PATH=~/tools/qt5-build/qtbase as you suggested works perfectly.

        1 Reply Last reply
        0

        • Login

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