c++ - 为 Raspberry pi 2 预编译 amazon-kinesis-video-streams-producer-sdk-cpp

标签 c++ amazon-web-services compilation raspberry-pi

我有一个带有 Amazon Kinesis Stream SDK (https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp) 的 Raspberry pi 2,它在板上正确运行。

库的编译在树莓派2上太长了,大约3H。

那么问题来了,有没有办法在更强大的服务器上预编译这个库,然后将文件复制到Raspberry上?

如果可能的话,我还想在 Raspberry Pi Zero W(尺寸更小)上尝试这个库。

安装说明在这里https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/install-instructions-linux.md

谢谢!

最佳答案

您可以考虑交叉编译您的库 - 例如在 Linux PC 上。交叉编译很常见。想想针对手机的应用程序开发。您不会在手机上编译代码。您在 Mac 或 PC 上交叉编译,然后将可执行文件推送到手机。 您可以对 Raspberry Pi 执行相同的操作。这里有几个链接:

https://medium.com/@au42/the-useful-raspberrypi-cross-compile-guide-ea56054de187 https://hackaday.com/2016/02/03/code-craft-cross-compiling-for-the-raspberry-pi/ https://visualgdb.com/tutorials/raspberry/crosscompiler/

关于c++ - 为 Raspberry pi 2 预编译 amazon-kinesis-video-streams-producer-sdk-cpp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53082147/

相关文章:

c++ - 如何将 UE4 FString 转换为字符串?

c++ - 遍历二叉树时如何跟踪层?

java - 如何使用 java API 为 S3 中的对象指定 ACL?

compilation - 使用 MIT-SCHEME 编译 .scm 文件

tomcat - Excelsior jet 编译的 apache tomcat 服务器是否可作为开源项目的一部分重新分发?

c++ - Objective C 类方法 == C++ 构造函数?

c++ - 奇怪的重复模板?

amazon-web-services - 有没有办法让 CloudFormation 在更新时不替换现有资源?

amazon-web-services - 如何保护联系表免受 AWS Lambda 和 API 网关处理的垃圾邮件

python - 未找到符号,应在 : flat namespace 中