Search Unity

UWP Visual Studios 2017/2019 LNK1181 Error

Discussion in 'Windows' started by John-Lisenby, Jul 31, 2019.

  1. John-Lisenby

    John-Lisenby

    Joined:
    Nov 8, 2013
    Posts:
    112
    Hello,

    Since I upgraded to Unity 2018.4.5 and to 2019.12 f1 and now 19.2f1, I'm getting LNK 1181 error (cannot open input file "my game file"\master\GameAssembly.lib) when I got to rebuild the project in Visual Studios 2017 and 2019. When I navigate to the folder, it's empty.

    Any suggestions? I uninstalled and reinstalled Unity version and still getting this error.

    Thanks,

    John
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,443
    Can you paste full contents of Visual Studio output window after you get this error?
     
  3. John-Lisenby

    John-Lisenby

    Joined:
    Nov 8, 2013
    Posts:
    112
    Hi @Tautvydas-Zilys,

    Here the information from my output window
    1>------ Build started: Project: Chronicles of Nathan The Maze Hunter, Configuration: Master x64 ------
    1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(379,5): warning MSB8021: The value 'NotSet' of the variable 'CharacterSet' is incompatible with the value 'true' of the variable 'WindowsAppContainer'.
    1>pch.cpp
    1>App.cpp
    1>Main.cpp
    1>UnityGenerated.cpp
    1>e:\unity games\tps apps\3d maze hunter 2017\build\tcnmhuwp\chronicles of nathan the maze hunter\app.cpp(26): warning C4973: 'Windows::UI::ViewManagement::IApplicationView2::SuppressSystemOverlays::set': marked as deprecated
    1>e:\unity games\tps apps\3d maze hunter 2017\build\tcnmhuwp\chronicles of nathan the maze hunter\app.cpp(26): note: Message: 'Use the TryEnterFullScreen method and IsFullScreenMode property instead of SuppressSystemOverlays. For more info, see MSDN.'
    1>LINK : fatal error LNK1181: cannot open input file 'E:\Unity Games\TPS Apps\3D Maze Hunter 2017\Build\TCNMHUWP\build\bin\x64\Master\GameAssembly.lib'
    1>Done building project "Chronicles of Nathan The Maze Hunter.vcxproj" -- FAILED.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    ========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========


    Thanks John
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,443
    Did the Il2CppOutputProject fail to load? That's what produces GameAssembly.lib and it seems it wasn't even getting built.
     
  5. John-Lisenby

    John-Lisenby

    Joined:
    Nov 8, 2013
    Posts:
    112
    @Tautvydas-Zilys ,
    Build error.PNG Folder.PNG
    Everything loads in Visual Studios fine just when I go to build it. I check the folder is looking for and its empty. I attached images.

    Thanks,
    John
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,443
    It actually looks like the project didn't load in your picture:

    upload_2019-7-31_12-35-32.png
     
  7. John-Lisenby

    John-Lisenby

    Joined:
    Nov 8, 2013
    Posts:
    112
    Thanks! I'm not sure how that got unloaded / uninstalled. Its building now.