Installation isnt working
lappazos opened this issue · 10 comments
C:\Users\liora>powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/horta/zlib.install/master/install.bat', 'install.bat')"; ./install.bat
[0/5] Library(zlib==1.2.11)
[1/5] Downloading... done.
[2/5] Extracting... done.
[3/5] Fixing CMakeLists.txt... done.
[4/5] Configuring... FAILED.
Fetching https://zlib.net/zlib1211.zip
Downloading https://zlib.net/zlib1211.zip... done.
'cmake' is not recognized as an internal or external command,
operable program or batch file.
Make sure you have cmake: https://cmake.org/download/
now i get this
[0/5] Library(zlib==1.2.11)
[1/5] Downloading... done.
[2/5] Extracting... done.
[3/5] Fixing CMakeLists.txt... done.
[4/5] Configuring... FAILED.
Fetching https://zlib.net/zlib1211.zip
Downloading https://zlib.net/zlib1211.zip... done.
-- Building for: Visual Studio 16 2019
CMake Error at CMakeLists.txt:4 (project):
Failed to run MSBuild command:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: VCTargetsPath.vcxproj
Exit code: 1
-- Configuring incomplete, errors occurred!
See also "C:/Windows/System32/zlib-1.2.11/build/CMakeFiles/CMakeOutput.log".
Try running from Developer Command Prompt of Visual Studio.
i get this
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/horta/zlib.install/master/install.bat', 'install.bat')"; ./install.bat
Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."
At line:1 char:1
- (New-Object Net.WebClient).DownloadFile('https://raw.githubuserconten ...
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException
./install.bat : The term './install.bat' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:132
- ... horta/zlib.install/master/install.bat', 'install.bat'); ./install.bat
-
~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (./install.bat:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
And if you try
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/horta/zlib.install/master/install.bat', 'install.bat')"
install.bat
in separated lines, in that prompt?
Ok, don't open the Developer prompt then hehe
Do you really have "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe" ? If you do, I think that MSBuild.exe is not being able to find C/C++ compiler.
Have you recently installed that Visual Studio 2019? Is it easy to check if it has the C/C++ compiler installed? And if nothing works, reinstall Visual studio?
I haven't tested Visual Studio 2019 yet but I find hard to believe that it is the problem.
This thread provide some insight: https://stackoverflow.com/questions/44478492/cmake-failed-to-run-msbuild-command-msbuild-exe
I have tried here with Visual Studio 2019. I noticed that the my MSBuild is more up-to-date:
-- Build files have been written to: C:/Users/horta/zlib-1.2.11/build
Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
I guess you can try to update it via "Windows Update" and then try again?