Bug Report libobs-frontend-api.so cannot be found

roadapathy

New Member
When I build the versions 17 and 18, I get this error:

obs: error while loading shared libraries: libobs-frontend-api.so.0: cannot open shared object file: No such file or directory

I have tried various switches:
cmake .. -DCMAKE_CXX_FLAGS="-O3 -march=bdver2" -DCMAKE_C_FLAGS="-O3 -march=bdver2" -DCMAKE_C_FLAGS="-O3 -march=bdver2" ..

cmake .. -DUNIX_STRUCTURE=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=bdver2" -DCMAKE_C_FLAGS="-O3 -march=bdver2" -DCMAKE_C_FLAGS="-O3 -march=bdver2" ..

cmake .. -DUNIX_STRUCTURE=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=bdver2" -DCMAKE_C_FLAGS="-O3 -march=bdver2" -DCMAKE_C_FLAGS="-O3 -march=bdver2" ..

Nothing works.... it simply has no idea where its libobs-frontend-api is located.
 

Fenrir

Forum Admin
What distro? Can you provide the full console log output? And have you follow the install directions for your distro here?
 

somedude

New Member
This still exists when building on debian jessie in version 19 following the instructions on the github but there is an easy fix (see end)

Distro is Debian
I followed the instructions on there
Logs

$ obs
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/Default.qss
Attempted path: /usr/share/obs/obs-studio/themes/Default.qss
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: Processor: 4 logical cores
info: Processor: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
info: Physical Memory: 16039MB Total
info: Kernel Version: Linux 3.16.0-4-amd64
info: Distribution: "Debian GNU/Linux" "8"
info: Portable mode: false
info: OBS 19.0.3-53-g353a4bc (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 44100
speakers: 2
error: os_dlopen(libobs-opengl.so.0->libobs-opengl.so.0): libobs-opengl.so.0: cannot open shared object file: No such file or directory

error: Failed to initialize video: Graphics module not found
info: Freeing OBS context data
QPaintDevice::metrics: Device has no metric information
info: == Profiler Results =============================
info: run_program_init: 1256.99 ms
info: ┣OBSApp::AppInit: 1.29 ms
info: ┃ ┗OBSApp::InitLocale: 0.76 ms
info: ┗OBSApp::OBSInit: 45.704 ms
info: ┣obs_startup: 1.842 ms
info: ┗OBSBasic::OBSInit: 0.495 ms
info: ┣OBSBasic::InitBasicConfig: 0.139 ms
info: ┣OBSBasic::ResetAudio: 0.121 ms
info: ┗OBSBasic::ResetVideo: 0.17 ms
info: obs_hotkey_thread(25 ms): min=0.147 ms, median=0.381 ms, max=4.482 ms, 99th percentile=4.482 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.005 ms, median=0.009 ms, max=0.02 ms, 99th percentile=0.02 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.21 ms, median=25.461 ms, max=25.623 ms, 70.7317% within ±2% of 25 ms (0% lower, 29.2683% higher)
info: =================================================
info: Number of memory leaks: 220


Workaround
sudo ln -s /usr/lib/libobs-opengl.so.0.0 /usr/lib/libobs-opengl.so.0
 
Top