×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    77

    Build Project in GCCE error: cannot convert file to unicode

    Code:
        ***Build Complete
       
    
        ***Invoking makesis.exe ....
        C:\S60\devices\S60_3rd_FP2_SDK\epoc32\tools\makesis.exe -dC:\Documents and Settings\user\桌面 C:\Symbian\Carbide\workspace\painting\basicdrawing\basicdrawing_gcce_udeb.pkg C:\Symbian\Carbide\workspace\painting\basicdrawing\basicdrawing_gcce_udeb.sis
        error: cannot convert file to unicode
        error: make sure .PKG and .TXT files are either UTF8 or UNICODE
        ***Non-Zero Status: makesis.exe returned with exit value = 1
        Total Time: 33 sec
    There some chinese in the pkg file.
    Code:
    ; qts60sms_armv5_udeb.pkg generated by qmake at ���ڶ� ���� 19 15:27:00 2009
    ; This file is generated by qmake and should not be modified by the user
    ;
    Someone told me there are some chinese in the pkg file which is in UTF-8 format. But this is generated by qmake, and how can I change the language.

    And I search one man said should change in this way:
    Settings->Language and regional standarts (sorry, i have russian windows) - Language standarts & formats ->select English(US).
    The problem is in the date, even, month name NOT in ENGLISH, if u have not english locale (in comments), and makesis can't convert cp1251 in utf8.
    sorry for my bad english

    But I can't find it. Who can help me, thanks!

  2. #2
    Registered User
    Join Date
    Nov 2003
    Posts
    1

    Re: Build Project in GCCE error: cannot convert file to unicode

    Quote Originally Posted by guirenwang View Post
    Code:
    error: cannot convert file to unicode
    error: make sure .PKG and .TXT files are either UTF8 or UNICODE
    ***Non-Zero Status: makesis.exe returned with exit value = 1
    
    ; qts60sms_armv5_udeb.pkg generated by qmake at ���ڶ� ���� 19 15:27:00 2009
    ; This file is generated by qmake and should not be modified by the user
    ;
    As noted, there are other than us-ascii characters in .PKG file's date/time string, causing sis creator to fail. It's because of QDateTime::currentDateTime().toString() call that is used when generating .PKG returns localised string.

    My workaround:

    C:/Qt/4.5.0-garden/qmake/generators/symbian/symmake.cpp, line 276.

    Replace
    Code:
    t << QString("; %1 generated by qmake at %2").arg(pkgFilename).arg( QDateTime::currentDateTime().toString()) << endl;
    with
    Code:
    t << QString("; %1 generated by qmake at %2").arg(pkgFilename).arg( QDateTime::currentDateTime().toString(Qt::ISODate)) << endl;
    or
    Code:
    t << QString("; %1 generated by qmake at %2").arg(pkgFilename).arg( QDateTime::currentDateTime().toString(Qt::SystemLocaleShortDate)) << endl;
    Then

    cd /qt/4.5.0-garden/qmake
    make

    HTH

Similar Threads

  1. Regarding BMCONV
    By sanah007 in forum Symbian
    Replies: 2
    Last Post: 2009-05-26, 12:47
  2. Error in project build for Emulator Debug(WINSCW)S602ndFP@2
    By SanjayKhuntia in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2008-08-13, 11:47
  3. Error : Cannot find file : for DUMMIES
    By PACALA_BA in forum Symbian
    Replies: 7
    Last Post: 2008-07-06, 13:18
  4. error: cannot convert file to unicode
    By PACALA_BA in forum Symbian
    Replies: 3
    Last Post: 2008-07-05, 17:54
  5. could not find thread.mbg and thread.rsg
    By deercrane in forum Symbian
    Replies: 3
    Last Post: 2006-04-18, 09:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •