carlosonunez / obs-installer-for-apple-silicon

Conveniently build and install OBS from source on your ultra-fast Apple M1 MacBook or Mac
206 stars 23 forks source link

Missing file during compile routine #25

Closed bochinche closed 2 years ago

bochinche commented 2 years ago

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

MostlyEmre commented 2 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.

saltednut commented 2 years ago

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.

simonbunge commented 2 years ago

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...

Didn't even bother to create a patch as it's such a trivial fix. Hope it's still useful, @carlosonunez.

carlosonunez commented 2 years ago

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.

carlosonunez commented 2 years ago

Merged; closing.