Compiling and Installing in Debian

#21
Not sure that will do the trick... haha

michael@debian:~/obs-studio/build$ make clean
make: *** No rule to make target 'clean'. Stop.
 
#22
This is in wheezy what can i do
/obs-studio/plugins/linux-v4l2/v4l2-input.c: In function ‘v4l2_device_list’:
/obs-studio/plugins/linux-v4l2/v4l2-input.c:301:36: error: ‘V4L2_CAP_DEVICE_CAPS’ undeclared (first use in this function)
/obs-studio/plugins/linux-v4l2/v4l2-input.c:301:36: note: each undeclared identifier is reported only once for each function it appears in
/obs-studio/plugins/linux-v4l2/v4l2-input.c:302:15: error: ‘struct v4l2_capability’ has no member named ‘device_caps’
/obs-studio/plugins/linux-v4l2/v4l2-input.c: In function ‘format_selected’:
/obs-studio/plugins/linux-v4l2/v4l2-input.c:599:28: error: ‘V4L2_IN_CAP_DV_TIMINGS’ undeclared (first use in this function)
/obs-studio/plugins/linux-v4l2/v4l2-input.c: In function ‘v4l2_init’:
/obs-studio/plugins/linux-v4l2/v4l2-input.c:831:19: error: ‘V4L2_IN_CAP_DV_TIMINGS’ undeclared (first use in this function)
make[2]: *** [plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-input.c.o] Fehler 1
make[1]: *** [plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/all] Fehler 2
 

Ejk

New Member
#23
On debian 7.8 wheezy:
Cmake-2.8.12 is only aviable on i386 and x86-64, on others the newest version is 2.8.9.
Should I try to update to jessie?
 
Last edited:
#24
No! My Thinking ist not Upgrade to Jessie! Jessie ist not frozen! You can Manualy Cmake-2.8.12 with sources in your personal home install. I make that!
 

Ejk

New Member
#25
I backported cmake from jessie. Now I'm stuck on compiling obs: xcb_randr not found

root@localhost:/# cd obs-studio/build
root@localhost:/obs-studio/build# cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
-- OBS_VERSION: 0.9.1-95-g4af2353
-- Found FFMpeg: /usr/sbin/../lib/libavcodec.so (found version "56.35.101") found components: avcodec avfilter avdevice avutil swscale avformat swresample
-- Jansson >=2.5 not found, building bundled version
-- XCB[XCB]: Found component XCB
-- Found FFMpeg: /usr/sbin/../lib/libavformat.so (found version "56.31.100") found components: avformat avutil swscale swresample avcodec
-- Using libavcodec for image loading in libobs
-- XCB[XCB]: Found component XCB
-- Could NOT find XCB_RANDR (missing: XCB_RANDR_LIBRARY XCB_RANDR_INCLUDE_DIR)
-- XCB[XINERAMA]: Found component XINERAMA
CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find XCB (missing: XCB_RANDR_FOUND)
Call Stack (most recent call first):
/usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindXCB.cmake:239 (find_package_handle_standard_args)
obs/CMakeLists.txt:74 (find_package)


-- Configuring incomplete, errors occurred!
See also "/obs-studio/build/CMakeFiles/CMakeOutput.log".
See also "/obs-studio/build/CMakeFiles/CMakeError.log".
root@localhost:/obs-studio/build#
 
Last edited:

Ejk

New Member
#29
Just use wheezy-backports it has a more recent cmake.
Wheezy-backports only got 2.8.11, when it needs 2.8.12. Anyways, I installed 3.0.2. from jessie (I didn't update the whole system).

Edit: just read the first post for another time and saw that I should have made the folder "obs-studio" in the folder "FFMpeg". Will be moving and compiling when I get some spare time

Edit2: Changing /obs-studio to /ffmpeg/obs-studio didn't change a thing. Still getting " xcb_randr_found" not found

Edit3: Found out that my hardware doesn't got linux drivers supporting opengl 3.2
 
Last edited:
#30
What can I do if I get this error:
Code:
Linking C shared library libobs.so
/usr/bin/ld: /usr/local/lib/../lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/../lib/libavcodec.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
libobs/CMakeFiles/libobs.dir/build.make:1591: recipe for target 'libobs/libobs.so.0' failed
make[2]: *** [libobs/libobs.so.0] Error 1
CMakeFiles/Makefile2:280: recipe for target 'libobs/CMakeFiles/libobs.dir/all' failed
make[1]: *** [libobs/CMakeFiles/libobs.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
 
#33
I am up and running on Debian Jessie 8.1 X64. Took me a while to get it right. This is what I did. It should work as a script as well.

sudo apt-get install deb-multimedia-keyring

sudo sh -c 'echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list'

sudo apt-get update

sudo apt-get install autoconf automake build-essential checkinstall cmake git libass-dev libcurl4-openssl-dev libfontconfig1-dev libfreetype6-dev libgl1-mesa-dev libjack-jackd2-dev libopus-dev libpostproc53 libpulse-dev libqt5x11extras5-dev libsdl1.2-dev libtheora-dev libtool libudev-dev libv4l-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libx264-dev libxcb-shm0-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb1-dev libxcomposite-dev libxinerama-dev pkg-config qtbase5-dev texi2html yasm zlib1g-dev

cd

git clone git://source.ffmpeg.org/ffmpeg.git

cd ffmpeg

./configure --enable-shared --enable-gpl --enable-libass --enable-libfreetype --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --disable-static

make -j4

sudo checkinstall --pkgname=FFmpeg --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes

cd

git clone https://github.com/jp9000/obs-studio.git

cd obs-studio

mkdir build && cd build

cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..

make -j4

sudo checkinstall --pkgname=OBS-studio --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes
 
Last edited:
#34
I am up and running on Debian Jessie 8.1 X64. Took me a while to get it right. This is what I did. It should work as a script as well.

sudo apt-get install deb-multimedia-keyring

sudo sh -c 'echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list'

sudo apt-get update

sudo apt-get install autoconf automake build-essential checkinstall cmake git libass-dev libcurl4-openssl-dev libfontconfig1-dev libfreetype6-dev libgl1-mesa-dev libjack-jackd2-dev libopus-dev libpostproc53 libpulse-dev libqt5x11extras5-dev libsdl1.2-dev libtheora-dev libtool libudev-dev libv4l-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libx264-dev libxcb-shm0-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb1-dev libxcomposite-dev libxinerama-dev pkg-config qtbase5-dev texi2html yasm zlib1g-dev

cd

git clone git://source.ffmpeg.org/ffmpeg.git

cd ffmpeg

./configure --enable-shared --enable-gpl --enable-libass --enable-libfreetype --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --disable-static

make -j4

sudo checkinstall --pkgname=FFmpeg --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes

cd

git clone https://github.com/jp9000/obs-studio.git

cd obs-studio

mkdir build && cd build

cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..

make -j4

sudo checkinstall --pkgname=OBS-studio --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes
Managed to do it using your instructions! I just needed to to an "ldconfig" after everything because of a library thingy. (I'm really new in linux)
 
#35
Hello guys!

I'm new to Open Broadcaster Software, I want to install it on a Debian testing/stretch. How to install clean & easy? The last post is one and a half year old already, are there any good ways available in 2016?

I've installed the .deb package from the autor of this thread which is already more than a year old - after starting it it says "
obs: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory". It seems I have to install the Qt5 from the native source like described throughout this thread.

It would be nice to get a great answer. Thank you very much!

Best wishes

XaviaX Star
 
#36
I tried to compile it with the ffmpeg by debian but cmake says that it isnt installed:



CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (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.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindFFmpeg.cmake:147 (find_package_handle_standard_args)
deps/libff/CMakeLists.txt:4 (find_package)
 
#37
Hello guys!

I'm new to Open Broadcaster Software, I want to install it on a Debian testing/stretch. How to install clean & easy? The last post is one and a half year old already, are there any good ways available in 2016?

I've installed the .deb package from the autor of this thread which is already more than a year old - after starting it it says "
obs: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory". It seems I have to install the Qt5 from the native source like described throughout this thread.

It would be nice to get a great answer. Thank you very much!

Best wishes

XaviaX Star
Try this: "# ln ./usr/lib/x86_64-linux-gnu/libQt5Widgets.so ./usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5"
 
#38
Hi guys!

i am using Raspberry pi 3 with Rasbian OS.

when i install the command "sudo cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTAL"
i am getting below error. Please help me.


pi@raspberrypi:~/obs-studio/build $ sudo cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
-- OBS_VERSION: 19.0.2-20-ga4f9ce9
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
CMake Error at /usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Libcurl (missing: CURL_LIB CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindLibcurl.cmake:64 (find_package_handle_standard_args)
deps/file-updater/CMakeLists.txt:3 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/pi/obs-studio/deps/glad/OPENGL_INCLUDE_DIR
used as include directory in directory /home/pi/obs-studio/deps/glad
/home/pi/obs-studio/deps/glad/X11_X11_INCLUDE_PATH
used as include directory in directory /home/pi/obs-studio/deps/glad
OPENGL_gl_LIBRARY (ADVANCED)
linked by target "glad" in directory /home/pi/obs-studio/deps/glad
X11_X11_LIB (ADVANCED)
linked by target "glad" in directory /home/pi/obs-studio/deps/glad

-- Configuring incomplete, errors occurred!
See also "/home/pi/obs-studio/build/CMakeFiles/CMakeOutput.log".
 
#39
has anyone figure out how to fix this error:
By not providing "FindPulseAudio.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"PulseAudio", but CMake did not find one.

Could not find a package configuration file provided by "PulseAudio" with
any of the following names:

PulseAudioConfig.cmake
pulseaudio-config.cmake

Add the installation prefix of "PulseAudio" to CMAKE_PREFIX_PATH or set
"PulseAudio_DIR" to a directory containing one of the above files. If
"PulseAudio" provides a separate development package or SDK, be sure it has
been installed.


-- Using libavcodec for image loading in libobs
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.a (found version "54.59.100") found components: avcodec avutil avformat
-- XCB[XCB]: Found component XCB
-- XCB[SHM]: Found component SHM
-- Could NOT find XCB_XFIXES (missing: XCB_XFIXES_LIBRARY XCB_XFIXES_INCLUDE_DIR)
-- XCB[XINERAMA]: Found component XINERAMA
CMake Error at /opt/cmake-3.0.2-Linux-i386/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find XCB (missing: XCB_XFIXES_FOUND)
Call Stack (most recent call first):
/opt/cmake-3.0.2-Linux-i386/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindXCB.cmake:239 (find_package_handle_standard_args)
plugins/linux-capture/CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/mvgen/obs-studio/build/CMakeFiles/CMakeOutput.log".
See also "/home/mvgen/obs-studio/build/CMakeFiles/CMakeError.log".
 
Top