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

Fails to build #1

Open
Geekachuqt opened this issue May 24, 2023 · 1 comment
Open

Fails to build #1

Geekachuqt opened this issue May 24, 2023 · 1 comment

Comments

@Geekachuqt
Copy link

Presents an error as follows:

-- Performing Test SMTG_USE_STDATOMIC_H
-- Performing Test SMTG_USE_STDATOMIC_H - Failed
CMake Error at E:/VST_SDK/vst3helloworld/build/_deps/vst3sdk-src/vstgui4/vstgui/standalone/cmake/mod
ules/vstgui_add_executable.cmake:46 (target_link_libraries):
  Cannot specify link libraries for target "VST3Inspector" which is not built
  by this project.
Call Stack (most recent call first):
  E:/VST_SDK/vst3helloworld/build/_deps/vst3sdk-src/public.sdk/samples/vst-hosting/inspectorapp/CMak
eLists.txt:49 (vstgui_add_executable)

CMakeErrorLog.txt contains the following:

Performing C++ SOURCE FILE Test SMTG_USE_STDATOMIC_H failed with the following output:
Change Dir: E:/VST_SDK/vst3helloworld/build/CMakeFiles/CMakeScratch/TryCompile-9jn9jm

Run Build Command(s):C:/msys64/mingw64/bin/ninja.exe cmTC_3b9c6 && [1/2] Building CXX object CMakeFiles/cmTC_3b9c6.dir/src.cxx.obj

FAILED: CMakeFiles/cmTC_3b9c6.dir/src.cxx.obj 
C:\msys64\mingw64\bin\c++.exe -DSMTG_USE_STDATOMIC_H  -Wno-multichar -o CMakeFiles/cmTC_3b9c6.dir/src.cxx.obj -c E:/VST_SDK/vst3helloworld/build/CMakeFiles/CMakeScratch/TryCompile-9jn9jm/src.cxx
E:/VST_SDK/vst3helloworld/build/CMakeFiles/CMakeScratch/TryCompile-9jn9jm/src.cxx: In function 'int main()':
E:/VST_SDK/vst3helloworld/build/CMakeFiles/CMakeScratch/TryCompile-9jn9jm/src.cxx:3:9: error: 'atomic_int_least32_t' was not declared in this scope
    3 |         atomic_int_least32_t value = 0;
      |         ^~~~~~~~~~~~~~~~~~~~
E:/VST_SDK/vst3helloworld/build/CMakeFiles/CMakeScratch/TryCompile-9jn9jm/src.cxx:4:28: error: 'value' was not declared in this scope
    4 |         atomic_fetch_add (&value, 1);
      |                            ^~~~~
E:/VST_SDK/vst3helloworld/build/CMakeFiles/CMakeScratch/TryCompile-9jn9jm/src.cxx:4:9: error: 'atomic_fetch_add' was not declared in this scope
    4 |         atomic_fetch_add (&value, 1);
      |         ^~~~~~~~~~~~~~~~

ninja: build stopped: subcommand failed.



Source file was:
#include <stdatomic.h>
int main () { 
	atomic_int_least32_t value = 0;
	atomic_fetch_add (&value, 1); 
	return 0; 
}

I am on Windows 10 Home, executing the build command from MSYS2 MinGW x64. Some digging around shows that basically nothing from vstgui4 is building, which seems to be what is causing the fail.

@ygrabit
Copy link
Collaborator

ygrabit commented Jun 15, 2023

which version of cmake do you use? did you try to update it?

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