You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The macos build in github action fails with the error:
[ZERO_CHECK] Running script Generate CMakeFiles/ZERO_CHECK
[plugin-support] Compiling plugin-support.c
[plugin-support] Compiling plugin-support.c
[plugin-support] Building library libplugin-support.a
[plugin-support] Building library libplugin-support.a
[obs-plugintemplate] Processing empty-obs-plugintemplate.plist
[obs-plugintemplate] Compiling plugin-main.c
❌ /Users/runner/work/obs-plugintemplate/obs-plugintemplate/.deps/Frameworks/libobs.framework/Headers/graphics/../util/sse-intrin.h:31:10: 'simde/x86/sse2.h' file not found
#include "simde/x86/sse2.h"
^~~~~~~~~~~~~~~~~~
[obs-plugintemplate] Compiling plugin-main.c
❌ /Users/runner/work/obs-plugintemplate/obs-plugintemplate/.deps/Frameworks/libobs.framework/Headers/graphics/../util/sse-intrin.h:31:10: 'simde/x86/sse2.h' file not found
#include "simde/x86/sse2.h"
The detail error is (re run action with debug info):
In file included from /Users/runner/work/obs-plugintemplate/obs-plugintemplate/src/plugin-main.c:19:
In file included from /Users/runner/work/obs-plugintemplate/obs-plugintemplate/.deps/Frameworks/libobs.framework/Headers/obs-module.h:20:
In file included from /Users/runner/work/obs-plugintemplate/obs-plugintemplate/.deps/Frameworks/libobs.framework/Headers/obs.h:26:
In file included from /Users/runner/work/obs-plugintemplate/obs-plugintemplate/.deps/Frameworks/libobs.framework/Headers/graphics/vec3.h:21:
In file included from /Users/runner/work/obs-plugintemplate/obs-plugintemplate/.deps/Frameworks/libobs.framework/Headers/graphics/vec4.h:23:
/Users/runner/work/obs-plugintemplate/obs-plugintemplate/.deps/Frameworks/libobs.framework/Headers/graphics/../util/sse-intrin.h:31:10: fatal error: 'simde/x86/sse2.h' file not found
#include "simde/x86/sse2.h"
After some digging it appears that
AFAIU The root cause is that the ARCH_SIMDE_FLAGS is not set during the obs-studio build for MacOS as the obs-studio build is using the new "framework 3.0" cause the OBS_CMAKE_VERSION is forced to 3.0.0 for MacOS and obs-studio CMakeList.txt uses "framework 3.0" for "Darwin"
The use of "framework 3.0" (instead of legacy) does not expose the simde header for libobs cause ARCH_SIMD_FLAGS is never set hence the test in obs-studio/libobs/CMakeLists.txt:316 fails to add this files to public headers.
This does not happen on windows cause OBS_CMAKE_VERSION is set to 2.0.0 so the legacy build is used in OBS
Does not happen either for linux cause libobs deps is not built taken from package manager which install all the simde headers
push on master to trigger github action -> windows, linux build fine, macos fails.
Anything else we should know?
I had this issue cause I was preparing the update of a plugins that uses libobs "util/util.hpp" which is not available on 29.1.2 (restored by obsproject/obs-studio@55237ab on master and release/30.0.0)
So I changed buildspec.json to use 30.0.0-rc1 and the new sse2.h occurs on macos only.
As the 30.0.0 is still in RC1 it is not too late to fix it.
The text was updated successfully, but these errors were encountered:
ubifred
changed the title
sse2.h is missing
macos github action fails with "sse2.h is missing" when used with obs 30.0.0-rc1
Oct 19, 2023
Operating System Info
Windows 11
Other OS
MacOS
OBS Studio Version
30.0.0-rc1
OBS Studio Version (Other)
No response
OBS Studio Log URL
Not relevant
OBS Studio Crash Log URL
No response
Expected Behavior
obs-plugintemplate build work on macos with obs-studio 30.0.0
Current Behavior
With the buildspec.json configure to use obs-studio 30.0.0-rc1
The macos build in github action fails with the error:
The detail error is (re run action with debug info):
After some digging it appears that
AFAIU The root cause is that the ARCH_SIMDE_FLAGS is not set during the obs-studio build for MacOS as the obs-studio build is using the new "framework 3.0" cause the OBS_CMAKE_VERSION is forced to 3.0.0 for MacOS and obs-studio CMakeList.txt uses "framework 3.0" for "Darwin"
The use of "framework 3.0" (instead of legacy) does not expose the simde header for libobs cause ARCH_SIMD_FLAGS is never set hence the test in obs-studio/libobs/CMakeLists.txt:316 fails to add this files to public headers.
This does not happen on windows cause OBS_CMAKE_VERSION is set to 2.0.0 so the legacy build is used in OBS
Does not happen either for linux cause libobs deps is not built taken from package manager which install all the simde headers
Steps to Reproduce
buildspec.json
to use obs 30.0.0-rc1:Anything else we should know?
I had this issue cause I was preparing the update of a plugins that uses libobs "util/util.hpp" which is not available on 29.1.2 (restored by obsproject/obs-studio@55237ab on master and release/30.0.0)
So I changed buildspec.json to use 30.0.0-rc1 and the new sse2.h occurs on macos only.
As the 30.0.0 is still in RC1 it is not too late to fix it.
The text was updated successfully, but these errors were encountered: