mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
3.03k stars 608 forks source link

Unable to build Ubuntu 18.04 #180

Closed journeym closed 5 years ago

journeym commented 5 years ago

Followed the instruction form Readme.md When i try to cmake . -DWEBRTCBUILD=Release -DWEBRTCROOT=/home/webrtc I get

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: WEBRTC_LIBRARY linked by target "webrtc-streamer" in directory /home/rtsp/webrtc-streamer WEBRTC_PEERCONNECTION_LIBRARY linked by target "webrtc-streamer" in directory /home/rtsp/webrtc-streamer WEBRTC_VIDEO_DECODER_LIBRARY linked by target "webrtc-streamer" in directory /home/rtsp/webrtc-streamer WEBRTC_VIDEO_ENCODER_LIBRARY linked by target "webrtc-streamer" in directory /home/rtsp/webrtc-streamer

-- Configuring incomplete, errors occurred! See also "/home/rtsp/webrtc-streamer/CMakeFiles/CMakeOutput.log". See also "/home/rtsp/webrtc-streamer/CMakeFiles/CMakeError.log".

Im not very experienced with unix building, can you please point me in the right direction.

I also tried to follow the build procedures form CircleCI, and stuck at make all tgz i get

BasicUsageEnvironment.hh : No such file or directory

mpromonet commented 5 years ago

Hi,

WEBRTC_LIBRARY linked by target "webrtc-streamer" in directory /home/rtsp/webrtc-streamer

means the library webrtc is not found in ${WEBRTCROOT}/src/out/${WEBRTCBUILD}/obj Maybe you ran cmake, interrupt it during webrtc build and run another time cmake.

In such a case, you should remove ${WEBRTCROOT}/src/out/${WEBRTCBUILD} and run cmake

Best Regards, Michel.

journeym commented 5 years ago

I did try to remove the referenced directories and start from scratch, with the same results. Here is the contents of the directory you mentioned. Whats is a missing file name and location? image

mpromonet commented 5 years ago

Hi, Cmake is looking for libwebrtc.a that seems to exists. Maybe an acces problem, permissions ? Did you look into cmakeoutpout log and errors ? Best regards Michel