当前位置:网站首页>Rtsp/onvif protocol easynvr video platform arm version cross compilation process and common error handling

Rtsp/onvif protocol easynvr video platform arm version cross compilation process and common error handling

2022-06-11 17:50:00 Tsingsee green rhino video

TSINGSEE The development of Qingxi video Easy Series video platform , External provision Windows And Linux edition , If the user needs , We can also compile , Provide ARM edition . Today, let's share EasyNVR Of ARM The compilation process of version migration installation .

Get ready :Linux Install and configure the cross compiler arm-linux-gnueabi-gcc.

One 、 download

download gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux.tar.xz edition ( Address :https://releases.linaro.org/archive/14.07/components/toolchain/binaries/)

Two 、 decompression

tar -xvf gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux.tar.xz

3、 ... and 、 Set the environment variable

vim /etc/profile Add... At the end :

export PATH=$PATH:/root/Downloads/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin

Make variables effective :source /etc/profile

Four 、 Verify that the installation was successful

perform :arm-linux-gnueabihf-gcc -v

If the version information can be printed correctly , Indicates successful installation .

5、 ... and 、 Possible errors

1) If something goes wrong :/lib/ld-linux.so.2: bad ELF interpreter: Indicates that there is no file or directory

Executable :yum install -y glibc.i686

2) If something goes wrong :libstdc++.so.6: cannot open shared object file: No such file or directory

Executable :yum install -y libstdc++.i686

Execute the compile command after installation :

CC=arm-linux-gnueabihf-gcc GOOS=linux GOARCH=arm GO111MODULE=on go build -ldflags "-w -s" -o easynvr

EasyNVR Video edge computing gateway includes hardware equipment and software platform .EasyNVR Support distribution RTSP、RTMP、HTTP-FLV、WS-FLV、HLS、WebRTC Video streams of the same format , meanwhile , We also offer a variety of API Interface , Facilitate developers' secondary development and integration . In scene application ,EasyNVR It has also been used in a large number of practical projects , Such as smart construction site 、 Intelligent Security 、 Smart factory, etc .

原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203011900317209.html