我忘记说了,在天嵌提供的开发板及其提供的镜像,我把我用qt5.4交叉编译出来的程序,直接用minicom传输过去,是可用运行起来的。
后来我用freescale提供的ltib和yocto的镜像,如上文中提到的方法却怎么都不能识别。
在yocto(linux3.14)的镜像里,在usr/bin/qt5里也带了一些qt的应用程序,也可以运行起来。环境变量并没有出现上文中提到的,我也尝试设了,也不起作用。
因我是做应用的,并没有yocto的编译环境,实在不行的话,只能自己尝试搭建一个yoctor的编译环境了。
我刚学qt,想问下各位大侠,你们平时怎么开发嵌入式的qt应用?是在ubuntu下用qt creator开发,然后交叉编译?还是直接在yocto或者ltib下编译?
如楼上所说,file命令查看,好像有点线索
不能被识别的查看结果是:
helloqt: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 2.6.31, not stripped
file qml_arm_test
qml_arm_test: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 2.6.31, not stripped
而可以识别的查看结果是:
file qmleasing
qmleasing: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=e0fd5e0a0c93fc28c4002648c0a9074aa365af88, stripped
貌似interpreter/lib不同,但不太懂怎么解决,哪位高人可否给予指点?