Opened 14 months ago
Last modified 6 weeks ago
#68415 assigned defect
py311-pyqt5 +webkit: Project ERROR: Could not resolve SDK Path for 'macosx13.3' using --show-sdk-path
Reported by: | news24lor | Owned by: | reneeotten (Renee Otten) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | cooljeanius (Eric Gallager), AgilentGCMS | |
Port: | py-pyqt5 |
Description
Hi
I have a new computer with M2 processor and I have installed last MacPorts and many packages without problems.
I have installed last QGIS3 and it works, but for working with many plugins it needs a new build of py311-pyqt5 +webkit. There is a note at the end of QGIS.
The normal packages "py311-pyqt5" works but with variant +webkit it is impossible to build. I have an error.
version:1 :debug:main Starting logging for py311-pyqt5 @5.15.9_0+webkit :debug:sysinfo macOS 13.6 (darwin/22.6.0) arch i386 :debug:sysinfo MacPorts 2.8.1 :debug:sysinfo Xcode 15.0, CLT 15.0.0.0.1.1694021235 :debug:sysinfo SDK 13 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 13.0 :debug:main Fetching py311-pyqt5-5.15.9_0+webkit.darwin_22.i386.tbz2 archive size :error:main py311-pyqt5 cannot be installed for the configured build_arch 'x86_64' because it only supports the arch(s) 'arm64'.
Different architectures??
I have a complete log.
Attachments (1)
Change History (10)
Changed 14 months ago by news24lor
comment:1 Changed 14 months ago by jmroot (Joshua Root)
Keywords: | QGIS3 GIS science removed |
---|---|
Owner: | set to reneeotten |
Port: | py-pyqt5 added |
Status: | new → assigned |
comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
The error you mentioned in the ticket description makes no sense and does not appear in the log you attached. The error in the log you attached is:
Project ERROR: Could not resolve SDK Path for 'macosx13.3' using --show-sdk-path
There are a bunch of other tickets about that kind of error.
comment:3 Changed 14 months ago by news24lor
Hi Ryan
I've built the package in two ways:
1) from terminal I've the complete main.log
2) from jar GUI I only have the simple message of error above
The result is the same: the package is not built.
Only this variant is not built but it almost mandatory for QGIS3 (for many plugin)
comment:4 Changed 14 months ago by reneeotten (Renee Otten)
I don't know if works fine for me:
>>> port installed | grep py311-pyqt5 py311-pyqt5 @5.15.9_0+webkit (active) py311-pyqt5-sip @12.12.2_0 (active) py311-pyqt5-webengine @5.15.6_1 (active)
on
macOS 14.0 23A344 x86_64 Xcode 15.0 15A240d
For reasons I don't fully understand yet I needed to install the md4c
to get qt5-qtwebkit
to build but after that the py311-pyqt5 +webkit
build just fine. The error that is in your logfile has been seen many times in the past as Ryan points out; the last ticket about this port was 68073 but that seems to work now.
In short, unless it's related to arm64
I don't know why it appears not to work for you; if it's related to arm64
there is nothing I can do about it as I don't have access to that hardware.
comment:5 Changed 14 months ago by news24lor
I don't know if the error is only in ARM processor with new Xcode 15.0.
I've put a problem with QGIS some week ago #67842 and after some changes the solution was a clean built of py311-pyqt5 +webkit
It worked but Xcode was the version 14.0 on ARM processor.
Now the same build doesn't work
comment:6 follow-up: 8 Changed 13 months ago by news24lor
I found the solution in the post #68073.
That solution was for macosx12.3 SDK
and now for macosx13.3 SDK
.
Basically the error is related to not identifying the maosx13.3 SDK
in macOS 13.6 with Xcode version 15 on ARM processor.
I performed these steps:
I first checked for the presence of the SDK with
xcrun --sdk macosx13.3 --show-sdk-path
and I got the error xcodebuild: error: SDK "macosx13.3" cannot be located
I checked which SDK is present:
ls -l /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs drwxr-xr-x 7 root wheel 224 31 Aug 21:12 MacOSX.sdk lrwxr-xr-x 1 root wheel 10 18 Sep 20:28 MacOSX14.0.sdk -> MacOSX.sdk lrwxr-xr-x 1 root wheel 10 18 Sep 20:28 MacOSX14.sdk -> MacOSX.sdk
The macosx13.3 SDK
is not present.
I have created a link to the SDK needed for compilation:
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
I re-checked which SDKs are present.
xcrun --sdk macosx13.3 --show-sdk-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
Now macosx13.3 SDK
is present.
I will now redo the installation
sudo port install py311-pyqt5 +webkit
And finally everything works again!!!
It is a bit complex but it works. This variant is absolutely necessary inside QGIS to make many plugins work
Thanks again!
comment:7 Changed 13 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:8 Changed 13 months ago by reneeotten (Renee Otten)
Replying to news24lor:
I found the solution in the post #68073.
That solution was formacosx12.3 SDK
and now formacosx13.3 SDK
.
Sym-linking an SDK is certainly not the correct solution or anything that should be recommended.
As I said above in comment:4; it works on x86_64 so it could be an arm64 issue; it that's the case I cannot help as I don't have access to that hardware. Additionally, webkit has been obsolete for quite some time now in Qt5 so I don't think there will be much help in getting this to work moving forward; instead, whatever plugins you want to use should likely migrate to a supported solution like "webengine".
comment:9 Changed 6 weeks ago by ryandesign (Ryan Carsten Schmidt)
Cc: | AgilentGCMS added |
---|---|
Summary: | Error when I build py311-pyqt5 +webkit → py311-pyqt5 +webkit: Project ERROR: Could not resolve SDK Path for 'macosx13.3' using --show-sdk-path |
main.log