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 troubles in mac
Forum Updated to NodeBB v4.3 + New Features

./configure troubles in mac

Scheduled Pinned Locked Moved Solved Installation and Deployment
12 Posts 6 Posters 756 Views 4 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.
  • A Offline
    A Offline
    Anbu
    wrote last edited by
    #1

    I am following along with the "C++ GUI Programming with Qt 3" book and quickly ran into errors when entering ./configure. I am on macOS version 13.5 by the way. Do I have to install an older macOS sdk or something?

    The terminal output:
    Last login: Sun Sep 7 23:34:05 on ttys010
    user@Users-MacBook-Air ~ % cd $QTDIR
    user@Users-MacBook-Air qt % ./configure

    This is the Qt/Mac Free Edition.

    You are licensed to use this software under the terms of
    the GNU General Public License (GPL).

    Type 'G' to view the GNU General Public License.
    Type 'yes' to accept this license offer.
    Type 'no' to decline this license offer.

    Do you accept the terms of the license? yes

    Creating qmake. Please wait...
    c++ -c -o metrowerks_xml.o -DQT_MACOSX_VERSION= -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/Applications/qt/include/qmake -I/Applications/qt/include -I/Applications/qt/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/Applications/qt/mkspecs/macx-g++ -DHAVE_QCONFIG_CPP generators/mac/metrowerks_xml.cpp
    generators/mac/metrowerks_xml.cpp:637:5: warning: 'FSPathMakeRef' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
    if(FSPathMakeRef((const UInt8 *)f.latin1(), &fref, NULL) == noErr) {
    ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4115:18: note: 'FSPathMakeRef' has been explicitly marked deprecated here
    extern OSStatus FSPathMakeRef(const UInt8 *path, FSRef *ref, Boolean *isDirectory) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
    ^
    generators/mac/metrowerks_xml.cpp:638:9: warning: 'FSGetCatalogInfo' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
    if(FSGetCatalogInfo(&fref, kFSCatInfoNone, NULL, NULL, &fileSpec, NULL) == noErr)
    ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:2620:15: note: 'FSGetCatalogInfo' has been explicitly marked deprecated here
    extern OSErr FSGetCatalogInfo(const FSRef *ref, FSCatalogInfoBitmap whichInfo, FSCatalogInfo *catalogInfo, HFSUniStr255 *outName, FSSpecPtr fsSpec, FSRef *parentRef) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
    ^
    generators/mac/metrowerks_xml.cpp:639:47: warning: 'smSystemScript' is deprecated: first deprecated in macOS 10.5 - Deprecated [-Wdeprecated-declarations]
    FSpCreateResFile(&fileSpec, 'CUTE', 'TEXT', smSystemScript);
    ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:34:1: note: '' has been explicitly marked deprecated here
    enum {
    ^
    generators/mac/metrowerks_xml.cpp:639:3: error: use of undeclared identifier 'FSpCreateResFile'
    FSpCreateResFile(&fileSpec, 'CUTE', 'TEXT', smSystemScript);
    ^
    generators/mac/metrowerks_xml.cpp:667:6: error: unknown type name 'HVolumeParam'
    HVolumeParam pb;
    ^
    generators/mac/metrowerks_xml.cpp:671:26: error: unknown type name 'HParmBlkPtr'; did you mean 'ParmBlkPtr'?
    if(PBHGetVInfoSync((HParmBlkPtr)&pb) == noErr) {
    ^~~~~~~~~~~
    ParmBlkPtr
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:371:41: note: 'ParmBlkPtr' declared here
    typedef void * ParmBlkPtr;
    ^
    generators/mac/metrowerks_xml.cpp:671:9: error: use of undeclared identifier 'PBHGetVInfoSync'
    if(PBHGetVInfoSync((HParmBlkPtr)&pb) == noErr) {
    ^

    3 warnings and 4 errors generated.
    make: *** [metrowerks_xml.o] Error 1
    qmake failed to build. Aborting.

    JKSHJ 1 Reply Last reply
    0
    • A Anbu

      I am following along with the "C++ GUI Programming with Qt 3" book and quickly ran into errors when entering ./configure. I am on macOS version 13.5 by the way. Do I have to install an older macOS sdk or something?

      The terminal output:
      Last login: Sun Sep 7 23:34:05 on ttys010
      user@Users-MacBook-Air ~ % cd $QTDIR
      user@Users-MacBook-Air qt % ./configure

      This is the Qt/Mac Free Edition.

      You are licensed to use this software under the terms of
      the GNU General Public License (GPL).

      Type 'G' to view the GNU General Public License.
      Type 'yes' to accept this license offer.
      Type 'no' to decline this license offer.

      Do you accept the terms of the license? yes

      Creating qmake. Please wait...
      c++ -c -o metrowerks_xml.o -DQT_MACOSX_VERSION= -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/Applications/qt/include/qmake -I/Applications/qt/include -I/Applications/qt/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/Applications/qt/mkspecs/macx-g++ -DHAVE_QCONFIG_CPP generators/mac/metrowerks_xml.cpp
      generators/mac/metrowerks_xml.cpp:637:5: warning: 'FSPathMakeRef' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
      if(FSPathMakeRef((const UInt8 *)f.latin1(), &fref, NULL) == noErr) {
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4115:18: note: 'FSPathMakeRef' has been explicitly marked deprecated here
      extern OSStatus FSPathMakeRef(const UInt8 *path, FSRef *ref, Boolean *isDirectory) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
      ^
      generators/mac/metrowerks_xml.cpp:638:9: warning: 'FSGetCatalogInfo' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
      if(FSGetCatalogInfo(&fref, kFSCatInfoNone, NULL, NULL, &fileSpec, NULL) == noErr)
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:2620:15: note: 'FSGetCatalogInfo' has been explicitly marked deprecated here
      extern OSErr FSGetCatalogInfo(const FSRef *ref, FSCatalogInfoBitmap whichInfo, FSCatalogInfo *catalogInfo, HFSUniStr255 *outName, FSSpecPtr fsSpec, FSRef *parentRef) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
      ^
      generators/mac/metrowerks_xml.cpp:639:47: warning: 'smSystemScript' is deprecated: first deprecated in macOS 10.5 - Deprecated [-Wdeprecated-declarations]
      FSpCreateResFile(&fileSpec, 'CUTE', 'TEXT', smSystemScript);
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:34:1: note: '' has been explicitly marked deprecated here
      enum {
      ^
      generators/mac/metrowerks_xml.cpp:639:3: error: use of undeclared identifier 'FSpCreateResFile'
      FSpCreateResFile(&fileSpec, 'CUTE', 'TEXT', smSystemScript);
      ^
      generators/mac/metrowerks_xml.cpp:667:6: error: unknown type name 'HVolumeParam'
      HVolumeParam pb;
      ^
      generators/mac/metrowerks_xml.cpp:671:26: error: unknown type name 'HParmBlkPtr'; did you mean 'ParmBlkPtr'?
      if(PBHGetVInfoSync((HParmBlkPtr)&pb) == noErr) {
      ^~~~~~~~~~~
      ParmBlkPtr
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:371:41: note: 'ParmBlkPtr' declared here
      typedef void * ParmBlkPtr;
      ^
      generators/mac/metrowerks_xml.cpp:671:9: error: use of undeclared identifier 'PBHGetVInfoSync'
      if(PBHGetVInfoSync((HParmBlkPtr)&pb) == noErr) {
      ^

      3 warnings and 4 errors generated.
      make: *** [metrowerks_xml.o] Error 1
      qmake failed to build. Aborting.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote last edited by
      #4

      Hi, and welcome!

      @Anbu said in ./configure troubles in mac:

      "C++ GUI Programming with Qt 3"

      Qt 3 is too old -- it probably won't run on macOS 13.5. Qt 3 used the Carbon framework, while macOS 13.5 requires the Cocoa framework.

      As @Christian-Ehrlicher said, please use Qt 6 instead. You can find relevant courses in the Qt Academy, such as https://academy.qt.io/catalog/learning-paths/68310

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      A 1 Reply Last reply
      5
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote last edited by
        #2

        What exact Qt version are you trying to build and why do you want to build Qt by yourself?
        Install a recent version with the Qt online installer...

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        A 1 Reply Last reply
        1
        • Christian EhrlicherC Christian Ehrlicher

          What exact Qt version are you trying to build and why do you want to build Qt by yourself?
          Install a recent version with the Qt online installer...

          A Offline
          A Offline
          Anbu
          wrote last edited by
          #3

          @Christian-Ehrlicher I'm trying to build version 3.2 from the CD-ROM that came with a book. I wanted to follow along with the instructions, but maybe I should just go with an installer like you said

          1 Reply Last reply
          0
          • A Anbu

            I am following along with the "C++ GUI Programming with Qt 3" book and quickly ran into errors when entering ./configure. I am on macOS version 13.5 by the way. Do I have to install an older macOS sdk or something?

            The terminal output:
            Last login: Sun Sep 7 23:34:05 on ttys010
            user@Users-MacBook-Air ~ % cd $QTDIR
            user@Users-MacBook-Air qt % ./configure

            This is the Qt/Mac Free Edition.

            You are licensed to use this software under the terms of
            the GNU General Public License (GPL).

            Type 'G' to view the GNU General Public License.
            Type 'yes' to accept this license offer.
            Type 'no' to decline this license offer.

            Do you accept the terms of the license? yes

            Creating qmake. Please wait...
            c++ -c -o metrowerks_xml.o -DQT_MACOSX_VERSION= -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/Applications/qt/include/qmake -I/Applications/qt/include -I/Applications/qt/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/Applications/qt/mkspecs/macx-g++ -DHAVE_QCONFIG_CPP generators/mac/metrowerks_xml.cpp
            generators/mac/metrowerks_xml.cpp:637:5: warning: 'FSPathMakeRef' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
            if(FSPathMakeRef((const UInt8 *)f.latin1(), &fref, NULL) == noErr) {
            ^
            /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4115:18: note: 'FSPathMakeRef' has been explicitly marked deprecated here
            extern OSStatus FSPathMakeRef(const UInt8 *path, FSRef *ref, Boolean *isDirectory) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
            ^
            generators/mac/metrowerks_xml.cpp:638:9: warning: 'FSGetCatalogInfo' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
            if(FSGetCatalogInfo(&fref, kFSCatInfoNone, NULL, NULL, &fileSpec, NULL) == noErr)
            ^
            /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:2620:15: note: 'FSGetCatalogInfo' has been explicitly marked deprecated here
            extern OSErr FSGetCatalogInfo(const FSRef *ref, FSCatalogInfoBitmap whichInfo, FSCatalogInfo *catalogInfo, HFSUniStr255 *outName, FSSpecPtr fsSpec, FSRef *parentRef) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
            ^
            generators/mac/metrowerks_xml.cpp:639:47: warning: 'smSystemScript' is deprecated: first deprecated in macOS 10.5 - Deprecated [-Wdeprecated-declarations]
            FSpCreateResFile(&fileSpec, 'CUTE', 'TEXT', smSystemScript);
            ^
            /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:34:1: note: '' has been explicitly marked deprecated here
            enum {
            ^
            generators/mac/metrowerks_xml.cpp:639:3: error: use of undeclared identifier 'FSpCreateResFile'
            FSpCreateResFile(&fileSpec, 'CUTE', 'TEXT', smSystemScript);
            ^
            generators/mac/metrowerks_xml.cpp:667:6: error: unknown type name 'HVolumeParam'
            HVolumeParam pb;
            ^
            generators/mac/metrowerks_xml.cpp:671:26: error: unknown type name 'HParmBlkPtr'; did you mean 'ParmBlkPtr'?
            if(PBHGetVInfoSync((HParmBlkPtr)&pb) == noErr) {
            ^~~~~~~~~~~
            ParmBlkPtr
            /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:371:41: note: 'ParmBlkPtr' declared here
            typedef void * ParmBlkPtr;
            ^
            generators/mac/metrowerks_xml.cpp:671:9: error: use of undeclared identifier 'PBHGetVInfoSync'
            if(PBHGetVInfoSync((HParmBlkPtr)&pb) == noErr) {
            ^

            3 warnings and 4 errors generated.
            make: *** [metrowerks_xml.o] Error 1
            qmake failed to build. Aborting.

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote last edited by
            #4

            Hi, and welcome!

            @Anbu said in ./configure troubles in mac:

            "C++ GUI Programming with Qt 3"

            Qt 3 is too old -- it probably won't run on macOS 13.5. Qt 3 used the Carbon framework, while macOS 13.5 requires the Cocoa framework.

            As @Christian-Ehrlicher said, please use Qt 6 instead. You can find relevant courses in the Qt Academy, such as https://academy.qt.io/catalog/learning-paths/68310

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            A 1 Reply Last reply
            5
            • S Offline
              S Offline
              SimonSchroeder
              wrote last edited by
              #5

              There was a huge break from Qt 3 to Qt 4. From then on it is more of an evolution from Qt 4 to QT 5 and then Qt 6. It is not worth it to learn Qt 3 first as this is all really outdated.

              A 1 Reply Last reply
              5
              • Axel SpoerlA Offline
                Axel SpoerlA Offline
                Axel Spoerl
                Moderators
                wrote last edited by
                #6

                Oh, I remember that book just as well as
                38911 FREE BASIC BYTES
                READY.

                Software Engineer
                The Qt Company, Oslo

                Christian EhrlicherC 1 Reply Last reply
                1
                • Axel SpoerlA Axel Spoerl

                  Oh, I remember that book just as well as
                  38911 FREE BASIC BYTES
                  READY.

                  Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote last edited by
                  #7

                  @Axel-Spoerl said in ./configure troubles in mac:

                  Oh, I remember that book just as well as
                  38911 FREE BASIC BYTES
                  READY.

                  SYS64738

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

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

                    POKE 808,225

                    Software Engineer
                    The Qt Company, Oslo

                    1 Reply Last reply
                    1
                    • JKSHJ JKSH

                      Hi, and welcome!

                      @Anbu said in ./configure troubles in mac:

                      "C++ GUI Programming with Qt 3"

                      Qt 3 is too old -- it probably won't run on macOS 13.5. Qt 3 used the Carbon framework, while macOS 13.5 requires the Cocoa framework.

                      As @Christian-Ehrlicher said, please use Qt 6 instead. You can find relevant courses in the Qt Academy, such as https://academy.qt.io/catalog/learning-paths/68310

                      A Offline
                      A Offline
                      Anbu
                      wrote last edited by
                      #9

                      @JKSH I downloaded qt6 for mac and have been playing around a little. Thanks for your comment, I'm glad I'm able to get started :)

                      1 Reply Last reply
                      0
                      • S SimonSchroeder

                        There was a huge break from Qt 3 to Qt 4. From then on it is more of an evolution from Qt 4 to QT 5 and then Qt 6. It is not worth it to learn Qt 3 first as this is all really outdated.

                        A Offline
                        A Offline
                        Anbu
                        wrote last edited by
                        #10

                        @SimonSchroeder Good to know! I happened to pick up this book from a library, but safe to say I will be learning with the newest version!

                        SGaistS 1 Reply Last reply
                        0
                        • A Anbu has marked this topic as solved
                        • A Anbu

                          @SimonSchroeder Good to know! I happened to pick up this book from a library, but safe to say I will be learning with the newest version!

                          SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote last edited by
                          #11

                          @Anbu hi,

                          If you are into books, there's a Wiki page about them. Note that the page content is not the most up to date but it contains interesting thing none the less.

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

                          A 1 Reply Last reply
                          1
                          • SGaistS SGaist

                            @Anbu hi,

                            If you are into books, there's a Wiki page about them. Note that the page content is not the most up to date but it contains interesting thing none the less.

                            A Offline
                            A Offline
                            Anbu
                            wrote last edited by
                            #12

                            @SGaist said in ./configure troubles in mac:

                            Wiki page

                            Thanks for sharing, it's worth taking a look for me!

                            (I see the TB I have haha)

                            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