Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Configure qt module with cmake fails
Forum Updated to NodeBB v4.3 + New Features

Configure qt module with cmake fails

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 2 Posters 418 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.
  • Q Offline
    Q Offline
    Quorn Julio
    wrote on last edited by Quorn Julio
    #1

    hello,

    i need the svg module additionally and try to configure this with the cmake-gui.
    unfortunately i get a failure and have no clue why.

    CMake Error at /opt/homebrew/lib/cmake/Qt6/QtFeature.cmake:1135 (message):
      Feature force_asserts is already defined to be "OFF" and should now be set
      to "ON" when importing features from Qt6::Core.
    Call Stack (most recent call first):
      /opt/homebrew/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:118 (qt_make_features_available)
      /opt/homebrew/lib/cmake/Qt6/Qt6Config.cmake:177 (find_package)
      CMakeLists.txt:21 (find_package)
    

    how can i set Feature force_asserts to ON like it is wished by cmake?

    screenshot.png

    MacOS 12.1 - Qt 6.2.2

    raven-worxR 1 Reply Last reply
    0
    • Q Quorn Julio

      hello,

      i need the svg module additionally and try to configure this with the cmake-gui.
      unfortunately i get a failure and have no clue why.

      CMake Error at /opt/homebrew/lib/cmake/Qt6/QtFeature.cmake:1135 (message):
        Feature force_asserts is already defined to be "OFF" and should now be set
        to "ON" when importing features from Qt6::Core.
      Call Stack (most recent call first):
        /opt/homebrew/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:118 (qt_make_features_available)
        /opt/homebrew/lib/cmake/Qt6/Qt6Config.cmake:177 (find_package)
        CMakeLists.txt:21 (find_package)
      

      how can i set Feature force_asserts to ON like it is wished by cmake?

      screenshot.png

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Quorn-Julio
      dont use cmake-gui.
      simple execute (in a build directory, can also be a new folder):

      <QTDIR>\bin\qt-configure-module <module-src-path>
      cmake --build .
      

      it already takes care of everything

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      • Login

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