Can qt embedded still use png if it was not configured with -qt-libpng ?



  • I configured qt embedded without this options and when create an application with simple pushbutton i have no problem running it on my card but when i try add an icon to a push button (by using a resource file) the program don't work anymore (error SEGV). My program is static.
    I can't find informations about -qt-libpng, this is why i did not put it in the configuration. i thought that simply displaying a image would not need it and that this lib would be to work (change colors, painting...) with them.


  • Lifetime Qt Champion

    Hi,

    What configuration options did you use ?
    What does a run through the debugger tell you ?

    If you don't specify that option, Qt will try to use your system's libpng.



  • I used the configuration :

    ./configure -embedded arm -no-armfpa -big-endian -qt-gfx-transformed -qt-gfx-linuxfb -nomake demos -nomake examples -no-svg -no-phonon -no-qt3support -no-feature-CURSOR -qt-mouse-tslib -L/usr/local/lib -I/usr/local/include -static

    I can't currently debug because the board don't have a ssh server to connect with qt creator.

    After searching in the board i don't think it has a libpng so i should be forced to use the one from qt i think.

    EDIT : One error is solved but another appeared !
    My segv error came from the way my ftp client was sending files to the board even when using a ubuntu pc and selecting "unix" server as target filezilla was thinking it was dos and was modifying some file. I am now using the simple ftp client of ubuntu and i don't have this SEGV error anymore, the application s running.
    But the images are not loading "nicely", the colors are wrong.


  • Lifetime Qt Champion

    What board is it ?



  • A sbc6000x (at91sam9261 micro, linux 2.6.24) from embest.


  • Lifetime Qt Champion

    How are the colors wrong ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.