alien icon indicating copy to clipboard operation
alien copied to clipboard

Problem on building the sources on Windows

Open Gardene-el opened this issue 2 years ago • 3 comments

i built the source by following the direction on readme but finally failed. and idk how to descripe my problem, so i share a screenshot which contains whole process i have done on cmd. BIKP(QW0`1Q% 2PJ$LOMLNP

Gardene-el avatar Sep 20 '22 10:09 Gardene-el

i tried to find the cause of problem on building process, and summarized two potential attribution: i don't install Nsight Visual Studio Edition on installing CUDA because it is always failed, and i don't do anything to configurate the ide because i don't know how to do so.

Gardene-el avatar Sep 20 '22 15:09 Gardene-el

It should be sufficient to install Visual Studio 2022 and CUDA Toolkit. In your case it already fails at the installation of the package manager vcpkg. There is a log file mentioned in the message. What is written there?

chrxh avatar Sep 20 '22 19:09 chrxh

It should be sufficient to install Visual Studio 2022 and CUDA Toolkit. In your case it already fails at the installation of the package manager vcpkg. There is a log file mentioned in the message. What is written there?

do you mean error MSB1009? it is "project file don't exist". and then "switch: All_BUILD.vcxproj"

Gardene-el avatar Sep 21 '22 14:09 Gardene-el

do you mean error MSB1009? it is "project file don't exist". and then "switch: All_BUILD.vcxproj"

In your first message there is written: "See logs for more information: C:\User[...]\vcpkg-bootstrap.log" Maybe in this log-file are more details about your problem.

How did you install CMake? You can install it using the Visual Studio 2022 installer. image

Does that solves the problem?

chrxh avatar Sep 22 '22 21:09 chrxh

oh, sorry, now i finally understand your meaning. i have installed CMake tools for Windows, and this doesn't work. the log file in build folder is said:"'powershell.exe' is not an internal or external command, nor is it a runnable program or batch file"

Gardene-el avatar Sep 23 '22 11:09 Gardene-el

It seems that you need to install powershell: https://learn.microsoft.com/de-de/powershell (It was already installed on my system.)

chrxh avatar Sep 24 '22 08:09 chrxh

thanks a lot, now i've installed powershell and add it to path system variable, so this 'powershell.exe' is not an internal or external command, nor is it a runnable program or batch file" solved, but i still met a new problem on building it. this problem happened on cmake .. -DCMAKE_BUILD_TYPE=Release i'm sure i'm using the latest portfiles with git pull and .\vcpkg update neither git pull --recurse-submodules nor git switch d8783052cbf85bb5b1777b58b998c88d99357943 --detach works here are the error screenshot and the log file 图片 CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:128 (message): copy-tool-dependencies-0-err.log CMake Error at external/vcpkg/scripts/buildsystems/vcpkg.cmake:836 (message): vcpkg-manifest-install.log

Gardene-el avatar Sep 24 '22 18:09 Gardene-el

thanks a lot, now i've installed powershell and add it to path system variable, so this 'powershell.exe' is not an internal or external command, nor is it a runnable program or batch file" solved, but i still met a new problem on building it. this problem happened on cmake .. -DCMAKE_BUILD_TYPE=Release i'm sure i'm using the latest portfiles with git pull and .\vcpkg update neither git pull --recurse-submodules nor git switch d8783052cbf85bb5b1777b58b998c88d99357943 --detach works here are the error screenshot and the log file

The problem this time seems to be related to https://github.com/microsoft/vcpkg/issues/25322. The suggested solution there is "So I uninstalled PowerShell I downloaded from the Windows Store and re-downloaded it from another source."

chrxh avatar Sep 25 '22 17:09 chrxh

very thanks, now i successfully built it. the problems solved

Gardene-el avatar Sep 26 '22 09:09 Gardene-el