./configure troubles in mac
-
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 % ./configureThis 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. -
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 % ./configureThis 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.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
-
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... -
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...@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
-
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 % ./configureThis 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.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
-
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.
-
Oh, I remember that book just as well as
38911 FREE BASIC BYTES
READY. -
Oh, I remember that book just as well as
38911 FREE BASIC BYTES
READY.@Axel-Spoerl said in ./configure troubles in mac:
Oh, I remember that book just as well as
38911 FREE BASIC BYTES
READY.SYS64738
-
POKE 808,225
-
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
-
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.
@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!
-
-
@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!
-