Using Qt 5.2 on MacOSX 15.3 Sequoia - could not resolve platform name for SDK
-
wrote on 14 Feb 2025, 07:53 last edited by
Apologies if this question is too trivial, but I have not been able to solve my problem with previous forum questions that I've come across so far. I'm a complete beginner to Qt (and not a software person at that) and I'm simply trying to use Qt Creator to compile a program. The code I want to compile has only been tested on Qt 5.2, hence why I am using this older version. I'm using a MacBook Apple Silicon M2 to try to use Qt Creator 3.0.1 and Qt 5.2 compile this program. I have the latest version of Apple Xcode installed. However, when I open my .pro file in Qt Creator, I get a project error message:
Project ERROR: Could not resolve platform name for SDK 'macosx15.2'
I had tried changing Qt5.2.1/5.2.1/clang_64/mkspec/qdevice.pri to the SDK that came with the Xcode I have, which was MacOSX15.2 in my case, but received the error message above. What am I doing wrong and how could I fix this? Is there some kind of compatibility issue that cannot be solved because I have the latest hardware? I have been trying to look for answers in this forum but it seems like all of the existing answers are from many years ago pertaining to older (probably non-ARM versions) of hardware (if that is an issue). Thank you in advance for any input someone could provide.
-
I checked the "Archive" option and did not see any option for Qt 5.15.x. Here is a screenshot of what I see.
@cygnus23 OK, maybe there is no Qt5 because there are no ARM binaries available. You should be able to install Qt5 via offline installer.
-
Apologies if this question is too trivial, but I have not been able to solve my problem with previous forum questions that I've come across so far. I'm a complete beginner to Qt (and not a software person at that) and I'm simply trying to use Qt Creator to compile a program. The code I want to compile has only been tested on Qt 5.2, hence why I am using this older version. I'm using a MacBook Apple Silicon M2 to try to use Qt Creator 3.0.1 and Qt 5.2 compile this program. I have the latest version of Apple Xcode installed. However, when I open my .pro file in Qt Creator, I get a project error message:
Project ERROR: Could not resolve platform name for SDK 'macosx15.2'
I had tried changing Qt5.2.1/5.2.1/clang_64/mkspec/qdevice.pri to the SDK that came with the Xcode I have, which was MacOSX15.2 in my case, but received the error message above. What am I doing wrong and how could I fix this? Is there some kind of compatibility issue that cannot be solved because I have the latest hardware? I have been trying to look for answers in this forum but it seems like all of the existing answers are from many years ago pertaining to older (probably non-ARM versions) of hardware (if that is an issue). Thank you in advance for any input someone could provide.
@cygnus23 I'm not sure this old Qt version will work with latest MacOS and XCode versions. You should at least upgrade to latest available Qt 5.15.x version. Qt Company also provides arm binaries for Qt6, Qt5 is only x86_64.
-
wrote on 14 Feb 2025, 08:52 last edited by
I see, so I may be out of luck. On the installer, I do not see a Qt 5.15.x version that I could even install, and it does not seem like that has ARM support either. It only goes back to Qt 6.2.0, which is too new for the software I'm compiling.
-
I see, so I may be out of luck. On the installer, I do not see a Qt 5.15.x version that I could even install, and it does not seem like that has ARM support either. It only goes back to Qt 6.2.0, which is too new for the software I'm compiling.
@cygnus23 Qt 5.15 should be there. You probably need to check the "Archive" option. And yes there are no arm Qt5 binaries provided via installer.
-
wrote on 14 Feb 2025, 09:08 last edited by
-
I checked the "Archive" option and did not see any option for Qt 5.15.x. Here is a screenshot of what I see.
@cygnus23 OK, maybe there is no Qt5 because there are no ARM binaries available. You should be able to install Qt5 via offline installer.
-
1/6