QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv failed for BOM: Bad file descriptor



  • Hello, I am running qt 4.7.0 with some QML code on a embedded ARM system. When I start the app I see:

    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv failed for BOM: Bad file descriptor
    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed

    And the fonts are square boxes in the app. Any suggestions as to what is wrong, or how I can debug?

    I'm running Qt on top of X11.

    Thanks,
    Cliff



  • the QIconvCodec messages appear to be benign.

    The problem with the square boxes for fonts was simply that I did not have ttf fonts installed on my target system.



  • Hi,

    I have the same problem with BeagleBoard.

    Have you solved?



  • Hi, I have the same problem...
    Did you solved it ? Do you remember how ?

    Thanks in advance.



  • [quote author="cbrake" date="1285271356"]the QIconvCodec messages appear to be benign.

    The problem with the square boxes for fonts was simply that I did not have ttf fonts installed on my target system.[/quote]
    The original problem seemed to have been missing fonts. Without more information about what you're trying to do, we won't be able to help you.



  • I am just trying to launch a Qt app.
    How can I know which fonts Qt is trying to use ?
    Where the fonts are supposed to be ?
    Because I have fonts installed on my system, I can see them using fc-list.

    An exemple of the problem :
    http://imageshack.us/photo/my-images/155/screenshotmcb.png/

    Thanks.



  • Solved it !

    I needed to update the xorg.conf file :

    Section "Files"
    FontPath "/usr/share/fonts/X11/100dpi"
    FontPath "/usr/share/fonts/X11/75dpi"
    FontPath "/usr/share/fonts/default/ghostscript"
    ....
    EndSection

    I still have the error message, but the fonts are displaying correctly...



  • Hi, excuse me if the thread I'm reviving is already quite old, but I don't see a suggested solution here. I"m currently debugging something, so I'd like to cover alle the bases. I don't think it keeps the app from functioning, but who knows...

    I am having the same error message when I start any applications, using Qt 5 with the EglFS and Wayland plugins.

    bq. QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed

    Any ideas what this could be? I don't have X, and all fonts are installed... I've been working on Qt 5 since around 2 months now, and it appeared just recently.

    I am also working on an ARM platform. Freescale i.MX515 to be exact.



  • It seems that your Qt libs are not correct versions on target platform. you can copy libQtCore and other needed libs to your target platform Qt lib path.



  • Pierrevr

    I got it to work when i unselected "install full modular Xorg server" on my ltib menu.

    Also installed liberation fonts.



  • Hi all,
    I am also facing the same problem. I am trying to build qt5.2 with opengl es2 for my arm controller using the configuration
    ./configure -prefix /usr/qte5.2 -release -make libs -make examples -nomake tools -xplatform linux-omap5-g++ -opengl es2 -confirm-license -opensource -no-xcb -no-pch -verbose -kms -sysroot /home/medha/ti-glsdk_dra7xx-evm_7_00_00_04/targetfs -v -no-icu

    After make install I am able to find all the cross compiled libraries. But I counld not find the fonts folder.
    I copied all the libraries onto my target and tried executing some application but I am gettitng error as follows.

    root@dra7xx-evm:~# ./Wid1 -platform kms
    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
    QSocketNotifier: Can only be used with threads started with QThread
    QSocketNotifier: Can only be used with threads started with QThread
    QSocketNotifier: Can only be used with threads started with QThread
    root@dra7xx-evm:~#

    Please help me in this regard.

    Thanks a lot,
    Vijay


Log in to reply
 

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