如何进行交叉编译以避免“magic 7F45"错误 [英] How to do a cross compilation to avoid "magic 7F45" error

查看:32
本文介绍了如何进行交叉编译以避免“magic 7F45"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Android 屏幕截图库.为了启动本机服务,我必须通过 Windows PowerShell 执行 run.ps1 文件,如下所示:https://code.google.com/p/android-screenshot-library/wiki/UserGuide我收到了..asl-native : not executable : magic 7F45"错误,我读到我必须进行交叉编译才能使其工作;但我不知道该怎么做?我应该使用什么编译器?

I want to use the Android Screenshot Library. In order to start the native service, i have to execute the run.ps1 file via Windows PowerShell, as it's written here: https://code.google.com/p/android-screenshot-library/wiki/UserGuide I got the "..asl-native : not executable : magic 7F45" error, and i read that i have to make a cross-compilation to make it work; but i have no clue how to do that? what compilers should I use?

推荐答案

魔数 7F45 指定了可执行和可链接格式 (ELF) 文件类型,这是一种在 ARM 处理器上无法执行的格式.

Magic number 7F45 specifies the Executable and Linkable Format (ELF) file type, a format that is not executable on ARM processors.

原因可能是不正确的交叉编译或使用了错误的工具链.

Reason could be either improper cross compilation or either using wrong toolchain.

使用正确的工具链应该可以解决这个问题

Using correct toolchain should fix this problem

这篇关于如何进行交叉编译以避免“magic 7F45"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆