Question / Help Problems Compiling on Debian stretch.

So, I want to use OBS Studio on my Debian Testing system (Stretch)
And so I make sure ffmpeg is installed:
Code:
me@tp-T450s-Travis:~/obs-studio/build$ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree      
Reading state information... Done
ffmpeg is already the newest version (7:2.8.5-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
So then I follow the OBS compilation instructions here: https://github.com/jp9000/obs-studio/wiki/Install-Instructions#linux
And I come to this:
Code:
travis@tp-T450s-Travis:~/obs-studio/build$ cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
-- OBS_VERSION: 0.13.1-10-g54bdb4d
CMake Error at /usr/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find FFmpeg (missing: FFMPEG_AVCODEC_LIBRARIES
  FFMPEG_AVCODEC_INCLUDE_DIRS avcodec avfilter avdevice avutil swscale
  avformat swresample)
Call Stack (most recent call first):
  /usr/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindFFmpeg.cmake:147 (find_package_handle_standard_args)
  deps/libff/CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/travis/obs-studio/build/CMakeFiles/CMakeOutput.log".
The cmake log is attatched. I am dumbfounded on what to do at this point.. :/
 

Attachments

  • cmakelog.txt
    47.9 KB · Views: 38
Hi.

I have encountered a lot of troubles with debian too.
There are many troubles regarding linking in obs-studio.
I have managed to compile it.

I can provide you the instructions to achieve this if still needed.

I may submit a patch to fix the CMakelists.txt
 
Quick help prior to a better written tutorial. I used the following cmake variables:

Code:
CMAKE_MODULE_LINKER_FLAGS:STRING= -Wl,--fatal-warnings -Wl,--no-undefined -lc -lm -lX11 -lpthread -lxcb -lX11-xcb -ldl -lswresample
CMAKE_SHARED_LINKER_FLAGS:STRING= -Wl,--fatal-warnings -Wl,--no-undefined -lc -lm -lX11 -lpthread -lxcb -lX11-xcb -ldl -lswresample

Also, I have used the "recompile FFMPEG" method. So I had to provide the following paths:
Code:
FFMPEG_avcodec_INCLUDE_DIR:PATH=/home/vincent/ffmpeg
FFMPEG_avcodec_LIBRARY:FILEPATH=/home/vincent/ffmpeg/libavcodec/libavcodec.so
FFMPEG_avdevice_INCLUDE_DIR:PATH=/home/vincent/ffmpeg
FFMPEG_avdevice_LIBRARY:FILEPATH=/home/vincent/ffmpeg/libavdevice/libavdevice.so
FFMPEG_avfilter_INCLUDE_DIR:PATH=/home/vincent/ffmpeg
FFMPEG_avfilter_LIBRARY:FILEPATH=/home/vincent/ffmpeg/libavfilter/libavfilter.so
FFMPEG_avformat_INCLUDE_DIR:PATH=/home/vincent/ffmpeg
FFMPEG_avformat_LIBRARY:FILEPATH=/home/vincent/ffmpeg/libavformat/libavformat.so
FFMPEG_avutil_INCLUDE_DIR:PATH=/home/vincent/ffmpeg
FFMPEG_avutil_LIBRARY:FILEPATH=/home/vincent/ffmpeg/libavutil/libavutil.so
FFMPEG_swresample_INCLUDE_DIR:PATH=/home/vincent/ffmpeg
FFMPEG_swresample_LIBRARY:FILEPATH=/home/vincent/ffmpeg/libswresample/libswresample.so.2
FFMPEG_swscale_INCLUDE_DIR:PATH=/home/vincent/ffmpeg
FFMPEG_swscale_LIBRARY:FILEPATH=/home/vincent/ffmpeg/libswscale/libswscale.so

I may have installed a bunch of lib*-dev packages too. I can try to put the list here if needed. But you may be ok with the stuff above.
Good luck. Feel free to ask for more help.
 

jevac

New Member
apt-get install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavresample-dev libavutil-dev libcurl4-openssl-dev libxcb-xinerama0-dev libx264-dev libqt5svg5-dev libqt5x11extras5-dev
 
Top