The Desktop Client vms_5.0 fails to build on Windows everytime! Errors added..
AnsweredHi Devs,
I have been trying to build the Desktop Client vms_5.0 using windows command prompt but it fails everytime.
Here is the screenshot of the error:
The error says:
ninja: build stopped: subcommand failed

I went to the C:/Users/KMG/Desktop/NX/v5.0cmd/nx_open/build/build_logs/metadata_sdk_sample_build.log and here is what is says:

It seems that it is asking for some build tools for Visual Studio 2015 (Platform Toolset = 'v140') which it says cannot be found. But the readme suggest to install Visual Studio 2022 community, and that's what I have.

I really want help in this. I followed all the right steps to do the build as instructed in the readme file, but here's another peek into my steps:
1. cloned git repo
2. from master branch, installed the requirement file using cmd as Administrator.
3. switched to vms_5.0 branch.
4. Installed CMake, Ninja and Conan manually as per: (Added them to PATH of System variables as well):

Note: I have also gone ahead with cmake that comes with requirement file and resides inside python folder but the build failed that way as well. Here's a proof of these installations and correct versions:
Cmake, conan and Ninja installations:

Their versions:

5. Installed Microsoft Visual Studio 2022 Community edition and included the required things:

6. Finally, Run the build.bat command.
The Generation step successfully completes. But the build process stops at that error. Kindly help, we are so close to building but its only happening on windows.
Thanks,
Pranay
-
Hello,
The error build tools for Visual Studio 2015 (Platform Toolset = 'v140')
means the Visual Studio has been installed without "Desktop development for C++".
You need version v140 or higher.
I'd recommend you getting a fresh start.
Make sure you have VS tools installed. Tools->Get Tools and Features...

Reboot your machine. Or logoff and logon.
Delete your nx_open directory.
Delete your nx_open-build directory.
Clone nx_open repo
git clone https://github.com/networkoptix/nx_open.git
Change to the nx_open directory
cd nx_open
Switch to the vms_5.0 branch
git checkout vms_5.0
Build the Client
.\build.bat
I have had a cloned repo in my lab and tried to build the Client right away after pulling updates. No success.
I have just went through the procedure and got the Client built.
0 -
Hi Andrey Terentyev ,
Really thanks for getting back with detailed help! We appreciate it!
means the Visual Studio has been installed without "Desktop development for C++".
We are pretty sure we checked those boxes while installing Visual Studio as it was clearly mentioned in the readme file. But here's a look into the tools we have when I open the tools window as per your screenshot.c

These tools are you see on the right pane are already installed(therefore the "Modify" button does not appears next to "Close" button, it only appears when you check a new item in the list, and then the download+install starts when you press "Modify").
As per the my list, I could see MSVC v143 already there.Do you see any gap here?
0 -
Hello,Do you see any gap here?I don't.Everything looks fine.0
-
Hi,
In order to build the client from vms_5.0 you need MSVC v141 been installed in Visual Studio.

Since the time the thread was created, several bugs have been fixed. Please pull the latest changes
0
Please sign in to leave a comment.
Comments
4 comments