错误./hello: error while loading shared libraries: libQtGui.so.4: cannot open shared object file:
之前一直想在ARM 上跑qt,但都出現(xiàn)錯(cuò)誤:
 
./hello: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
這主要是ARM 上的運(yùn)行環(huán)境設(shè)置不當(dāng):
我用的是飛凌的6410 環(huán)境變量設(shè)置如下:
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/'
 export LD_LIBRARY_PATH='/opt/Qtopia4.4.3/lib'//之前忘了加這條
總結(jié)
以上是生活随笔為你收集整理的错误./hello: error while loading shared libraries: libQtGui.so.4: cannot open shared object file:的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
                            
                        - 上一篇: 矿卡“从良”了!蓝宝石发了个诡异的AMD
 - 下一篇: PS5独占结束!《漫威蜘蛛侠》将登陆PC