obs-browser
obs-browser copied to clipboard
obs-browser FTBFS on Linux due to obs-browser-page target name existing as a directory
Platform
- Ubuntu 20.04
- OBS Studio version: 26.0.0-rc1
Expected Behavior
When -DBUILD_BROWSER=TRUE is enabled and a supported CEF is available, obs-browser.so should successfully build from source.
Current Behavior
Enabling -DBUILD_BROWSER=TRUE with a supported CEF available fails to build with the following error:
/usr/bin/ld: cannot open output file obs-browser-page: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [plugins/obs-browser/CMakeFiles/obs-browser-page.dir/build.make:131: plugins/obs-browser/obs-browser-page] Error 1
make[1]: *** [CMakeFiles/Makefile2:1575: plugins/obs-browser/CMakeFiles/obs-browser-page.dir/all] Error 2
Steps to Reproduce
cmake obs/src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUNIX_STRUCTURE=TRUE -DBUILD_BROWSER=TRUE -DCEF_ROOT_DIR=stage/CEF
Additional information
I've only recently encountered the issue, following an upgrade of my build environment to Ubuntu 20.04 from 18.04. I think the significant change is moving from cmake 3.10 to cmake 3.16. Never the less, cmake is being instructed to build the target binary using the same name as a directory that already exists.
- https://github.com/obsproject/obs-studio/issues/2490