Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Build error: C1083 #1

Open
guru245 opened this issue Aug 15, 2018 · 0 comments
Open

Build error: C1083 #1

guru245 opened this issue Aug 15, 2018 · 0 comments

Comments

@guru245
Copy link

guru245 commented Aug 15, 2018

Hi all,

I'm having a trouble in building lzma. I solved a part of it, but one issue remains. The issue must be resolved and the build instruction should be updated.

According to Build instruction for VS 2017, I followed the following instruction.

git clone https://github.com/telegramdesktop/lzma.git
cd lzma\C\Util\LzmaLib
msbuild LzmaLib.sln /property:Configuration=Debug
msbuild LzmaLib.sln /property:Configuration=Release

I get an error.

C:\Users\guru2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib>msbuild LzmaLib.sln /property:Configuration=Debug
Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 8/15/2018 3:22:01 PM.
Project "C:\Users\guru2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|x86".
Project "C:\Users\guru2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.sln" (1) is building "C:\Users\gur
u2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj" (2) on node 1 (default targets).
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK.targets
(46,5): error MSB8036: The Windows SDK version 10.0.16299.0 was not found. Install the required version of Windows SDK
or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solut
ion". [C:\Users\guru2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]
Done Building Project "C:\Users\guru2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj" (default ta
rgets) -- FAILED.

Done Building Project "C:\Users\guru2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.sln" (default target
s) -- FAILED.

Build FAILED.

The main error is error MSB8036: The Windows SDK version 10.0.16299.0 was not found This was easy to resolve. As you see the screenshot below, the git was set to 10.0.16299.0, which is not the latest. I changed it to 10.0.17134.0 as per my environment.

1534314584883

I rebuilt and faced another error.

Build FAILED.

"C:\Users\guru2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.sln" (default target) (1) ->
"C:\Users\guru2\Documents\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj" (default target) (2) ->
(ClCompile target) ->
  c1 : fatal error C1083: Cannot open source file: '..\..\Alloc.c': No such file or directory [C:\Users\guru2\Documents
\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]
  c1 : fatal error C1083: Cannot open source file: '..\..\LzFind.c': No such file or directory [C:\Users\guru2\Document
s\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]
  c1 : fatal error C1083: Cannot open source file: '..\..\LzFindMt.c': No such file or directory [C:\Users\guru2\Docume
nts\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]
  c1 : fatal error C1083: Cannot open source file: '..\..\LzmaDec.c': No such file or directory [C:\Users\guru2\Documen
ts\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]
  c1 : fatal error C1083: Cannot open source file: '..\..\LzmaEnc.c': No such file or directory [C:\Users\guru2\Documen
ts\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]
  c1 : fatal error C1083: Cannot open source file: '..\..\LzmaLib.c': No such file or directory [C:\Users\guru2\Documen
ts\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]
  c1 : fatal error C1083: Cannot open source file: '..\..\Threads.c': No such file or directory [C:\Users\guru2\Documen
ts\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]
  c1 : fatal error C1083: Cannot open source file: 'LzmaLibExports.c': No such file or directory [C:\Users\guru2\Docume
nts\Src\telegram\Libraries\lzma\C\Util\LzmaLib\LzmaLib.vcxproj]

    0 Warning(s)
    8 Error(s)

This is the famous C1083 error. I searched Stackoverflow and tried every solution. But no luck.

This is my environment.
Edition Windows 10 Pro
Version 1803
OS build 17134.228
Visual Studio 2017 15.8.0

Could you help resolve this issue?

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant