We have been using OBS Studio on Manjaro for four years to stream our church service.
We bought two PTZ Optics Move SE cameras and when I tried to build the AUR package obs-ptz-controls I get this:
CMake Warning at CMakeLists.txt:107 (find_package):
Found package configuration file:
/usr/lib/cmake/SDL2/SDL2Config.cmake
but it set SDL2_FOUND to FALSE so package "SDL2" is considered to be NOT
FOUND.
AND:
ptz_load_controls()’:
/var/tmp/pamac-build-jrs/obs-ptz-controls/src/obs-ptz/src/ptz-controls.cpp:33:30: error: ‘void* obs_frontend_add_dock(void*)’ is deprecated [-Werror=deprecated-declarations]
33 | obs_frontend_add_dock(tmp);
And:
/usr/include/obs/obs-frontend-api.h:142:14: note: declared here
142 | EXPORT void *obs_frontend_add_dock(void *dock);
| ^~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
I created a post on the Manjaro forum and this was one of the answers:
Well, by using -Werror the developer has basically promised to support new warnings in every C/C++ compiler that might ever be used, forever. So ask them to fix their build :stuck_out_tongue:
If you’re desperate you can build it manually by turning off -Werror. The sed command below just comments that out on line 177 of the specified file;
git clone https://aur.archlinux.org/obs-ptz-controls.git
cd obs-ptz-controls
makepkg -o
sed -i '177 s/./#&/' src/obs-ptz/cmake/ObsPluginHelpers.cmake
makepkg -e
MrLavender
I tried Mr Lavender's solution and it finished installing and all of the PTZ controls work and so do the Presets.
It would be swell if I did not need to do this after each update.
thanr
We bought two PTZ Optics Move SE cameras and when I tried to build the AUR package obs-ptz-controls I get this:
CMake Warning at CMakeLists.txt:107 (find_package):
Found package configuration file:
/usr/lib/cmake/SDL2/SDL2Config.cmake
but it set SDL2_FOUND to FALSE so package "SDL2" is considered to be NOT
FOUND.
AND:
ptz_load_controls()’:
/var/tmp/pamac-build-jrs/obs-ptz-controls/src/obs-ptz/src/ptz-controls.cpp:33:30: error: ‘void* obs_frontend_add_dock(void*)’ is deprecated [-Werror=deprecated-declarations]
33 | obs_frontend_add_dock(tmp);
And:
/usr/include/obs/obs-frontend-api.h:142:14: note: declared here
142 | EXPORT void *obs_frontend_add_dock(void *dock);
| ^~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
I created a post on the Manjaro forum and this was one of the answers:
Well, by using -Werror the developer has basically promised to support new warnings in every C/C++ compiler that might ever be used, forever. So ask them to fix their build :stuck_out_tongue:
If you’re desperate you can build it manually by turning off -Werror. The sed command below just comments that out on line 177 of the specified file;
git clone https://aur.archlinux.org/obs-ptz-controls.git
cd obs-ptz-controls
makepkg -o
sed -i '177 s/./#&/' src/obs-ptz/cmake/ObsPluginHelpers.cmake
makepkg -e
MrLavender
I tried Mr Lavender's solution and it finished installing and all of the PTZ controls work and so do the Presets.
It would be swell if I did not need to do this after each update.
thanr