[MacPorts] #61736: qt5 clears configure.sdkroot which causes erroneous "SDK does not appear to be installed" warning

MacPorts noreply at macports.org
Sun Mar 27 07:30:57 UTC 2022


#61736: qt5 clears configure.sdkroot which causes erroneous "SDK does not appear to
be installed" warning
---------------------------+---------------------------------
  Reporter:  cbitterfield  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.4
Resolution:                |   Keywords:
      Port:  qt5           |
---------------------------+---------------------------------

Comment (by anonguest00):

 == **It works ! **

 Full qt5 install @ macOS Monterrey:SDK 12.3 installed / Intel


 - First, you need Visual Studio Code to edit a .plist file in human-
 readable and autosave as binary (Xcode doesn't allow to edit this file)
 - Don't try to use SDK from Xcode.app

 {{{

 # sudo xcode-select -s /Library/Developer/CommandLineTools
 # sudo xcodebuild -l
 # sudo vscode
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/SDKSettings.plist
 }}}

 In VS-CODE:

 1. Find **<key>CanonicalName</key>**,
 2. Change value to **<string>macosx12</string>** (or target you need)
 3. Save


 Testing:

 {{{
 # xcrun -k -n --sdk macosx12 --show-sdk-path
 }}}
 {{{
 Result:

  IF (WORKS)
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
  ELSE
    Warning: The macOS xx.x SDK does not appear to be installed. Ports may
 not build correctly. Warning: You can install it as part of the Xcode
 Command Line Tools package by running `xcode-select --install'
 }}}
 Important notes (I spent 6 hours to make it work):

 1. By doing xcode-select you need to edit again
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/SDKSettings.plist
 2. Accept License BEFORE change the plist file
 3. Don't try to use SDK from Xcode.app

 Enjoy porting qt5 full

 {{{
 # mac port install qt5
 }}}

 Enjoy!

-- 
Ticket URL: <https://trac.macports.org/ticket/61736#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list