Try to build old obs studio from source code ,but I ve got errors

Hi this is my first article here,my distribution is Manjaro
Linux 5.1.8-1-MANJARO #1 SMP PREEMPT Sun Jun 9 20:44:14 UTC 2019 x86_64 GNU/Linux
i try to install obs-studio via pacman or yay after installation ,it didnt work .
i get an error like "gpu isnt supported" something like.
anyway,
I try to build old version of obs studio from source code but iget the following errors:

make[1]: *** [CMakeFiles/Makefile2:212: deps/libff/CMakeFiles/libff.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:378: libobs/CMakeFiles/libobs.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
can anyone help please?

Try this

sudo pacman-mirrors -f5 && sudo pacman -Syyu

sudo pacman -S obs-studio

It doesnt work

qt5ct: using qt5ct plugin
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: CPU Name: Intel(R) Pentium(R) 4 CPU 3.20GHz
info: CPU Speed: 3191.154MHz
info: Physical Cores: 1, Logical Cores: 2
info: Physical Memory: 3689MB Total, 2637MB Free
info: Kernel Version: Linux 5.1.8-1-MANJARO
info: Distribution: "Manjaro Linux" Unknown
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.5
info: Portable mode: false
qt5ct: D-Bus global menu: no
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
info: OBS 23.1.0-1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
	samples per sec: 44100
	speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
error: X Error: GLXBadFBConfig, Major opcode: 153, Minor opcode: 34, Serial: 29
error: Failed to create OpenGL context.
error: Failed to create context!
error: device_create (GL) failed
error: Failed to initialize video.  Your GPU may not be supported, or your graphics drivers may need to be updated.
qt5ct: custom style sheet is disabled
error:Failed to initialize video.your GPU may not be supported,or your graphics drivers may need to be updated.

Anyone can help?

~]$ obs
qt5ct: using qt5ct plugin
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: CPU Name: Intel(R) Pentium(R) 4 CPU 3.20GHz
info: CPU Speed: 3191.154MHz
info: Physical Cores: 1, Logical Cores: 2
info: Physical Memory: 3689MB Total, 1755MB Free
info: Kernel Version: Linux 5.1.8-1-MANJARO
info: Distribution: "Manjaro Linux" Unknown
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.5
info: Portable mode: false
qt5ct: D-Bus global menu: no
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
info: OBS 23.1.0-1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
	samples per sec: 44100
	speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
error: X Error: GLXBadFBConfig, Major opcode: 153, Minor opcode: 34, Serial: 29
error: Failed to create OpenGL context.
error: Failed to create context!
error: device_create (GL) failed
error: Failed to initialize video.  Your GPU may not be supported, or your graphics drivers may need to be updated.
qt5ct: custom style sheet is disabled
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 50925.4 ms
info:  ┣OBSApp::AppInit: 5.862 ms
info:  ┃ ┗OBSApp::InitLocale: 2.546 ms
info:  ┗OBSApp::OBSInit: 234.668 ms
info:    ┣obs_startup: 7.25 ms
info:    ┗OBSBasic::OBSInit: 73.124 ms
info:      ┣OBSBasic::InitBasicConfig: 0.219 ms
info:      ┣OBSBasic::ResetAudio: 0.577 ms
info:      ┗OBSBasic::ResetVideo: 72.216 ms
info: obs_hotkey_thread(25 ms): min=0.263 ms, median=0.299 ms, max=40.884 ms, 99th percentile=2.488 ms, 99.8992% below 25 ms
info: audio_thread(Audio): min=0 ms, median=0.034 ms, max=0.254 ms, 99th percentile=0.108 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.336 ms, median=25.376 ms, max=66.001 ms, 89.1129% within ±2% of 25 ms (0% lower, 10.8871% higher)
info: =================================================
info: Number of memory leaks: 176

Screenshot_2019-06-24_17-37-00

When I got this error it was due to window composition being disabled.

You can paste the following into the Terminal app to get the display manager info, and guess if it features composition or it isn't supported at all:

id=$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}'); xprop -id "${id}" -notype -f _NET_WM_NAME 8t | grep "_NET_WM_NAME = " | cut --delimiter=' ' --fields=3 | cut --delimiter='"' --fields=2

Result is:

Xfwm4

I would try enabling this first checkbox:

it was already enabled

What's the output of:

lspci | grep VGA; glxinfo | grep -i "vendor|rendering"

00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)

Reading the OBS source code, this message is thrown when the software cannot tell why the error happened. It's labeled as "unkown error" and translates into "I don't know".

X Error: GLXBadFBConfig

And reading this post, it looks like the limitation doesn't lie withing your system, but in OBS code itself. I would contact the developers.

Thank you so much ,I am waiting for your replay

You are welcome, what replay?

You said that you will contact the developers of OBS, and I will wait the result;

I meant you should contact them yourself, as they will be able to get and receive the info directly from you.

please look at their answers here

OBS forum

This most likely means they are unwilling to support your hardware, because it's quite old. It could even be that your GPU is no longer supported at the driver, kernel or window compositor level.

This is your GPU:

OpenGL ES GLSL ES 1.0.16

And this is my super old Radeon HD5870 from 2009 (10 years ago):

OpenGL ES GLSL ES 3.10

If I was in that situation I would try some of these:

  • Installing an old kernel.
  • Testing if OBS works from withing a live Manjaro KDE USB drive.

If none of those worked I would consider a different software instead. For screen recording you can use simplescreenrecorder, and if you need your webcam to be visible combine it with guvcview. You can keep the webcam window always visible by right clicking on it and selecting that option.

maybe this case same with https://ubuntuforums.org/showthread.php?t=1396959 ?
export LIBGL_DRIVERS_PATH=/usr/lib32/dri
something about OpenGL library path...

Actually I need it for live stream via facebook and youtube, My distribution is Manjaro xfce.

which kernel you advice to install.

Forum kindly sponsored by