Git Product home page Git Product logo

video_sdk's Introduction

#中移物联网有限公司 OneNET C语言SDK, /video_sdk

目录

  • 编译SDK
  • 常见问题 Q&A

编译SDK

通过CMAKE编译SDK

  1. linux下编译参考tools下的命令

本项目引用了mbedtls

https://github.com/ARMmbed/mbedtls

自定义工程中编译SDK

  1. 将SDK源码包含到自定义工程中
  2. 设置SDK所需的头文件的路径:
    • sdk/include
  3. 修改include/ont/config.h 中的配置,以符合自定义工程的需求
  4. 编译SDK

常见问题 Q&A

  1. VIDEO smaple 支持的文件格式是? SAMPLE 支持MP4格式的远程回放,MP4示例文件的下载地址 http://pan.baidu.com/s/1kVLkxYf

  2. ARM Linux 交叉编译 参考tools/videosamplebuild-arm.sh SET(TOOLCHAIN_DIR "/usr/bin/arm-2009q3/arm-2009q3/") 设置正确的交叉编译工具链目录; 如果需要链接SSL库,需要使用交叉编译工具编译对应的SSL版本,本工程使用openssl-1.0.1g,并复制到工具链对应的lib目录。

video_sdk's People

Contributors

cm-heclouds avatar jason-cq avatar leonleonlei avatar zywlw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

video_sdk's Issues

sdk在树莓派编译时出错,找不到 -lssl lcrypto

树莓派是官方的debain系统 ,运行tool目录下 videosamplebuild.sh 进行编译时报错。

[ 97%] Linking CXX executable ../../bin/sample_video_s /usr/bin/ld: 找不到 -lssl /usr/bin/ld: 找不到 -lcrypto ../../lib/linux/libmbedcrypto.a: 无法添加符号: 不可识别的文件格式 collect2: error: ld returned 1 exit status sample/CMakeFiles/sample_video_s.dir/build.make:321: recipe for target '../bin/sample_video_s' failed make[2]: *** [../bin/sample_video_s] Error 1 CMakeFiles/Makefile2:225: recipe for target 'sample/CMakeFiles/sample_video_s.dir/all' failed make[1]: *** [sample/CMakeFiles/sample_video_s.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

官方的视频sdk在树莓派下根本不能编译成功

官方sdk在正常的Ubuntu64位系统下可以直接编译成功,但是在树莓派上完全不可以,太多坑了
1.这个问题上一个提问的lssues已经提到了,提示/uer/bin/ld:找不到-lssl和-lcrypto,这个问题可以通过sudo
apt-get install libssl-dev来解决.
2.第二个问题是libmbedcrypeo.a:无法添加符号:不可识别的文件格式,这个也需要自己编译mbedtls,但是具体怎么编译,编译了之后文件放哪,也没讲清楚.
3.更惨的是上面两个问题解决之后,openssl库一直出问题
_20181104210932
一直报这个对openssl函数库里的未定义的引用,希望官方能够尽快修复漏洞,并且更新更加适合新手的参考文档,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.