zlgopen / awtk-linux-fb

awtk port for linux framebuffer
110 stars 49 forks source link

移植awtk到安凯ak3760e板子上出现语法错误 #94

Closed 1234code closed 2 years ago

1234code commented 2 years ago

微信截图_20220714112036 微信截图_20220714112149 微信截图_20220714112326

1234code commented 2 years ago

图1是在开发板上运行的报错 图2是编译工具链 图3是本地修改的config 请问是什么原因导致的报错?

xianjimli commented 2 years ago

是不是PC版本的demoui拷到板子上了。用file看看demoui是什么文件格式。

file demoui
1234code commented 2 years ago

微信截图_20220714112950

1234code commented 2 years ago

demoui: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=e5315a2585bf3d0f23f48a2a1b0bea2f6b84744c, not stripped file demoui后的信息

xianjimli commented 2 years ago

对吧。你这个是x86的指令,板子是arm的芯片。

1234code commented 2 years ago

不好意思,请问怎么修改呢?

xianjimli commented 2 years ago

TOOLS_PREFIX的值,貌似后面多了gcc-

1234code commented 2 years ago

image 您好,我们将gcc-去掉之后重新编译出来的demoui还是x86的。