在编译完quecOpen的example helloworld以后,我运行此程序,结果报错,详情以下:ubuntu
ricks@ubuntu:~/share/project/ql-ol-sdk/ql-ol-extsdk/example/hello_world$ ./helloworld bash: ./helloworld: cannot execute binary file: Exec format error
很明显,文件格式错误。由于这个例子是用 arm-gcc交叉编译工具编译的,因此不能在ubuntu环境下的bash下运行。bash
因此,我把helloworld例程push到EC20模块,以下所示:工具
ricks@ubuntu:~/share/project/ql-ol-sdk/ql-ol-extsdk/example/hello_world$ adb push helloworld /usrdata 89 KB/s (6068 bytes in 0.066s)
在QuecOpen系统中运行成功,以下所示:spa
/usrdata # ./helloworld <Hello OpenLinux !> atoi("19.7")=19