Comments (8)
Could you describe your build environment a little? It looks like there's an issue with the Xcode installation. Note the following two error messages from your log:
xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
xcrun: error: unable to lookup item 'PlatformVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
What does xcrun --show-sdk-path --sdk macosx
show for you? Does the directory it prints exist and have an SDK installed?
Perhaps you may want to switch to the default SDK using sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
?
from slint.
@tronical Running xcrun --show-sdk-path --sdk macosx
outputs /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
. It does have an sdk installed.
As for ninja, I installed it from homebrew
from slint.
Thanks for the quick response. Could you also try running xcrun --show-sdk-platform-version
?
from slint.
@tronical Sure. Here's what it prints
▶ xcrun --show-sdk-platform-version
xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
xcrun: error: unable to lookup item 'PlatformVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
from slint.
Ok, and that's the source of the build issue you're seeing. This command should not produce the error but print a version. It looks like the macOS SDK installed in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk on your machine is incomplete somehow (or corrupted).
from slint.
Could you run ls -ld /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
? I wonder what your MacOSX.sdk
symlink points to. It looks like 10.7 maybe? Do you have an explicit macOS deployment target configured?
from slint.
Do you have an explicit macOS deployment target configured?
I don't. Here's where the symlink points:
▶ ls -ld /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
lrwxr-xr-x 1 root wheel 14 Feb 7 12:46 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -> MacOSX14.2.sdk
▶ realpath /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk
from slint.
Thanks. I can reproduce this. It seems that xcrun --show-sdk-path --sdk macosx
is not supported with the command line tools alone (see also rust-lang/cc-rs#1001). If you run sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
the issue should be resolved and the build should work.
I'll add this to the known issues docs for the Skia renderer build.
from slint.
Related Issues (20)
- Tabs in quickstart section don't maintain between links
- LinuxKMS: Add support for mouse cursor rendering with the software renderer HOT 3
- component is deprecated. moving from zenity to slint for all graphical applications. HOT 2
- HorizontalLayout restricting window size HOT 14
- Proposal: Styling capabilities for the std-widgets HOT 10
- !! A panic occured in 'i-slint-core-1.6.0\software_renderer.rs', at line 2460, column 9: not yet implemented HOT 2
- [FEATURE REQUEST] ability to add structs as fields of structs HOT 2
- TextEdit with qt style cannot be selected
- set_fullscreen(false) is invalid HOT 1
- [Bug] Component highlighting in the Slint preview doesn't work in a PopupWindow."
- Wrong transition animation when values indirectly updated right before start HOT 5
- Panic in slint compiler: The remove return pass should have removed all return HOT 2
- Showing two windows at once on Winit/Skia on Wayland/GNOME causes one to be incorrectly painted initially
- When opening multiple windows on Wayland/Winit, it's not possible to close them separately HOT 1
- `LineEdit`: Can not select text with the mouse HOT 1
- Can't bring global to Rust scope HOT 2
- LinuxKMS: Finish linux framebuffer support
- The button component cannot be displayed in Chinese HOT 4
- Small proposal, hope Slint gets better and better HOT 1
- random svg path preview HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slint.