Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20395

QtPlugin magic header and cross-compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.6.3, 4.7.0, 4.7.1, 4.7.2, 4.7.3
    • Core: Plugins
    • None
    • Debian Squeeze (64 bits)

    Description

      We tried to cross-compile a 32bit Qt application on a 64bit Linux.
      Application has plugins. To do so, the -m32 switch was added to g++ (to produce a 32bit binary).

      Compile process went fine and everything got linked to the 32bit version of the Qt libraries but the application was unable to load the plugins, complaining about an incorrect target.

      The thing is : the plugin header is "fixed" and never evaluated dynamically according to the compile chain. The plugins were pure 32bit but tagged as 64bit by Qt ! This involves the Q_PLUGIN_VERIFICATION_DATA being hardcoded instead of dynamically evaluated on compile time (qplugin.h).

      I have tagged the problem for Qt 4.6.3 and up but I bet this has been a problem since the beginning of the QPlugin interface.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            j.vizcaino Jérôme Vizcaino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes