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. CMake problem with Qt 6.10.0
Forum Updated to NodeBB v4.3 + New Features

CMake problem with Qt 6.10.0

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 134 Views 1 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.
  • E Offline
    E Offline
    EduardoQtDev
    wrote last edited by EduardoQtDev
    #1
    CMake Error at /home/user/Qt/6.10.0/gcc_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1273 (add_custom_command):
      Error evaluating generator expression:
    
        $<TARGET_FILE:::qtpaths>
    
      No target "::qtpaths"
    Call Stack (most recent call first):
      /home/user/Qt/6.10.0/gcc_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1051:EVAL:1 (_qt_internal_write_deferred_qmlls_build_ini_file)
      CMakeLists.txt:DEFERRED
    

    There is this line n the Cmake file
    set(qtpaths $<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::qtpaths>)
    somehow QT_CMAKE_EXPORT_NAMESPACE is not defined.

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote last edited by
      #3

      Maybe it's because 6.10.0 is still in beta1, i.e. not fully baked?

      1 Reply Last reply
      1
      • Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote last edited by
        #2

        qtpaths is an executable, not a CMake target.
        I must admit, that I never use it. But from the top of my head, you have to write something like this instead:

        find_program(QTPATHS_EXEC qtpaths)
        

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote last edited by
          #3

          Maybe it's because 6.10.0 is still in beta1, i.e. not fully baked?

          1 Reply Last reply
          1
          • E Offline
            E Offline
            EduardoQtDev
            wrote last edited by
            #4

            I think it's a bug in Qt CMake. Just in case someone wants to open a bug report.

            I 1 Reply Last reply
            0
            • E EduardoQtDev has marked this topic as solved
            • E EduardoQtDev

              I think it's a bug in Qt CMake. Just in case someone wants to open a bug report.

              I Offline
              I Offline
              IgKh
              wrote last edited by
              #5

              @EduardoQtDev said in CMake problem with Qt 6.10.0:

              Just in case someone wants to open a bug report.

              https://bugreports.qt.io/browse/QTBUG-137577 - Known, and already fixed it seems. You'll need to wait for beta2, or build from Git.

              1 Reply Last reply
              4

              • Login

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