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

[Windows] Link Error on VST3Inspector #48

Open
ryukau opened this issue Dec 17, 2022 · 0 comments
Open

[Windows] Link Error on VST3Inspector #48

ryukau opened this issue Dec 17, 2022 · 0 comments

Comments

@ryukau
Copy link

ryukau commented Dec 17, 2022

[Windows] Link Error on VST3Inspector

Following error occured on GitHub Actions' windows-latest environment. VST 3 SDK version is 3.7.7.

2022-12-16T16:07:44.5922127Z vstgui_uidescription.lib(uiviewcreator.obj) : error LNK2019: unresolved external symbol "public: __cdecl VSTGUI::UIViewCreator::AutoAnimationCreator::AutoAnimationCreator(void)" (??0AutoAnimationCreator@UIViewCreator@VSTGUI@@QEAA@XZ) referenced in function "void __cdecl VSTGUI::UIViewCreator::`dynamic initializer for '__gAutoAnimationCreator''(void)" (??__E__gAutoAnimationCreator@UIViewCreator@VSTGUI@@YAXXZ) [D:\a\VSTPlugins\VSTPlugins\build\public.sdk\samples\vst-hosting\inspectorapp\VST3Inspector.vcxproj]
2022-12-16T16:07:44.5924152Z D:\a\VSTPlugins\VSTPlugins\build\bin\Release\VST3Inspector\VST3Inspector.exe : fatal error LNK1120: 1 unresolved externals [D:\a\VSTPlugins\VSTPlugins\build\public.sdk\samples\vst-hosting\inspectorapp\VST3Inspector.vcxproj]

Following CMake command is used. (Link to full build script):

cmake `
  -S vst3sdk `
  -B build `
  -G "Visual Studio 17 2022" `
  -A x64 `
  -DCMAKE_BUILD_TYPE=Release `
  -DSMTG_MYPLUGINS_SRC_PATH="$SRC_ROOT\VSTPlugins" `
  -DSMTG_PLUGIN_TARGET_USER_PATH="$SRC_ROOT\target" `
  -DSMTG_ADD_VST3_HOSTING_SAMPLES=FALSE `
  -DSMTG_ADD_VST3_PLUGINS_SAMPLES=FALSE `
  -DSMTG_CREATE_PLUGIN_LINK=FALSE

cmake --build build -j --config Release

Full log from GitHub Actions is on following link:

https://gist.github.com/ryukau/70f07cc29c0d189df2e8e674dd76b515

Workaround

VST3Inspector is placed in public.sdk\sample. So I expected that setting SMTG_ADD_VST3_HOSTING_SAMPLES to FALSE disables the build, but it didn't. As a workaround, I changed first condition of public.sdk\samples\vst-hosting\inspectorapp\CMakeLists.txt as following.

if(TARGET vstgui AND TARGET vstgui_standalone AND SMTG_ADD_VST3_HOSTING_SAMPLES)
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

1 participant