godotengine / godotengine/godot

Building with Visual Studio does not work if Scons is not on the path

Open
#96,992 10 comments 0 reactions 0 assignees View on GitHub
discussion topic:buildsystem
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

74de05a01c8716a42d4e3427f607d7bea76b35e5

### System information

Windows 11

### Issue description

The solution generated with `scons platform=windows vsproj=yes dev_build=yes` will not build unless `scons` is available on the path. I am using conda environments with python as is recommended. I only have scons installed in one of the virtual environments. Building normally with scons this way works fine, however if I generate an sln file and try to build it using Visual Studio the build fails because it can't find scons. Adding scons to the path solves the issue but that is more a workaround than an actual solution.

### Steps to reproduce

- run `scons platform=windows vsproj=yes dev_build=yes` in a conda venv
- try to build

### Minimal reproduction project (MRP)

-

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.