Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1229

MSVC: 'cannot open input file 'qbs_cpp_scanner.lib'' and 'Cannot open include file: 'generators/generator.h'' errors for Static builds on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 1.10.0
    • General
    • None
    •   * Windows 10 x64,
        * MSVC 2017 15.4.1,
        * Windows SDK 10.0.16299.15,
        * Qt5-dev (6cbd3faac08da781fc219ef4268e2e83bb2a5f03),
        * QBS-dev (f553dc266756c830923ba659d7ff88266d213c4c).
    • 9258beb35aaf30ab2e89cdd6af0e02ddc179d98d, c79f8639357f6963729ced503cdcda318a0fba5d

    Description

      Hello everyone,

      For builds using MSVC got errors:

              link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:..\..\..\bin\qbs.exe @C:\Users\test\AppData\Local\Temp\nm8F09.tmp
      LINK : fatal error LNK1181: cannot open input file 'qbs_cpp_scanner.lib'
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.EXE"' : return code '0x49d'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.

      which relate to Change #178166.

       

      It occures since file lib\qbs\pluginsqbs_cpp_scanner.lib is missing in build folder (as well as clangcompilationdbgenerator.lib, qbs_qt_scanner.lib, and visualstudiogenerator.lib, available in Shared build folder).

       

      After copying files qbs_cpp_scanner.lib and qbs_qt_scanner.lib from Shared build folder and continue build, next blocker appeared:

              cd clangcompilationdb\ && ( if not exist Makefile c:\libQT-5.11-dev\MSVC64RT\bin\qmake.exe -o Makefile c:\QTBS-1.10.0-dev\build\src\plugins\generator\clangcompilationdb\clangcompilationdb.pro "QBS_INSTALL_PREFIX=c:\QTBS-1.10.0-dev\build\..\MSVC64RH" ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe" -f Makefile
      
      Microsoft (R) Program Maintenance Utility Version 14.11.25547.0
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe" -f Makefile.Release
      
      Microsoft (R) Program Maintenance Utility Version 14.11.25547.0
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -O2  -MT -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQBS_STATIC_LIB -DQT_NO_DEBUG -DQT_CORE_LIB -DNDEBUG -I. -Ic:\libQT-5.11-dev\MSVC64RT\include -Ic:\libQT-5.11-dev\MSVC64RT\include\QtCore -Irelease -Ic:\libQT-5.11-dev\MSVC64RT\mkspecs\win32-msvc -Forelease\ @C:\Users\test\AppData\Local\Temp\nm3D6A.tmp
      clangcompilationdbgenerator.cpp
      c:\qtbs-1.10.0-dev\build\src\plugins\generator\clangcompilationdb\clangcompilationdbgenerator.h(43): fatal error C1083: Cannot open include file: 'generators/generator.h': No such file or directory
      clangcompilationdbgeneratorplugin.cpp
      c:\qtbs-1.10.0-dev\build\src\plugins\generator\clangcompilationdb\clangcompilationdbgenerator.h(43): fatal error C1083: Cannot open include file: 'generators/generator.h': No such file or directory
      Generating Code...
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\cl.EXE"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.

       

      Reproduced for:
        - QBS-dev builds using MSVC with Static layout,

      not reproduced for:
        - QBS-dev builds using MSVC with Shared layout,
        - QBS-dev builds using mingw-w64 with Static layout.

       

      Best,

      Alexander

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            sav sav
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes