Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21075

.pro file is not reloading before compilation and linking

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.6.2
    • All Other Issues
    • None
    • Microsoft Visual Studio Community 2017 - C++ compiler, possible the others.
    • Android, Windows

    Description

      My projects are cross platform static library not using QT and the simple test projects (console and core gui) which are using it.

      If I create test project and set up all .pro file settings before first compillation right then compillation is successful.

      But if I setup just one platform (Android), compille project, then I switch to MSVC2017 compillation for Windows, compille with error (because not all settings in .pro was made), change .pro settings (my library .lib name to be included, system dll to be linked with - I need user32.lib to pre linking) then compillation failed with the same errors (generally link errors like "error LNK2019: unresolved external symbol __imp_OemToCharA in function" or linker is trying to include my static lib from Android output folder, what's is wrong).

      This take a place if .pro have "win32: LIBS += -luser32" line.

      If I add " #pragma comment(lib, "user32.lib") " into my main.cpp, then compillation is successfull, so .pro file after modifications it and pressing Ctrl-S are ignored. Restarting QT Creator is not solving the problem.

      The problem is related to at least QT 5.11.0, QT 5.11.1.

      And I have observe a bug if I remove my .cpp file from library project. then it is still trying to compilling in QT 5.11.0.

      So .pro file is not reloading before compilation and linking.

       

      Attachments

        Issue Links

          Activity

            People

              con Eike Ziller
              maasoftware Андрей
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: