Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 4.7.1 problems on Symbian^3 emulator
QtWS25 Last Chance

Qt 4.7.1 problems on Symbian^3 emulator

Scheduled Pinned Locked Moved Mobile and Embedded
18 Posts 3 Posters 11.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xsacha
    wrote on last edited by
    #4

    [quote]QString::fromUtf8("statusbar")
    ...
    QApplication::UnicodeUTF8[/quote]
    Does it work without using unicode?

    Have you seen this:
    http://discussion.forum.nokia.com/forum/showthread.php?214116-QT-4.7.1-for-Symbian-3-demo-applications-crashing-on-emulator

    Someone with the same problem.

    http://bugreports.qt.nokia.com/browse/QTBUG-5284
    Bug. Last comment, someone with the same stack trace as you.

    • Sacha
    1 Reply Last reply
    0
    • S Offline
      S Offline
      stenlik
      wrote on last edited by
      #5

      Hi,

      I think it crashes due to some bug in "fontstore":http://developer.symbian.org/xref/oss/xref/Symbian3/sf/os/textandloc/fontservices/fontstore/ compoment.

      My guess is that it crahes when the pointer returned by following method is accessed because it is not valid (see the comment):

      @/*
      Workaround: fntstore.h has an inlined function 'COpenFont* CBitmapFont::OpenFont()'
      that returns a private data member. The header will change between SDKs. But Qt has
      to build on any SDK version and run on other versions of Symbian OS.
      This function performs the needed pointer arithmetic to get the right COpenFont*
      /
      COpenFont
      OpenFontFromBitmapFont(const CBitmapFont* aBitmapFont)
      {
      const TInt offsetIOpenFont = 92; // '_FOFF(CBitmapFont, iOpenFont)' ..if iOpenFont weren't private
      const TUint valueIOpenFont = (TUint)PtrAdd(aBitmapFont, offsetIOpenFont);
      return (valueIOpenFont & 1) ?
      (COpenFont*)PtrAdd(aBitmapFont, valueIOpenFont & ~1) : // New behavior: iOpenFont is offset
      (COpenFont*)valueIOpenFont; // Old behavior: iOpenFont is pointer
      }@

      I have also checked the epocwind.out for some info:
      @ 209.370 FontProvider: Category=3, TextPane Height=29; mapped request=26; asked typeface=Series 60 Sans TitleSmBd; given typeface=Series 60 Sans TitleSmBd, actual range=29(a,d,exa,exd=19 7 5 -2)
      209.375 FontProvider: Category=3, TextPane Height=28; mapped request=26; asked typeface=Series 60 Sans TitleSmBd; given typeface=Series 60 Sans TitleSmBd, actual range=29(a,d,exa,exd=19 7 5 -2)
      209.940 Thread TestHelloWorldS3::TestHelloWorldS3 Panic KERN-EXEC 3@

      What worries me, that this was reported only by 2 people so far - me and the one on the forum.nokia.com.

      Hope someone could solve the issue...
      BR
      STeN

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stenlik
        wrote on last edited by
        #6

        Hi,

        I have found one more interesting problem:

        When installing the Qt 4.7.1 over the S^3^ SDK, only binaries (e.g. .dlls) are rewritten, while Qt header files remains untouched. I have saved immediately after start up the QT_VERSION_STR string to qDebug() and the result is still 4.6.3...

        BR
        STeN

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koshui
          wrote on last edited by
          #7

          Which version of FN Symbian SDK you are using? I've tried both 0.8 and 0.9 and they fail miserably when compiling Qt itself so don't expect to have full support on these yet. Symbian PDK is to my knowledge the only working Symbian^3 SDK out there.

          From my experience:
          0.8 is binary incompatible with Firmware on N8, works if you have pre-built Qt.
          0.9 is missing hal.h so nothing actually compiles. This is actually very odd thing as we had 3 different machines all of them 0.9 installed and in one of the machines (Win7) hal.h is extracted but the other 2 (Win XP) are missing it. So we made tests to see what could be causing it but didn't find anything conclusive. I ran on my machine both custom and full install without getting hal.h.

          I also posted on the FN thread with my alter ego jakoskin ;)

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koshui
            wrote on last edited by
            #8

            [quote author="stenlik" date="1291554709"]Hi,
            When installing the Qt 4.7.1 over the S^3^ SDK, only binaries (e.g. .dlls) are rewritten, while Qt header files remains untouched. I have saved immediately after start up the QT_VERSION_STR string to qDebug() and the result is still 4.6.3...
            [/quote]

            One thing you could try is to delete (or move) the Qt headers from epoc32/include to force the use of headers under Qt/include .

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stenlik
              wrote on last edited by
              #9

              Hi koshui,

              I have 0.9 S^3^ SDK, I did not tried the PDK... I will probably wait until a 0.9 SDK compatible version will be available on forum.nokia pages:))
              BR
              STeN

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stenlik
                wrote on last edited by
                #10

                Hi,

                [quote author="koshui" date="1291574085"][quote author="stenlik" date="1291554709"]Hi,
                When installing the Qt 4.7.1 over the S^3^ SDK, only binaries (e.g. .dlls) are rewritten, while Qt header files remains untouched. I have saved immediately after start up the QT_VERSION_STR string to qDebug() and the result is still 4.6.3...
                [/quote]

                One thing you could try is to delete (or move) the Qt headers from epoc32/include to force the use of headers under Qt/include .
                [/quote]

                I will try to delete old header files (hope there are really only under /mw/qt* subdirectory), to force the Carbide.C++ to use the new from 4.7.1 SDK - but still I am afraid that the font problem will not gone...

                BR
                STeN

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koshui
                  wrote on last edited by
                  #11

                  [quote author="stenlik" date="1291610412"]Hi,
                  I will try to delete old header files (hope there are really only under /mw/qt* subdirectory), to force the Carbide.C++ to use the new from 4.7.1 SDK - but still I am afraid that the font problem will not gone...
                  [/quote]

                  That is the correct directory.
                  Can you try copying fonts over from 5.0 SDK ? It wouldn't surprise me at all if the font files are corrupted (or missing).

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    stenlik
                    wrote on last edited by
                    #12

                    Hi,

                    I will try today to delete headers and overwrite fonts (BTW - have you idea, where I can find them) and put here some feedback. Hope there will not be other problems...

                    BR
                    STeN

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      koshui
                      wrote on last edited by
                      #13

                      According to http://developer.symbian.org/xref/oss/xref/Symbian3/sf/os/textandloc/fontservices/fontstore/src/FNTSTORE.CPP they are in \resource\fonts and in Font&Bitmap Servers SID.

                      Copying fonts over will most likely have some nice side-effects :)

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        stenlik
                        wrote on last edited by
                        #14

                        Hi,

                        I have tried to change header files - this helps in a way, that QT_VERSION_STR is now 4.7.1, but application was still crashing. Then I tried to replace the fonts with those from Qt 4.7.1. SDK, but it has no positive effects. The SDK is simply not ready to be used in Carbide.C++, at least this is my conclusion from this...

                        If anyone will succeed running 4.7.1 with S^3 SDK on Carbide.C++ please give a note here...

                        BR
                        STEN

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          koshui
                          wrote on last edited by
                          #15

                          I replied to FN as well. Qt4.7.1 and Symbian^3 0.9 were never tested to work together and use incompatible build configuration.
                          I understood that you knew this and wanted to try anyways.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            stenlik
                            wrote on last edited by
                            #16

                            Hi koshui,

                            Now I understand that... Thanks for your support, even I was unsuccessful it gave me some knowledge... Please understand that it was little bit confusing for me, that the the Qt 4.7.1 and S^3^ both are available but they are not compatible... I should read the http://doc.qt.nokia.com/4.7/supported-platforms.html first., now I clearly understand that only S60 5th is tested and supported and older 3rd and never S^3^ not.

                            Is there any roadmap/plan where the newest Symbian OS will be supported?

                            Have a nice day and thanks
                            STeN

                            1 Reply Last reply
                            0
                            • ? This user is from outside of this forum
                              ? This user is from outside of this forum
                              Guest
                              wrote on last edited by
                              #17

                              Stenlik, just saw "this":http://labs.qt.nokia.com/2010/12/12/start-with-qt-4-7-for-symbian-today/ lab blog post about running Qt 4.7.1 on Symbian, so give it a shot and let us know

                              1 Reply Last reply
                              0
                              • X Offline
                                X Offline
                                xsacha
                                wrote on last edited by
                                #18

                                That's for QtCreator chetank...
                                Doesn't really show anything we aren't already doing :P
                                I did that stuff the day Qt4.7.1 came out.

                                • Sacha
                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved