socketsupply / sfspeechrecognizer-example

An example Socket Runtime application that uses the SFSpeechRecognizer Framework
MIT License
6 stars 2 forks source link

Failed to build on MacOS #1

Open missinglink opened 1 year ago

missinglink commented 1 year ago
/code/s/sfspeechrecognizer-example master = ❯ ssc build -r
• cleaned: /Users/peter/code/socketsupply/sfspeechrecognizer-example/build/mac +12ms
• preparing build for mac +12ms
• package prepared +9ms
• Building extension: SFSpeechRecognizer ((mac) desktop-arm64) +12ms
• Unable to build extension (SFSpeechRecognizer) +790ms
• Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
clang: error: no such file or directory: '/Users/peter/code/socketsupply/sfspeechrecognizer-example/build/mac/socket-runtime-sfspeechrecognizer-example-dev.app/Contents/Resources/socket/extensions/SFSpeechRecognizer/extension'
 +0ms
 ls build/mac/socket-runtime-sfspeechrecognizer-example-dev.app/Contents/Resources/socket/extensions/SFSpeechRecognizer
.rw-r--r--@ 555Ki peter 28 Sep 11:22 -I  init.o
/code/s/sfspeechrecognizer-example master = ❯ uname -a
Darwin mac 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:29:26 PDT 2023; root:xnu-8796.121.3~8/RELEASE_ARM64_T8112 arm64 arm Darwin
/code/s/sfspeechrecognizer-example master = ❯ clang++ --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
jwerle commented 1 year ago

Are you using the latest SSC from master?

lamiazar commented 1 year ago

@jwerle I'm also unable to build with the latest SSC from master(I'm on macOS as well)

jwerle commented 1 year ago

@jwerle I'm also unable to build with the latest SSC from master(I'm on macOS as well)

Do you have the same error?

lamiazar commented 1 year ago

Do you have the same error? No:

• Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: error: no such file or directory: './src/extension.mm'
clang: warning: -lsocket-runtime: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework UniformTypeIdentifiers: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework CoreBluetooth: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework Network: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework UserNotifications: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework WebKit: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework Cocoa: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework OSLog: 'linker' input unused [-Wunused-command-line-argument]
 +0ms
jwerle commented 1 year ago

@missinglink @lamiazar can you share the output of ssc --version? I have:

0.4.0 (7f236cc8)
Installation path: /Users/werle/repos/socketsupply/socket-stable/build/npm/darwin/packages/@socketsupply/socket-darwin-arm64/
lamiazar commented 1 year ago
ssc -v
0.4.0 (62e26b02)
Installation path: /Users/lamia/socket/build/npm/darwin/packages/@socketsupply/socket-darwin-arm64/
jwerle commented 1 year ago

@lamiazar Can you try building with the latest master branch from https://github.com/socketsupply/socket ?

lamiazar commented 1 year ago

@lamiazar Can you try building with the latest master branch from https://github.com/socketsupply/socket ?

yes, I'm on it

jwerle commented 1 year ago

Your commit 62e26b02 seen when you do ssc --version is not the latest build from master. It refers to this moment in time: https://github.com/socketsupply/socket/commit/62e26b02

lamiazar commented 1 year ago

@jwerle I'm using this : ./bin/clean.sh && VERBOSE=1 ./bin/install.sh to build, but I'm still getting a different version

ssc -v
0.4.0 (8ddca54c)
lamiazar commented 1 year ago

I still have this issue after I updated ssc, Joe is working on it.

lamiazar commented 11 months ago

@jwerle I don't get any errors now but the window opens without any output

Image

jwerle commented 11 months ago

@lamiazar no worries, we'll get to this when we can. More pressing issues currently!

lamiazar commented 11 months ago

@lamiazar no worries, we'll get to this when we can. More pressing issues currently!

Sounds good, I'm doing some cleanup for the project board and I tried to reproduce this issue.