Closed bochinche closed 3 years ago
I'm getting the same error. On Mac Mini M1 Version 11.6.
[ 55%] Building C object plugins/obs-outputs/CMakeFiles/obs-outputs.dir/librtmp/rtmp.c.o
In file included from /tmp/obs/plugins/obs-outputs/librtmp/rtmp.c:178:
/tmp/obs/plugins/obs-outputs/librtmp/handshake.h:29:10: fatal error: 'mbedtls/arc4.h' file not found
#include <mbedtls/arc4.h>
^~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [plugins/obs-outputs/CMakeFiles/obs-outputs.dir/librtmp/rtmp.c.o] Error 1
make[1]: *** [plugins/obs-outputs/CMakeFiles/obs-outputs.dir/all] Error 2
make: *** [all] Error 2
[Wed 13 Oct 2021 11:36:32 EDT] FATAL: Unable to build OBS; see above logs for more info. Try running this instead: REPACKAGE=true ./install.sh
Ran REPACKAGE=true ./install.sh
too but got the same result.
Saw this error on an M1 Mac Mini - you'll see the /tmp errors in Big Sur if you do not disable the authenticated-root stats in csrutil
https://developer.apple.com/forums/thread/652538
Boot into recovery then csrutil authenticated-root disable
and restart as prompted.
Nothing to do with authenticated-root at all. The simple cause is that brew install mbedtls
gets us v3.0.0 by default, which no longer has the arc4 header in question.
The solution is as simple, i.e. uninstalling the wrong version with brew uninstall mbedtls mbedtls@3
and then amending install.sh to install and point cmake to the correct one...
cmocka ffmpeg jack mbedtls@2 qt@5 swig "openssl@1.1"
-DCMAKE_PREFIX_PATH="/opt/homebrew/opt/qt@5;/opt/homebrew/opt/mbedtls@2"
Didn't even bother to create a patch as it's such a trivial fix. Hope it's still useful, @carlosonunez.
This is awesome. Thanks! Create a PR and I'll merge it in. On Oct 15, 2021, 18:39 -0500, simonbunge @.***>, wrote:
Nothing to do with authenticated-root at all. The simple cause is that brew install mbedtls gets us v3.0.0 by default, which no longer has the arc4 header in question. The solution is as simple, i.e. uninstalling the wrong version with brew uninstall mbedtls @. @. and then slightly amending install.sh to install and point cmake to the correct one...
• Line 233 to cmocka ffmpeg jack @. @. swig @." • Line 328 to @*.**@*.***"
Didn't even bother to create a patch as it's such a trivial fix. Hope it's still useful, @carlosonunez. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
Merged; closing.
In file included from /tmp/obs/plugins/obs-outputs/librtmp/rtmp.c:178: /tmp/obs/plugins/obs-outputs/librtmp/handshake.h:29:10: fatal error: 'mbedtls/arc4.h' file not found
include <mbedtls/arc4.h>
1 error generated. make[2]: [plugins/obs-outputs/CMakeFiles/obs-outputs.dir/librtmp/rtmp.c.o] Error 1 make[1]: [plugins/obs-outputs/CMakeFiles/obs-outputs.dir/all] Error 2 make: *** [all] Error 2 [Wed Oct 13 12:52:04 CEST 2021] FATAL: Unable to build OBS; see above logs for more info. Try running this instead: REPACKAGE=true ./install.sh