kclyu / rpi-webrtc-streamer

This repo's objective is providing something like Web Cam server on the most popular Raspberry PI hardware. By integrating [WebRTC](https://webrtc.org/native-code/) and Raspberry PI, we can stream the Raspberry camera feed to browser or native client which talks WebRTC.
Other
629 stars 108 forks source link

cross compiling for Pi fails #60

Closed dmathew1 closed 5 years ago

dmathew1 commented 5 years ago
root@ubuntu:~/Workspace/rpi-webrtc-streamer/src# make
peerconnection ninja does not exist: /root/Workspace/webrtc/src/arm_build/obj/examples/peerconnection_client.ninja
peerconnection ninja does not exist: /root/Workspace/webrtc/src/arm_build/obj/examples/peerconnection_client.ninja
peerconnection ninja does not exist: /root/Workspace/webrtc/src/arm_build/obj/examples/peerconnection_client.ninja
peerconnection ninja does not exist: /root/Workspace/webrtc/src/arm_build/obj/examples/peerconnection_client.ninja
arm-linux-gnueabihf-g++ --sysroot=/opt/rpi_rootfs    -I. -DINSTALL_DIR=\"/opt/rws\"  -DINSTALL_DIR=\"/opt/rws\" -Wall -fvisibility=hidden -pthread  -D__RWS_VERSION__=\"v0.73-37-ge6d2c412ccd99d08337c132a13688a0c\" -D__WEBRTC_VERSION__="\"4d22a6d8dbb1db1f459338c14f8c6d81,Cr-Commit-Position:refs/heads/master@{#22516}\"" -Wno-multichar -Wno-unused-but-set-variable -fPIC -O3 -DDEBUG -DEGL_SERVER_DISPMANX -DHAVE_CMAKE_CONFIG -DHAVE_VMCS_CONFIG -DOMX_SKIP64BIT -DTV_SUPPORTED_MODE_NO_DEPRECATED -DUSE_VCHIQ_ARM -DVCHI_BULK_ALIGN=1 -DVCHI_BULK_GRANULARITY=1 -D_FILE_OFFSET_BITS=64 -D_HAVE_SBRK -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_REENTRANT -D__VIDEOCORE4__ -D__WEBRTC_DEFAULT__ -I/root/Workspace/rpi-webrtc-streamer/lib/libwebsockets/arm_build  -I/root/Workspace/webrtc/src    -I/opt/rpi_rootfs/opt/vc/include/interface/vcos/pthreads -I/opt/rpi_rootfs/opt/vc/include/interface/vmcs_host/linux -I/opt/rpi_rootfs/opt/vc/include/interface/vmcs_host -I/opt/rpi_rootfs/opt/vc/include/interface/vmcs_host/khronos -I/opt/rpi_rootfs/opt/vc/include/interface/khronos/include -I/opt/rpi_rootfs/opt/vc/include/interface/vchiq_arm -I/opt/rpi_rootfs/opt/vc/include -I/opt/rpi_rootfs/opt/vc/include/interface/mmal  -I/root/Workspace/webrtc/src/third_party/abseil-cpp/  -c websocket_server.cc -o websocket_server.o
In file included from /root/Workspace/webrtc/src/rtc_base/messagequeue.h:25:0,
                 from /root/Workspace/webrtc/src/rtc_base/thread.h:25,
                 from /root/Workspace/webrtc/src/rtc_base/networkmonitor.h:17,
                 from /root/Workspace/webrtc/src/rtc_base/network.h:24,
                 from websocket_server.cc:34:
/root/Workspace/webrtc/src/rtc_base/criticalsection.h:88:3: error: #error Unsupported platform.
 # error Unsupported platform.
   ^~~~~
/root/Workspace/webrtc/src/rtc_base/criticalsection.h:119:3: error: #error Unsupported platform.
 # error Unsupported platform.
   ^~~~~
In file included from websocket_server.cc:37:0:
utils.h:18:10: fatal error: absl/types/optional.h: No such file or directory
 #include "absl/types/optional.h"
kclyu commented 5 years ago

First of all, please follow the procedures in building document. The error message appears because the webrtc build is not done first, and you should use the Cr-Commit-Position specified in the RWS commit log for the WebRTC native package.

Note that the current master is compiled in the WebRTC native code package below.

Cr-Commit-Position: refs/heads/master@{#25867}
WebRTC commit position: b3033c448ffd0d4266dfec636bfc5471baf1e848