Skip to content

Instantly share code, notes, and snippets.

@sagz
Created August 27, 2021 16:20
Show Gist options
  • Save sagz/8a6ef7e6d4969ae4e0ff9cfe83fa4487 to your computer and use it in GitHub Desktop.
Save sagz/8a6ef7e6d4969ae4e0ff9cfe83fa4487 to your computer and use it in GitHub Desktop.
errors in jansson while building obs for m1
➜ obs-installer-for-apple-silicon git:(main) ✗ ./install.sh
[Fri Aug 27 11:16:15 CDT 2021] INFO: Installing build dependencies
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake
Warning: Cask 'vlc' is already installed.
To re-install vlc, run:
brew reinstall vlc
Warning: akeru-inc/tap/xcnotary 0.4.8 is already installed and up-to-date.
To reinstall 0.4.8, run:
brew reinstall xcnotary
Warning: cmake 3.21.2 is already installed and up-to-date.
To reinstall 3.21.2, run:
brew reinstall cmake
Warning: cmocka 1.1.5 is already installed and up-to-date.
To reinstall 1.1.5, run:
brew reinstall cmocka
Warning: ffmpeg 4.4_2 is already installed and up-to-date.
To reinstall 4.4_2, run:
brew reinstall ffmpeg
Warning: jack 1.9.19 is already installed and up-to-date.
To reinstall 1.9.19, run:
brew reinstall jack
Warning: mbedtls@2 2.27.0 is already installed and up-to-date.
To reinstall 2.27.0, run:
brew reinstall mbedtls@2
Warning: qt@5 5.15.2 is already installed and up-to-date.
To reinstall 5.15.2, run:
brew reinstall qt@5
Warning: swig 4.0.2 is already installed and up-to-date.
To reinstall 4.0.2, run:
brew reinstall swig
[Fri Aug 27 11:16:16 CDT 2021] INFO: Copying [files/CMakeLists.txt] into [/tmp/obs/CMakeLists.txt]
[Fri Aug 27 11:16:16 CDT 2021] INFO: Copying [files/cmake/Modules/ObsHelpers.cmake] into [/tmp/obs/cmake/Modules/ObsHelpers.cmake]
[Fri Aug 27 11:16:16 CDT 2021] INFO: Copying [files/plugins/CMakeLists.txt] into [/tmp/obs/plugins/CMakeLists.txt]
[Fri Aug 27 11:16:16 CDT 2021] INFO: Copying template [template/cmake/osxbundle/fixup_bundle.sh] into [/tmp/obs/cmake/osxbundle/fixup_bundle.sh]
[Fri Aug 27 11:16:16 CDT 2021] INFO: Copying template [template/cmake/osxbundle/obslaunch.sh] into [/tmp/obs/cmake/osxbundle/obslaunch.sh]
[Fri Aug 27 11:16:16 CDT 2021] INFO: Copying template [template/cmake/osxbundle/obs.icns] into [/tmp/obs/cmake/osxbundle/obs.icns]
[Fri Aug 27 11:16:16 CDT 2021] INFO: Copying template [template/cmake/osxbundle/Info.plist] into [/tmp/obs/cmake/osxbundle/Info.plist]
[Fri Aug 27 11:16:16 CDT 2021] INFO: Copying template [template/cmake/helper_subdir/CMakeLists.txt] into [/tmp/obs/cmake/helper_subdir/CMakeLists.txt]
/tmp/obs/cmake ~/Downloads/obsm1/obs-installer-for-apple-silicon
-- OBS_VERSION: 27.0.1-modified
-- No Native SSE2 SIMD Support - Using SIMDE
-- Found FFmpeg: /opt/homebrew/Cellar/ffmpeg/4.4_2/lib/../lib/libavcodec.dylib (found version "58.134.100") found components: avcodec avdevice avutil avformat
-- Luajit support not found.
-- Scripting: Python 3 support disabled
-- Scripting: Neither Python 3 nor Luajit was found; scripting plugin disabled
-- Using system Jansson library
-- Found FFmpeg: /opt/homebrew/Cellar/ffmpeg/4.4_2/lib/../lib/libavformat.dylib (found version "58.76.100") found components: avformat avutil swscale swresample avcodec
-- Using libavcodec for image loading in libobs
-- Could NOT find LibVLC (missing: VLC_INCLUDE_DIR)
-- VLC video plugin disabled
-- Found jack: /opt/homebrew/lib/libjack.dylib
-- Using the bundled VST header.
-- Libfdk not found - obs-libfdk plugin disabled
-- Found FFmpeg: /opt/homebrew/Cellar/ffmpeg/4.4_2/lib/../lib/libavcodec.dylib (found version "58.134.100") found components: avcodec avfilter avdevice avutil swscale avformat swresample
-- Found FFmpeg: /opt/homebrew/Cellar/ffmpeg/4.4_2/lib/../lib/libavcodec.dylib (found version "58.134.100") found components: avcodec avutil avformat
-- Could NOT find MbedTLS (missing: MBEDTLS_LIBRARIES MBEDTLS_INCLUDE_DIRS)
CMake Warning at plugins/obs-outputs/CMakeLists.txt:15 (message):
mbedTLS or zlib was not found, RTMPS will be auto-disabled
-- Checking for module 'libftl'
-- No package 'libftl' found
-- Found ftl-sdk: ftl outputs enabled
-- Could NOT find Libspeexdsp (missing: SPEEXDSP_LIB)
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/obs/cmake
Consolidate compiler generated dependencies of target glad
[ 1%] Built target glad
Consolidate compiler generated dependencies of target media-playback
[ 1%] Built target media-playback
Consolidate compiler generated dependencies of target caption
[ 3%] Built target caption
Consolidate compiler generated dependencies of target libobs
[ 21%] Built target libobs
Consolidate compiler generated dependencies of target file-updater
[ 21%] Built target file-updater
Consolidate compiler generated dependencies of target libobs-opengl
[ 24%] Built target libobs-opengl
Consolidate compiler generated dependencies of target coreaudio-encoder
[ 25%] Built target coreaudio-encoder
Consolidate compiler generated dependencies of target mac-avcapture
[ 25%] Built target mac-avcapture
Consolidate compiler generated dependencies of target mac-capture
[ 27%] Built target mac-capture
Consolidate compiler generated dependencies of target mac-vth264
[ 28%] Built target mac-vth264
Consolidate compiler generated dependencies of target syphon-framework
[ 33%] Built target syphon-framework
Consolidate compiler generated dependencies of target mac-syphon
[ 34%] Built target mac-syphon
Consolidate compiler generated dependencies of target obs-frontend-api
[ 34%] Built target obs-frontend-api
Consolidate compiler generated dependencies of target mac-virtualcam
[ 34%] Built target mac-virtualcam
Consolidate compiler generated dependencies of target mac-dal-plugin
[ 36%] Built target mac-dal-plugin
Consolidate compiler generated dependencies of target mac-decklink
[ 40%] Built target mac-decklink
Consolidate compiler generated dependencies of target linux-jack
[ 41%] Built target linux-jack
[ 41%] Automatic MOC for target obs-vst
[ 41%] Built target obs-vst_autogen
Consolidate compiler generated dependencies of target obs-vst
[ 42%] Built target obs-vst
Consolidate compiler generated dependencies of target image-source
[ 43%] Built target image-source
Consolidate compiler generated dependencies of target obs-x264-util
[ 43%] Built target obs-x264-util
Consolidate compiler generated dependencies of target obs-x264-test
[ 44%] Built target obs-x264-test
Consolidate compiler generated dependencies of target obs-x264
[ 45%] Built target obs-x264
Consolidate compiler generated dependencies of target obs-ffmpeg
[ 47%] Built target obs-ffmpeg
Consolidate compiler generated dependencies of target obs-ffmpeg-mux
[ 47%] Built target obs-ffmpeg-mux
Consolidate compiler generated dependencies of target obs-outputs
[ 48%] Building C object plugins/obs-outputs/CMakeFiles/obs-outputs.dir/ftl-sdk/libftl/ingest.c.o
In file included from /tmp/obs/plugins/obs-outputs/ftl-sdk/libftl/ingest.c:2:
/tmp/obs/plugins/obs-outputs/ftl-sdk/libftl/ftl_private.h:163:13: warning: redefinition of typedef 'SOCKET' is a C11 feature [-Wtypedef-redefinition]
typedef int SOCKET;
^
/tmp/obs/plugins/obs-outputs/ftl-sdk/libftl/posix/socket.h:1:13: note: previous definition is here
typedef int SOCKET;
^
In file included from /tmp/obs/plugins/obs-outputs/ftl-sdk/libftl/ingest.c:2:
/tmp/obs/plugins/obs-outputs/ftl-sdk/libftl/ftl_private.h:164:14: warning: redefinition of typedef 'BOOL' is a C11 feature [-Wtypedef-redefinition]
typedef bool BOOL;
^
/tmp/obs/plugins/obs-outputs/ftl-sdk/libftl/posix/threads.h:37:14: note: previous definition is here
typedef bool BOOL;
^
/tmp/obs/plugins/obs-outputs/ftl-sdk/libftl/ingest.c:5:10: fatal error: 'jansson.h' file not found
#include <jansson.h>
^~~~~~~~~~~
2 warnings and 1 error generated.
make[2]: *** [plugins/obs-outputs/CMakeFiles/obs-outputs.dir/ftl-sdk/libftl/ingest.c.o] Error 1
make[1]: *** [plugins/obs-outputs/CMakeFiles/obs-outputs.dir/all] Error 2
make: *** [all] Error 2
[Fri Aug 27 11:16:19 CDT 2021] FATAL: Unable to build OBS; see above logs for more info. Try running this instead: REPACKAGE=true ./install.sh
➜ obs-installer-for-apple-silicon git:(main) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment