[Qt-interest] QMovie->supportedFormats() returns () on embedded arm machine
Samuel Gaist
samuel.gaist at edeltech.ch
Tue Dec 14 13:41:02 CET 2010
On 14 déc. 2010, at 12:59, Klaus.Fuerth at ELK.de wrote:
> Hello,
>
> I tried to use an aniated gif on my arm embedded system
> (qt-everywhere-opensource-src-4.6.3). The animation works fine on my
> host machine (linux), on my target it does not work.
> I used this code:
>
>> QMovie *movie = new QMovie(":Bilder/test.gif", QByteArray(),
>> ui->animationLabel);
>> qDebug() << "Supported Formats:" << movie->supportedFormats();
>> ui->animationLabel->setMovie(movie);
>> movie->start();
>> ui->animationLabel->resize((QSize)(movie->currentImage().size()));
>
> I get this output when starting my program on the embedded system:
>> Supported Formats: ()
> On my Linux-host I get:
>> Supported Formats: ("gif", "mng")
>
>
> I configured qt with the -qt-gif option for the embedded machine. Do I
> need any other (external) dependencies to get it work (or any other
> configure-options)?
>
> Thank you.
>
> Klaus
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
Hello,
the -qt-gif switch only tells the build system to compile the gif plugin.
Did you also copy all the image formats plugins you need to your embedded machine ?
Hope this helps
Samuel
More information about the Qt-interest-old
mailing list