jcmcharro
New Member
Hi you all...
I've tried to build OBS with this script https://github.com/xbelanch/OBS4Pi in a PI 4B with a fresh new burned and updated Rapberry OS, but I'm getting this error:
Don't know how to solve it... any suggestions?
Thanks in advance.
I've tried to build OBS with this script https://github.com/xbelanch/OBS4Pi in a PI 4B with a fresh new burned and updated Rapberry OS, but I'm getting this error:
Code:
[ 43%] Building CXX object plugins/obs-vst/CMakeFiles/obs-vst.dir/linux/VSTPlugin-linux.cpp.o
[ 44%] Building CXX object plugins/obs-vst/CMakeFiles/obs-vst.dir/linux/EditorWidget-linux.cpp.o
[ 44%] Linking CXX shared module obs-vst.so
[ 44%] Built target obs-vst
[ 45%] Built target image-source
[ 46%] Built target obs-x264-util
Scanning dependencies of target obs-x264
[ 46%] Building C object plugins/obs-x264/CMakeFiles/obs-x264.dir/obs-x264.c.o
[ 47%] Building C object plugins/obs-x264/CMakeFiles/obs-x264.dir/obs-x264-plugin-main.c.o
[ 47%] Linking C shared module obs-x264.so
[ 47%] Built target obs-x264
Scanning dependencies of target obs-x264-test
[ 47%] Building C object plugins/obs-x264/CMakeFiles/obs-x264-test.dir/obs-x264-test.c.o
[ 47%] Linking C executable obs-x264-test
[ 47%] Built target obs-x264-test
[ 48%] Built target obs-libfdk
[ 48%] Building C object plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/obs-ffmpeg-output.c.o
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c: In function ‘new_stream’:
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:82:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
*codec = (!!name && *name) ? avcodec_find_encoder_by_name(name)
^
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c: In function ‘init_streams’:
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:374:27: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
AVOutputFormat *format = data->output->oformat;
^~~~
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c: In function ‘open_output_file’:
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:395:27: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
AVOutputFormat *format = data->output->oformat;
^~~~
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c: In function ‘get_codec_id’:
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:539:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
codec = avcodec_find_encoder_by_name(name);
^
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c: In function ‘set_encoder_ids’:
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:548:37: error: assignment of member ‘video_codec’ in read-only object
data->output->oformat->video_codec = get_codec_id(
^
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:551:37: error: assignment of member ‘audio_codec’ in read-only object
data->output->oformat->audio_codec = get_codec_id(
^
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c: In function ‘ffmpeg_data_init’:
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:573:34: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
AVOutputFormat *output_format = av_guess_format(
^~~~~~~~~~~~~~~
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:600:38: error: assignment of member ‘video_codec’ in read-only object
data->output->oformat->video_codec = AV_CODEC_ID_H264;
^
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:601:38: error: assignment of member ‘audio_codec’ in read-only object
data->output->oformat->audio_codec = AV_CODEC_ID_AAC;
^
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c: In function ‘receive_video’:
/tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:728:2: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
av_init_packet(&packet);
^~~~~~~~~~~~~~
In file included from /usr/local/include/libavcodec/bsf.h:30,
from /usr/local/include/libavcodec/avcodec.h:44,
from /usr/local/include/libavformat/avformat.h:312,
from /tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.h:5,
from /tmp/tmp.7gpU6AfJaQ/FFmpeg/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-output.c:25:
/usr/local/include/libavcodec/packet.h:474:6: note: declared here
void av_init_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
make[2]: *** [plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/build.make:102: plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/obs-ffmpeg-output.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1628: plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
All done..........!
Remember you need MESA_GL_VERSION_OVERRIDE=3.3 obs to start OBS!
If you get an opengl seg fault try to fix it with
export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libGL.so
before launch OBS
Read the README.md for more information
build.sh: 1: build.sh: cleanup: not found
Don't know how to solve it... any suggestions?
Thanks in advance.