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. Vtable Error in Symbian API under Qt
Forum Updated to NodeBB v4.3 + New Features

Vtable Error in Symbian API under Qt

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 3 Posters 4.6k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    MamdouhAlShamy
    wrote on last edited by
    #1

    hi,

    im trying to use TTS under Qt creator as described in "this":http://wiki.forum.nokia.com/index.php/Symbian_S60_API_In_Qt_Project
    
    im using "CTtsPlayer":http://cally.iat.sfu.ca/research/attachment/1174162216.zip
    
    and calling the TTS by
    

    @ #if defined(S60_32)
    #elif defined(S60_50)
    #else
    //for Symbian^3
    #include <aknnotewrappers.h>
    #include "stringloader.h"

       CTtsPlayer player = CTtsPlayer::NewLC();
      TBuf<255> aBuffer( _L("MMS") );
        player->PlayTextL( aBuffer );
    #endif@
    
    and . pro has
    
     @   LIBS += -leuser -lapparc -lcone -leikcore -lavkon -lefsrv -lestor@
    
    but im getting errors
    

    @ multiple definition of 'vtable for CTtsPlayer'
    multiple definition of 'non-virtual thunk to CTtsPlayer::MapcPlayComplete(int)'
    @
    any solution

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MamdouhAlShamy
      wrote on last edited by
      #2

      any solution

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MamdouhAlShamy
        wrote on last edited by
        #3

        about "CTtsPlayer::MapcPlayComplete"
        it is found in CTtsPlayer and declared virtual

        @
        void CTtsPlayer::MapcPlayComplete( TInt aError )
        {
        iErr = aError;
        iPlaybackInProgress = EFalse;
        // Let the paused PlayTextL complete
        iWaiter->AsyncStop();
        }
        @

        and the class inherits from MMdaAudioPlayerCallback

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Perhaps it would help to ask the developers of CTtsPlayer?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MamdouhAlShamy
            wrote on last edited by
            #5

            i tried this Class on Symbian Project under Carbide C++
            , and it worked fine

            but in mixing Qt with Symbian APIs it fails

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MamdouhAlShamy
              wrote on last edited by
              #6

              any idea what is " vtable "

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andre
                wrote on last edited by
                #7

                "well...":http://lmgtfy.com/?q=vtable

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MamdouhAlShamy
                  wrote on last edited by
                  #8

                  solved by cleaning includes of header files
                  as as each file as refering to each other in a bad way

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tobias.hunger
                    wrote on last edited by
                    #9

                    vtable issues are sometimes caused by moc not working on all files it should work on. Rerunning qmake does help most of the times for me.

                    A clean rebuild usually fixes the rest of the cases:-)

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MamdouhAlShamy
                      wrote on last edited by
                      #10

                      thx all

                      the solution that some header files missing and other are duplicated in a bad way

                      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