×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jun 2005
    Location
    Philippines
    Posts
    163

    Question GCCE compile warnings using S60 3rd ed SDK

    I am currently trying to install GCCE compiled binaries to a Nokia device. However, after creating a sisx file, the Nokia device rejects the sisx file with a "File Corrupted" error message. I do not encounter any warnings when invoking the compiling fromt the command line except that the version of the RCVT compiler cannot be determined. The *.exe file gets produced anyway. Trying to compile in CodeWarrior using GCCE with the ff Symbian Compiler settings
    Compiler: ARM GCCE

    Prefix File: gcce.h

    Macros:
    __SYMBIAN32__,__SERIES60_30__,__SERIES60_3X__,__GCCE__,__EPOC32__,__MARM__,__EABI__,__MARM_ARMV5__,__EXE__,NDEBUG,_UNICODE,__GCCE__,__SUPPORT_CPP_EXCEPTIONS__,__PRODUCT_INCLUDE__

    Arguments:
    -march=armv5t -mthumb-interwork -mapcs -msoft-float -fexceptions -pipe -nostdinc -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas
    result in the ff warnings:
    1. _FOFF of e32def.h
    - 2 warnings occur whenever this is used
    a. the compiler complains "invalid access to non-static member" regarding the 2nd parameter of _FOFF
    b. "perhaps the 'offsetof' macro was used incorrectly" warning

    2. "Enumeral mismatch in conditional expression: 'TFalse' vs 'TTrue'" in eikmenup.h line 183
    inline TBool CEikMenuPaneItem::IsScaleableText(const TDesC& aText) const
    {
    return (aText.Locate(TChar(KScaleableTextSeparator)) == KErrNotFound ? EFalse : ETrue);
    }
    Changing the return line to
    return !(aText.Locate(TChar(KScaleableTextSeparator)) == KErrNotFound);
    removes the 2nd type warning.

    Aside from these warnings I do not see any errors and hope that I have not missed any other warnings that might cause the corrupting of the SISX file.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    2

    Re: GCCE compile warnings using S60 3rd ed SDK

    Hello Ryan.

    I came across this thread because I have the same issue with GCCE. (SDK 3 Beta). You say you compiled it for a platfrom? Can u please say what kind of device u are using for testing this on? As far as I know there is a total binary brake from Symbian OS 9 onwards. Could this be the reason?

    Your following code is advised against by the Symbian experts:

    inline TBool CEikMenuPaneItem::IsScaleableText(const TDesC& aText) const
    {
    return (aText.Locate(TChar(KScaleableTextSeparator)) == KErrNotFound ? EFalse : ETrue);
    }
    becuase u should not check your return results as follow:

    TBool Ret = SomeFunction();
    if ( Ret == ETrue )
    {
    ...
    }
    but rather like this

    TBool Ret = SomeFunction();
    if ( Ret )
    {
    ...
    }
    .i.e. any positive value should be true. So the following is slightly more effecient

    return !(aText.Locate(TChar(KScaleableTextSeparator)) == KErrNotFound);
    I guess.

    Best,
    Johan.

  3. #3
    Regular Contributor
    Join Date
    Jun 2005
    Location
    Philippines
    Posts
    163

    Talking Re: GCCE compile warnings using S60 3rd ed SDK

    inline TBool CEikMenuPaneItem::IsScaleableText(const TDesC& aText) const
    {
    return (aText.Locate(TChar(KScaleableTextSeparator)) == KErrNotFound ? EFalse : ETrue);
    }
    The code above is not my code but is inside one of the S60 3rd ed system headers.

  4. #4
    Registered User
    Join Date
    Feb 2006
    Posts
    1

    Re: GCCE compile warnings using S60 3rd ed SDK

    Ryan,

    Did you find a solution to the corrupted files made by gcce? I am having the same problems and need the same solution.

    Regards,

    Kevin Gates

  5. #5
    Regular Contributor
    Join Date
    Jun 2005
    Location
    Philippines
    Posts
    163

    Wink Re: GCCE compile warnings using S60 3rd ed SDK

    I was not able to make the app work before returning the device to Nokia. From one of the posts here it was suggested that I should use an app uid from the range 0xE0000000 - 0xEFFFFFFF. Your app will not work with the emulator though when using this UID. Just revert back to your orig UID when working with the emulator.

    Check https://www.symbiansigned.com/app/page/uidfaq then please post if this solution solves your problem. This was what I was planning to do the next time that we borrow a device from Nokia.

Similar Threads

  1. OpenGL ES on S60 3rd Edition SDK Emulator
    By specjones in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2008-09-30, 10:22
  2. OpenGL ES Support in S60 3rd Edition Beta SDK
    By choefele in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2005-12-14, 06:01
  3. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11:43
  4. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05
  5. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

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