Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Compiling the Qt 4.8.3 source with RTTI support for using the dynamic_cast
QtWS25 Last Chance

[SOLVED] Compiling the Qt 4.8.3 source with RTTI support for using the dynamic_cast

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 2.2k 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.
  • Z Offline
    Z Offline
    zhanisch
    wrote on last edited by
    #1

    Hi,

    I've compiled the Qt 4.8.3 from source with these instructions and flags:

    configure -platform win32-g++ -debug-and-release -rtti -exceptions -no-phonon -no-phonon-backend -fast -opensource -shared -qt-sql-mysql -l mysql -I c:\mysql\include -L c:\mysql\lib\opt

    mingw32-make

    I used -rtti for enabling the dynamic_cast but I can't use it because I get error message when I want to link my program:
    dynamic_cast_will_always_fail_because_rtti_is_disabled

    I don't understand what is the problem. When I use the old Qt 4.8.0 from QtSDK, everything is OK.

    Any suggestion is welcomed.
    Thank you!

    Best regards

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zhanisch
      wrote on last edited by
      #2

      The solution:

      type

      CONFIG += rtti

      into your .pro (project) file.

      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