chrxh / alien

ALIEN is a CUDA-powered artificial life simulation program.
https://alien-project.org
BSD 3-Clause "New" or "Revised" License
4.69k stars 141 forks source link

Problems on building the sources on Windows #56

Closed Gardene-el closed 2 years ago

Gardene-el commented 2 years ago

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 commented 2 years ago

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.

chrxh commented 2 years ago

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?

Gardene-el commented 2 years ago

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"

chrxh commented 2 years ago

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?

Gardene-el commented 2 years ago

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"

chrxh commented 2 years ago

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

Gardene-el commented 2 years ago

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

chrxh commented 2 years ago

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."

Gardene-el commented 2 years ago

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