当前位置: 代码迷 >> QT开发 >> 关于gif图片不能在arm上显示的有关问题请问
  详细解决方案

关于gif图片不能在arm上显示的有关问题请问

热度:30   发布时间:2016-04-25 04:19:36.0
关于gif图片不能在arm下显示的问题请教
我现在在gui上做了一个等待画面,用的gif图片,在ubantu linux下是可以正常显示的,但是下载到板子上就显示不了了,

我也上网搜了一下,可能要把支持gif的插件下到板子里,可是还是不行。

我怀疑是qt交叉编译的时候没有加上gif支持选项,但我发现我下载的qt源程序的./configure 选项里面没有-qt-gif,只有-no-gif

有人遇到过这个问题么

我用的qt源代码版本:qt-everywhere-opensource-src-4.8.1
------最佳解决方案--------------------
把plugin的所有库拷到板子上去
------其他解决方案--------------------
没有的话,说明应该是默认支持的

但是,怎么又不会显示了呢?

建议你安装一个官方的编译版,然后运行你的带gif的简单例子试试看
------其他解决方案--------------------
Third Party Libraries:

    -qt-zlib ........... Use the zlib bundled with Qt.
 +  -system-zlib ....... Use zlib from the operating system.
                         See http://www.gzip.org/zlib

    -no-gif ............ Do not compile GIF reading support.

    -no-libtiff ........ Do not compile TIFF support.
    -qt-libtiff ........ Use the libtiff bundled with Qt.
 +  -system-libtiff .... Use libtiff from the operating system.
                         See http://www.libtiff.org

    -no-libpng ......... Do not compile PNG support.
    -qt-libpng ......... Use the libpng bundled with Qt.
 +  -system-libpng ..... Use libpng from the operating system.
                         See http://www.libpng.org/pub/png

    -no-libmng ......... Do not compile MNG support.
    -qt-libmng ......... Use the libmng bundled with Qt.
 +  -system-libmng ..... Use libmng from the operating system.
                         See http://www.libmng.com

    -no-libjpeg ........ Do not compile JPEG support.
    -qt-libjpeg ........ Use the libjpeg bundled with Qt.
 +  -system-libjpeg .... Use libjpeg from the operating system.
                         See http://www.ijg.org

    -no-openssl ........ Do not compile support for OpenSSL.
 +  -openssl ........... Enable run-time OpenSSL support.
    -openssl-linked .... Enabled linked OpenSSL support.

------其他解决方案--------------------
没有人遇到过类似的情况么,自己顶一下
------其他解决方案--------------------
我把plugin下imageformats里的libqgif.so拷贝到板子上的,还是不行的
  相关解决方案