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. Qt6 Static Build Cmake error

Qt6 Static Build Cmake error

Scheduled Pinned Locked Moved Solved Qt 6
3 Posts 2 Posters 533 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.
  • M Offline
    M Offline
    Mark Durkot
    wrote on 19 Oct 2021, 14:22 last edited by
    #1

    Hello guys,

    I'm trying to build qt6 statically. But I get an error:

    Qt/6.1.3/Src/qtbase/configure: line 299: cmake: command not found
    

    My configuration:

    ./configure -release -static -opensource -confirm-license -prefix /path/to/qt/6.1.3/static -nomake tests -nomake examples -nomake tools
    

    I'm completely unfamiliar with cmake. I tried the same thing with 6.0.0 and 6.2.0.
    It shows the same error but in different lines:

    Qt/6.0.0/Src/qtbase/configure: line 946: cmake: command not found
    
    Qt/6.2.0/Src/qtbase/configure: line 267: cmake: command not found
    

    I installed Qt with the online installer. I selected just macos and Sources to install.

    I would appreciate your help guys. If you need some additional files, just let me know I will and them.
    Thank you.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 19 Oct 2021, 14:26 last edited by VRonin
      #2

      You need to download and install CMake (version 3.21.1 or later)

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • M Offline
        M Offline
        Mark Durkot
        wrote on 19 Oct 2021, 14:36 last edited by
        #3

        Thank you! That worked!

        I removed my Cmake yesterday. So yeah, that was the problem. Sorry :)

        1 Reply Last reply
        0

        1/3

        19 Oct 2021, 14:22

        • Login

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