skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
221 stars 74 forks source link

Build system failure with CMake 3.21 #62

Closed Blazzes closed 3 years ago

Blazzes commented 3 years ago

When building the project, an error occurs with the installation of vcpkg.

cmake version 3.21.0-rc3 nodeJs version 14.17.3 npm version 6.14.13

image

Pospelove commented 3 years ago

Could you please attach I:\git-installs\skymp\build\vcpkg-manifest-install.log?

Blazzes commented 3 years ago

vcpkg-manifest-install.log

Pospelove commented 3 years ago

Hm, doesn't say anything.

  1. Please archive and attach the whole build directory. I'll take a look if there are any anomalies.
  2. Try to store our repo on C:/ instead of I:/ and say if it helps.
Blazzes commented 3 years ago

I tried to collect on disk C. The result is the same. https://drive.google.com/file/d/1mySFCKbI0LFX6TSehY5d8GUZUrtSV-qF/view?usp=sharing

alekcey0211 commented 3 years ago

Sorry, did you run the command git submodule init and then git submodule update

Eli5723 commented 3 years ago

There's an issue with cmake 3.21 producing errorless crashes with VCPKG, just downgrade to 3.20.x.

ZhenjaMax commented 3 years ago

There's an issue with cmake 3.21 producing errorless crashes with VCPKG, just downgrade to 3.20.x.

I have the same error and this solution doesn't work for me.

cmake .. -DSKYRIM_DIR="D:/Games/The Elder Scrolls V Skyrim - Special Edition" CMake v3.20.5 Node v14.15.4 npm v6.14.10

image

Pospelove commented 3 years ago

This CMake version works for me.

C:\Users\Pospelov>cmake --version
cmake version 3.20.0-rc5

Maybe updating vcpkg submodule to the latest commit will help. Consider testing that. Feel free to make a PR if it helps

ZhenjaMax commented 3 years ago

cmake version 3.20.0-rc5

I've reinstalled CMake and it becomes more weird. In addition, CMake doesn't recognize my VS now.

image

Milord-Freeman commented 3 years ago

I'm not completely sure, but maybe I have a solution. Visual Studio comes with an Installer where you can select workloads. And it works fine on my PC. I am using VS2019, Cmake 3.20. [] - MSVC_2, and Developer Command Promt for VS 2019, which guarantees working integration of the tools with each other, and correct environment variables. Maybe this will help. изображение

ZhenjaMax commented 3 years ago

I'm not completely sure, but maybe I have a solution. Visual Studio comes with an Installer where you can select workloads. And it works fine on my PC.

There's some progress after installing language packs but it still show same error. VS was updated before CMake.

Windows 10 VS v16.10.3 CMake v3.20.21032501-MSVC_2 Node v14.15.4 npm v6.14.10

skymp/build/vcpkg-manifest-install.log

image

UPD: I guess that vcpkg updating will help.

Blazzes commented 3 years ago

After many attempts to build the project normally, I finally managed to do it. The project was built with this configuration: image The assembly requires only VS Community Edition and the English language pack installed to it.

Pospelove commented 3 years ago

We are going to fix that to work with the latest CMake version, Reopening since the build-system bug still exists.

Pospelove commented 3 years ago

Fixed in #85. Feel free to reopen if the problem still exists