-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental: Support for MacOS Platform #9
Comments
Hi, I tried all of your versions on MacOS Monterey 12.5 and there is the problem that after I enable the plugin in plugin settings nothing happens. There are no new blueprints available to add. I also tried to add a plugin while my project was open and sometimes I get that error:
It would be nice if you can help me with it. |
Hi @HOTOREL ! Unfortunately I don't have iOS and Mac devices to test, so it's hard to solve this, sorry :/ That's why I left it as experimental, too bad it didn't work. :( If you want to try, there are some files where some implementations are made: To work in the editor, it is necessary to load the libraries (I probably implemented it wrongly for MacOS/iOS in the branch feature/MAC-SUP-9, but as I have no way of testing it here, so it is difficult to adjust): https://github.com/lucoiso/UEAzSpeech/blob/main/Source/ThirdParty/AzureWrapper/AzureWrapper.Build.cs & https://github.com/lucoiso/UEAzSpeech/blob/main/Source/AzSpeech/Private/AzureSpeech.cpp For android it was necessary to have an .xml file (UPL - Unreal Plugin Language): https://github.com/lucoiso/UEAzSpeech/blob/main/Source/ThirdParty/AzureWrapper/AzSpeech_UPL_Android.xml |
Pushed an experimental branch: https://github.com/lucoiso/UEAzSpeech/tree/experimental/MULTI-PLATFORM |
|
Had another go at building the multiplatform version on my Mac M1 - here's the log: |
Commited a new try: 7a7c0c4
And remove the .lib file due to error in log & other plugins not using .lib files for Mac:
Reasons:Found these guys in engine source:
|
You're going to love this one... I'm working in Monterey with 5.0.3 :) |
Update: |
Hello @dom452 ! Have you tried changing the build target on xCode? 👀 I've found this issue in the forums: And the log that you sent ends with this warning:
|
Also, the last referenced commit fix this part of AzSpeech.cpp:
The PreDir was wrong and trying to load the lib inside the 'Runtime' folder, which didn't exist! xD |
@dom452 good news! I've updated the SDK to 1.25.0 and they added new libs for Mac:
|
Thanks so much for staying active! Line 53: Line 1701: Not sure why it's referencing that last one at all - since it's not in amongst the plugin - then I found this in the generateXcodeProject.bat log: Library '/Volumes/Macintosh HD/Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/ThirdParty/AzureWrapper/libs/Mac/x64/libMicrosoft.CognitiveServices.Speech.core.dylib' was not resolvable to a file when used in Module 'AzureWrapper', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning. |
Pushed a new commit:
Commit: d54cdb0 About the libMicrosoft.CognitiveServices.Speech.core.dylib: This file was moved to AzureWrapper/libs/Mac/x64/Runtime, the plugin is now trying to copy and link this file in the Plugin's Binaries folder. It looks like the location has not been updated. Could you regenerate the project files and recompile? 👀 |
Not sure what to make of this... damn I wish I code actually code! TWD_Pathways_Build /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:20:45 expected class name /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:20:45 base class has incomplete type /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:24:31 unknown type name 'UAzSpeechTaskBase' /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:28:17 'Run' marked 'override' but does not override any member functions /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:29:15 'Exit' marked 'override' but does not override any member functions /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:40:15 'ClearSignals' marked 'override' but does not override any member functions /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:41:15 'RemoveBindings' marked 'override' but does not override any member functions /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:43:21 'ApplySDKSettings' marked 'override' but does not override any member functions /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/AzSpeechRecognitionRunnable.h:45:15 'InitializeAzureObject' marked 'override' but does not override any member functions /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/Bases/AzSpeechRunnableBase.h /Users/Shared/UnrealEngine/TWD/Plugins/UEAzSpeech-experimental-MULTI-PLATFORM/Source/AzSpeech/Public/AzSpeech/Runnables/Bases/AzSpeechRunnableBase.h:117:41 unknown type name 'UAzSpeechRecognizerTaskBase'; did you mean 'UAzSpeechSynthesizerTaskBase'? |
Update! However - it seems Unreal doesn't want to find my audio input devices on this Mac... Investigating further and will circle back. MOAR UPDATE: |
Fixed: Bright side - I can confirm that your plugin (the Version before the updated SDKs) works on Mac and packages without issue after doing this last little permission tweak! |
…func as member function in non shipping builds
Made new changes to the function that was throwing the errors:
About the PList: |
Created an experimental UPL file to check if it works on MacOS 👀
The UPL will try to add:
|
Still cannot build on any of 3 branches... using command
Log file
Using macOS 13.2.1, M1 chip, UE 5.1.1 |
Whooo, thanks for the logs and sorry for the delay. @kqkq That's strange, the engine tried to get the lib from a different place:
I don't know how it works on MacOS as i never had one mac hardware, but I'll try some changes using the same settings that worked a few months ago: Linking only the .a file as both lib and runtime dependency. |
Hi @lucoiso ! Thank you for your response! I tried the latest code. Similar issue:
|
Made new changes, can you try again? 👀 |
I manually copied |
This plugin currently does not support MacOS platforms.
Note: I don't have an MacOS device to test, so this improvement will be experimental.
The text was updated successfully, but these errors were encountered: