Important: Please read the Qt Code of Conduct -

[SOLVED] Version migration problem: specified -enable-auto-import on the command line

  • Hi All,

    I want to migrate a project from old Qt version to a newest one.
    [OP: Windows7 | Qt: 4.8.1 ]

    When building, compiler throw this message:
    warning: auto-importing has been activated without --enable-auto-import specified on the command line.

    Ok. I try to add this line. and fail.

    Can someone give me (and other user with similar problems) some sort of "step-By-Step tutorial" for adding this line to the command line (something like: STEP 1: Open the command line... and so on...)

    I think that something like this can be a great help for newest programmers with Qt.

    Thanks for advance,

  • Ok - I use this "link.":

    Enter to: <QtSDK DIR>\Desktop\Qt\4.8.1\mingw\mkspecs\win32-g++

    And change the line:

    QMAKE_LFLAGS = -enable-auto-import -Wl

    That's all.
    Good Luck!

Log in to reply