Question / Help cmake error missing Syphon

bennykhoo

New Member
I am getting the following error.

I downloaded the source from https://github.com/jp9000/obs-studio/ and my
plugins/mac-syphon/syphon-framework/ directory is empty. Trying to build OBS on 10.9.5. Still new to CMake, any help are very much appreciated! Thx

% cmake .. && make

-- Jansson >=2.5 not found, building bundled version

-- Found FFMpeg: /opt/local/lib/../lib/libavformat.dylib (found version "56.7.104") found components: avformat avutil swscale swresample avcodec

-- Using ImageMagick for image loading in libobs

-- Libfdk not found - obs-libfdk plugin disabled

-- Found FFMpeg: /opt/local/lib/../lib/libavcodec.dylib (found version "56.3.100") found components: avcodec avutil swscale avformat swresample

-- Configuring done

CMake Error at plugins/mac-syphon/CMakeLists.txt:71 (add_library):

Cannot find source file:



syphon-framework/Syphon_Prefix.pch



Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp

.hxx .in .txx
 

dodgepong

Administrator
Community Helper
Make sure you run "git submodule update --init --recursive" to check out submodules, including the Syphon framework.
 

bennykhoo

New Member
This fixed the issue. I must have jumped the instructions in INSTALL.txt down to the Mac section. Thank you so much!
 

ALLCAPSMACTEP

New Member
I am stuck compiling as well, and my syphon folder is empty. The above solution did not work for me, and the instructions are not overly helpful here as a n00b looking to test a few things in the code. I sorted the qt5 error, but now I am stuck on this:


build Home$ cmake .. && make

fatal: bad revision 'HEAD'

-- OBS_VERSION:

-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.dylib (found version "56.60.100") found components: avcodec avfilter avdevice avutil swscale avformat swresample

-- Jansson >=2.5 not found, building bundled version

-- Found FFmpeg: /usr/local/lib/../lib/libavformat.dylib (found version "56.40.101") found components: avformat avutil swscale swresample avcodec

-- Using libavcodec for image loading in libobs

-- Libfdk not found - obs-libfdk plugin disabled

-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.dylib (found version "56.60.100") found components: avcodec avfilter avdevice avutil swscale avformat swresample

-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.dylib (found version "56.60.100") found components: avcodec avutil avformat

-- Configuring done

CMake Error at plugins/mac-syphon/CMakeLists.txt:71 (add_library):

Cannot find source file:


syphon-framework/Syphon_Prefix.pch


Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp

.hxx .in .txx



CMake Error: CMake can not determine linker language for target: mac-syphon

CMake Error: Cannot determine link language for target "mac-syphon".

-- Generating done

-- Build files have been written to: /Users/Home/Desktop/obs-studio-master/build


Update: Directory no longer empty, but error persists. Maybe not checking out right.
 
Last edited:

ALLCAPSMACTEP

New Member
Ok, I sorted it with the help of someone competent. :-)

Firstly, you need to clone the source, not download and extract. After installing git, just use 'git clone [the URL]' to clone it.

Secondly, you need to apply 'git submodule update --init' to the folder of obs-studio in the git (which I put in the home directory). Then there are no qt5 directory errors either, it just compiles. I was having folders randomly all over the place and hopelessly initializing and checking out of folders. Home dir ftw.
 
Top