我用的是FL2440的板子,具体操作步骤如下:
1.用Qt Creator建了个Helloworld的工程并编译通过
2.用编译好的qt4.7.1 qmake生成Makefile并修改相关内容然后make 形成了可执行文件 用file命令验证了是arm版的(不过上面写的是for GNU/Linux 2.6.14 我板子的内核是2.6.28)
3.把可执行程序拷到板子里的/tmp目录下,然后设置了环境变量
#export PATH='/opt/qt-4.7.1/bin:/sbin:/usr/sbin:/bin:/usr/bin'
#export QPEDIR='/opt/qt-4.7.1'
#export QTDIR='/opt/qt-4.7.1'
#export QT_QWS_FONTDIR='/opt/qt-4.7.1/lib/fonts/'
#export QWS_DISPLAY='LinuxFb:mmWidth76:mmHeight44:1'
#export QWS_MOUSE_PROTO='Tslib:/dev/input/event1'
#export TSLIB_CALIBFIFE='/etc/pointercal'
#export TSLIB_CONFFILE='/usr/local/tslib/etc/ts.conf'
#export TSLIB_CONSOLEDEVICE='none'
#export TSLIB_FBDEVICE='/dev/fb0'
#export TSLIB_PLUGINDIR='usr/local/tslib/lib/ts'
#export TSLIB_ROOT='/usr/local/tslib'
#export TSLIB_TSDEVICE='/dev/input/event1'
#export TSLIB_TSEVENTTYPE='H3600'
#export QT_PLUGIN_PATH='/opt/qt-4.7.1/plugins'
(我是把PC上的系统文件用NFS挂载到了/mnt下 我也尝试了在变量里的每个路径前加/mnt)
4.进到/tmp目录 执行 ./Helloworld -qws 却显示 -sh ./Helloworld : not found
请问我可能是哪出错了呢?先谢谢了!