jkuri / ffmpeg-webcam-rtmp-stream

Webcam capture streaming via RTMP or saving into video file. Cross-platform with static builds.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error

feivur opened this issue · comments

root@orangepizero2:~/webcam-rtmp-stream# make
cc -Iinclude -o build/stream WebcamRtmpStream/WebcamRtmpStream.c -lavdevice -lavutil -lavcodec -lavformat -lswscale -lavfilter
WebcamRtmpStream/WebcamRtmpStream.c:375:5: error: conflicting types for ‘stream’
375 | int stream(stream_ctx_t* stream_ctx)
| ^~~~~~
In file included from WebcamRtmpStream/WebcamRtmpStream.c:4:
WebcamRtmpStream/WebcamRtmpStream.h:49:6: note: previous declaration of ‘stream’ was here
49 | void stream(stream_ctx_t* stream_ctx);
| ^~~~~~
make: *** [Makefile:6: stream] Error 1