Skip to content
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

Build script not working both Windows and macOS #22

Open
guitarflow opened this issue Jul 16, 2024 · 6 comments
Open

Build script not working both Windows and macOS #22

guitarflow opened this issue Jul 16, 2024 · 6 comments

Comments

@guitarflow
Copy link

Hey there!
Thanks for this great project!

I wanted to try it out but the build scripts as mentioned in the README fail on all machines I've tried.
MacBook M1 Max (macOS Sonoma 14.5) and Intel iMac (macOS Monterey 12.7.4):

note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'Wordify')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'Wordify' from project 'Wordify')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Wordify' from project 'Wordify')
note: Run script build phase 'CMake PreBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Wordify' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'whereami' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'main' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'whisper' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'tiny-process-library' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'vstgui' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'wave-draw' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'special-folders' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'sndfile' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'samplerate' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'pluginterfaces' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'fmt' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'base' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'ARA_PlugIn_Library' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'validator' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'moduleinfotool' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'vstgui_uidescription' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'vstgui_support' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'sdk_hosting' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'sdk_common' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'sdk' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'meta-words' from project 'Wordify')
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no active architecture could be computed; building for all applicable architectures (in target 'common' from project 'Wordify')
** BUILD FAILED **


The following build commands failed:
	CompileMetalFile /Users/flo/Downloads/wordify/build/_deps/whisper.cpp-src/ggml-metal.metal (in target 'meta-words-app' from project 'Wordify')
(1 failure)

Windows 11 PC, x64:

(compiling source file '../wordify-plugin/source/wordify_single_component.cpp')

    Creating library C:/Users/flo/Desktop/wordify-plugin/build/lib/Debug/Wordify.lib and object C:/Users/flo/Desktop/w
 ordify-plugin/build/lib/Debug/Wordify.exp
 Wordify.vcxproj -> C:\Users\flo\Desktop\wordify-plugin\build\VST3\Debug\Wordify.vst3\Contents\x86_64-win\Wordify.vst3
 [SMTG] Copy PlugIn.ico and desktop.ini and change their attributes.           [MAM] Copy WordifyWorker.
 'chmod' is not recognized as an internal or external command,
 operable program or batch file.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: The command "setlocal [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/flo/Desktop/wordify-plugin/build/_deps/vst3sdk-sr
c/cmake/modules/../templates/VST_Logo_Steinberg.ico C:/Users/flo/Desktop/wordify-plugin/build/VST3/Debug/Wordify.vst3/P
lugIn.ico [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/flo/Desktop/wordify-plugin/build/_deps/vst3sdk-sr
c/cmake/modules/../templates/desktop.ini.in C:/Users/flo/Desktop/wordify-plugin/build/VST3/Debug/Wordify.vst3/desktop.i
ni [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: attrib +s C:/Users/flo/Desktop/wordify-plugin/build/VST3/Debug/Wordify.vst3/desktop.ini [C:\Users\flo\Des
ktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: attrib +s C:/Users/flo/Desktop/wordify-plugin/build/VST3/Debug/Wordify.vst3/PlugIn.ico [C:\Users\flo\Desk
top\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: attrib +s C:/Users/flo/Desktop/wordify-plugin/build/VST3/Debug/Wordify.vst3 [C:\Users\flo\Desktop\wordify
-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Users\flo\Desktop\wordify-plugin\build\Word
ify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmErrorLevel [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: exit /b %1 [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmDone [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: setlocal [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: cd C:\Users\flo\Desktop\wordify-plugin\build\bin [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxpr
oj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: C: [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: C:\Users\flo\Desktop\wordify-plugin\build\bin\Debug\moduleinfotool.exe -create -version 2024.07 -path C:/
Users/flo/Desktop/wordify-plugin/build/VST3/Debug/Wordify.vst3 -output C:/Users/flo/Desktop/wordify-plugin/build/VST3/D
ebug/Wordify.vst3/Contents/Resources/moduleinfo.json [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Users\flo\Desktop\wordify-plugin\build\Word
ify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmErrorLevel [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: exit /b %1 [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmDone [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: setlocal [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/flo/Desktop/wordify-plugin/build/bin/Debug/Wordif
yWorker.exe C:/Users/flo/Desktop/wordify-plugin/build/VST3/Debug/Wordify.vst3/Contents/x86_64-win [C:\Users\flo\Desktop
\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: chmod +x C:/Users/flo/Desktop/wordify-plugin/build/VST3/Debug/Wordify.vst3/Contents/x86_64-win/WordifyWor
ker [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Users\flo\Desktop\wordify-plugin\build\Word
ify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmErrorLevel [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: exit /b %1 [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :cmDone [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): e
rror MSB3073: :VCEnd" exited with code 9009. [C:\Users\flo\Desktop\wordify-plugin\build\Wordify.vcxproj]

Aside from that, I found a small typo in the macOS and Linux build instructions: "git clone" is mentioned twice.

Would be great to know what I can do to fix the build issues. I'd love to try this!
Thanks a lot!

@rehans
Copy link
Collaborator

rehans commented Jul 17, 2024

Thanks for the feedback!

I removed the duplicate “git clone” from the instructions and fixed the Windows build.

I don't know what I need to do on macOS though to make it work because when you open Wordify.xcodeproj and build it from Xcode the build is successful. When trying to build from command line it somehow cannot determine the "active architecture"...no idea why. I need to investigate ;)

@rehans
Copy link
Collaborator

rehans commented Jul 18, 2024

macOS is fixed as well. Those architecture warnings can be ignored.

@guitarflow please try again if you find the time :)

@guitarflow
Copy link
Author

Alright, thanks for that! The build scripts are running through now on both the M1 and the Intel machine.
I will play around with the plugin more in the next days.

Cubase 13 crashed immediately when loading the Debug version of the plugin by the way.
It loaded fine with the Release build.

@rehans
Copy link
Collaborator

rehans commented Jul 20, 2024

Great!

...well, not so great that it crashes in Debug ;) Maybe you can provide a stack trace next time.

Furthermore I have updated the Readme in regards to the whisper model: https://github.com/max-and-me/wordify-plugin?tab=readme-ov-file#setup-whispers-ai-model-environment

So please keep in mind that if you build & run the Release version locally, run the installer beforehand.

@guitarflow
Copy link
Author

WordifyCrashLog.txt

Crash log attached.
Apparently ARA related. Disclaimer: I have never used ARA in Cubase before, so may be user error.
I right-clicked an audio clip and selected Wordify from the plugin menu to trigger the crash.

Thanks for the additional info about the Whisper model.

@rehans
Copy link
Collaborator

rehans commented Jul 20, 2024

Ah ok, I see!

The problem is that you select Wordify from the Plug-ins submenu. But you need to select it from the Extensions submenu. I marked Wordify now as an "OnlyARA" extension (ec7ef2f) to remove it from the Plug-ins submenu of Cubase.

Thank you very much, that's a good find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants