Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 & Windows 8, compile error in qtmultimedia module.
Forum Updated to NodeBB v4.3 + New Features

Qt5 & Windows 8, compile error in qtmultimedia module.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.3k 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.
  • J Offline
    J Offline
    jerebo
    wrote on last edited by
    #1

    Hello,

    I currently try to compile Qt5 (git, master) in Windows 8 with Visual Studio 2012 C++ Express.

    This is my configure line:
    configure -developer-build -opensource -confirm-license -nomake tests -opengl es2 -angle -directwrite -mp

    I get the following error:

    @c:\qt\git-qt5\qtbase\include\qtcore../../src/corelib/global/qglobal.h(1052) : e
    rror C2825: 'T': must be a class or namespace when followed by '::'
    .\qdeclarativevideooutput.cpp(191) : see reference to function template
    instantiation 'T qt_dynamic_cast_check<QDeclarativeVideoRendererBackend*,QDeclar
    ativeVideoBackend*>(X,T *)' being compiled
    with
    [
    T=QDeclarativeVideoRendererBackend *,
    X=QDeclarativeVideoBackend *
    ]
    c:\qt\git-qt5\qtbase\include\qtcore../../src/corelib/global/qglobal.h(1052) : e
    rror C2039: 'dynamic_cast_will_always_fail_because_rtti_is_disabled' : is not a
    member of '`global namespace''
    c:\qt\git-qt5\qtbase\include\qtcore../../src/corelib/global/qglobal.h(1052) : e
    rror C2146: syntax error : missing ';' before identifier 'dynamic_cast_will_alwa
    ys_fail_because_rtti_is_disabled'
    c:\qt\git-qt5\qtbase\include\qtcore../../src/corelib/global/qglobal.h(1052) : e
    rror C2275: 'T' : illegal use of this type as an expression
    .\qdeclarativevideooutput.cpp(191) : see declaration of 'T'
    c:\qt\git-qt5\qtbase\include\qtcore../../src/corelib/global/qglobal.h(1052) : e
    rror C2065: 'dynamic_cast_will_always_fail_because_rtti_is_disabled' : undeclare
    d identifier
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
    \VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
    \VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    @

    I'm confused by error C2039: 'dynamic_cast_will_always_fail_because_rtti_is_disabled' : is not a
    member of '`global namespace''
    since i thought that Rtti should be enabled by default...

    Anyway, can someone help me?

    Best Regards,

    J

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jerebo
      wrote on last edited by
      #2

      Hello,

      I did comment out the following line (191)

      Q_ASSERT(m_backend && dynamic_cast<QDeclarativeVideoRendererBackend *>(m_backend.data()));

      -> //Q_ASSERT(m_backend && dynamic_cast<QDeclarativeVideoRendererBackend *>(m_backend.data()));

      It now goes over and keeps compiling. I'm not sure whats causing the compile issue,..

      Similar issue with ... qtmultimedia\src\plugins\wmf\player\mfvideorenderercontrol.cpp:2178

      QChildEvent childEvent = dynamic_cast<QChildEvent>(event);
      -> QChildEvent childEvent = (QChildEvent)event;

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Check C:[QT 5 ROOT]\qtbase\config.summary

        Is RTTI supported in your configuration?

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jerebo
          wrote on last edited by
          #4

          Yes. See http://pastebin.com/ebbLcMM6

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            I just read your original message again, and realized that the error isn't because you have RTTI disabled. It's because the compiler can't find a function/template/variable named `dynamic_cast_will_always_fail_because_rtti_is_disabled'

            Search for that name in the source code; you might be able to find some clues

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            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