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
2.9k stars 593 forks source link

arm version can not run on openwrt #313

Open zsinba opened 4 years ago

zsinba commented 4 years ago

Describe the bug A clear and concise description of what the bug is. I can't run it in the openwrt. it is a arm7 (ARMv7 Processor rev 5 (v7l) x 4) I got the response when run it: root@OpenWrt:~/webrtc-streamer-v0.2.6-Linux-armv7l-Release# ./webrtc-streamer -ash: ./webrtc-streamer: not foun

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

mpromonet commented 4 years ago

Hi,

The armv7 binary is compiled with https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%209.2.0/Raspberry%20Pi%202%2C%203/cross-gcc-9.2.0-pi_2-3.tar.gz toolchain. It produce an executable that can run on raspberry pi and nano pi, maybe others platform that are binary compatible.
You probably need to compile with the toolchain of your board.

Best Regards, Michel.

zsinba commented 4 years ago
root@OpenWrt:~/webrtcstreamer# ldd webrtc-streamer 
    /lib/ld-linux-armhf.so.3 (0xb6eba000)
    libdl.so.2 => /lib/ld-linux-armhf.so.3 (0xb6eba000)
    libm.so.6 => /lib/ld-linux-armhf.so.3 (0xb6eba000)
    libpthread.so.0 => /lib/ld-linux-armhf.so.3 (0xb6eba000)
    libc.so.6 => /lib/ld-linux-armhf.so.3 (0xb6eba000)
Error loading shared library ld-linux-armhf.so.3: No such file or directory (needed by webrtc-streamer)
Error relocating webrtc-streamer: __memcpy_chk: symbol not found
Error relocating webrtc-streamer: __longjmp_chk: symbol not found
Error relocating webrtc-streamer: __isinf: symbol not found
Error relocating webrtc-streamer: __vsnprintf_chk: symbol not found
Error relocating webrtc-streamer: __fprintf_chk: symbol not found
Error relocating webrtc-streamer: __strftime_l: symbol not found
Error relocating webrtc-streamer: __fdelt_chk: symbol not found
Error relocating webrtc-streamer: __isnan: symbol not found
Error relocating webrtc-streamer: fcntl64: symbol not found
Error relocating webrtc-streamer: __sprintf_chk: symbol not found
root@OpenWrt:~/webrtcstreamer# ./webrtc-streamer 
-ash: ./webrtc-streamer: not fo
zsinba commented 4 years ago

coud you please support openwrt verson?

mpromonet commented 4 years ago

The loader seems different from the raspberry one or the libc is not the same.

Did you tried to build with the toolchain corresponding to your plateform ?

zsinba commented 4 years ago

I still don't know how to compile. I am still looking at how to compile into openwrt. I'm still looking for information, can you help?

mpromonet commented 4 years ago

Hi,

I guess you have 2 options either build an executable using openwrt build mechanism or build an executable in another way that is compatible with the openwrt runtime. You may find information about openwrt https://openwrt.org/docs/guide-developer/packages

Best Regards, Michel.

zsinba commented 4 years ago

谢谢,我试一下。

zsinba commented 4 years ago

然而并没有成功。 希望作者能出Openwrt版本的。