gxhh 发表于 2011-11-24 20:52:58

[求助]Qt helloword运行报错

本帖最后由 gxhh 于 2011-11-25 16:39 编辑

file helloword
helloword: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped

# ./helloword -qws &
# error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory

输入环境变量设置后运行结果无变化
export PATH='/opt/Qtopia4.4.3/bin:/sbin:/usr/sbin:/bin:/usr/bin'
export QPEDIR='/opt/Qtopia4.4.3'
export QTDIR='/opt/Qtopia4.4.3'
export QT_QWS_FONTDIR='/opt/Qtopia4.4.3/lib/fonts/'
export QWS_DISPLAY='LinuxFb:mmWidth76:mmHeight44:1'
export QWS_MOUSE_PROTO='Tslib:/dev/input/event1'
export TSLIB_CALIBFILE='/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/Qtopia4.4.3/plugins:/opt/Qtopia4.4.3/qt_plugins/'

飞凌-develop 发表于 2011-11-25 09:15:16

您编写的helloword应用程序是用的4.7的库还是4.3的库,您的环境变量设置的是4.3库的环境变量

gxhh 发表于 2011-11-25 16:18:54

本帖最后由 gxhh 于 2011-11-25 16:59 编辑

您编写的helloword应用程序是用的4.7的库还是4.3的库,您的环境变量设置的是4.3库的环境变量
飞凌-develop 发表于 2011-11-25 09:15 http://bbs.witech.com.cn/images/common/back.gif
   Generated by qmake (2.01a) (Qt 4.4.3)

ark90052 发表于 2011-11-29 10:16:17

飞凌-develop 发表于 2011-11-30 09:05:08

以后建议大家直接用4.7的库来开发应用程序,因为现在大都应用程序均使用这个版本,我们的移植手册将更新

zhangqilin 发表于 2011-12-30 17:29:48

zhangqilin 发表于 2011-12-30 17:50:49

飞凌-develop 发表于 2011-12-31 09:32:27

新手册未上传,肯定的是新手册将重点讲解QT4.7版本,测试程序不再用Qtopia4.4.3
页: [1]
查看完整版本: [求助]Qt helloword运行报错