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. Error while building Qt from source code on macOS
Forum Update on Monday, May 27th 2025

Error while building Qt from source code on macOS

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
macos
3 Posts 2 Posters 936 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.
  • Q Offline
    Q Offline
    qtProgrammer
    wrote on last edited by qtProgrammer
    #1

    Hello,

    I want to be able to debug into qt source code so i started compiling the latest Qt version 5.8 on my MAC.
    I followed the instructions on Qt webpage about building it. But this is what i get after running configure.

    **../qt-everywhere-opensource-src-5.8.0/configure -prefix /Users/userName/qt-install-5.8 0 -opensource -debug-and-release
    + cd qtbase
    + /Users/userName/qt-everywhere-opensource-src-5.8.0/qtbase/configure -top-level -prefix /Users/username/qt-install-5.8 0 -opensource -debug-and-release
    
    This is the Qt Open Source Edition.
    
    You are licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) version 3.
    You are also licensed to use this software under the terms of
    the GNU General Public License (GPL) version 2.
    
    Type 'L' to view the GNU Lesser General Public License version 3.
    Type 'G' to view the GNU General Public License version 2.
    Type 'yes' to accept this license offer.
    Type 'no' to decline this license offer.
    
    Do you accept the terms of either license? yes
    
    Preparing build tree...
    Creating qmake...
    ............................................................................................Done.
    
    ERROR: Invalid command line parameter '0'.**
    

    I don't understand the last line. I was trying to do a shadow build by creating a new folder for build. I also specified the install directory while running config above. After running config, these are the files that got created in my build folder.

    config.cache config.log qtbase

    Does this look correct.?

    I am a newbie to MAC platform but i've completed compiling QT from sources on windows & linux.

    When i run make, this is what i got

    make
    make: *** No targets specified and no makefile found.  Stop
    

    Thanks in advance for your help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You prefix parameter is wrong. It's missing a point between 8 and 0.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        qtProgrammer
        wrote on last edited by
        #3

        Thank you @SGaist.
        Sorry for this stupid mistake.

        I'll try with this and compile QT on mac.
        Thanks again

        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