首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > QT开发 >

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

2012-12-17 
关于gif图片不能在arm下显示的问题请教我现在在gui上做了一个等待画面,用的gif图片,在ubantu linux下是可

关于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拷贝到板子上的,还是不行的


[其他解释]
    我就是在对话框里加了一个等待动画
    QMovie *movie = new QMovie(":/resource/images/wait.gif");
    ui->label->setMovie(movie);

    movie->start();


[其他解释]
自己顶一下,

热点排行