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. Unknown command line option '-prefix' building Qt6.2 on Windows
Forum Updated to NodeBB v4.3 + New Features

Unknown command line option '-prefix' building Qt6.2 on Windows

Scheduled Pinned Locked Moved Solved Installation and Deployment
1 Posts 1 Posters 505 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
    Martin Burchell
    wrote on last edited by
    #1

    In case this is useful to anyone:

    I am trying to build the latest release of Qt 6.2 on Windows.

    Yesterday I solved a problem where configure would abort with the error

    Unknown command line option '-prefix'.
    

    I fixed it by upgrading CMake to the latest release (3.25.1 at the time of writing) and ensuring the CMake folder appeared at the top of my PATH ahead of an older version installed through Cygwin.

    Qt configure searches the source tree for files matching qt_cmdline.cmake (qtbase/cmake/QtProcessConfigureArgs.cmake). Modules register their command line options by calling various qt_commandline_* functions in this file. In this case the line:

    file(GLOB commandline_files "${MODULE_ROOT}/*/${commandline_filename}")
    

    to find all the qt_cmdline.cmake files was returning no matches.

    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