AcademySoftwareFoundation / AcademySoftwareFoundation/rez

Unable to run rez on windows

Open
#909 1 comment 0 reactions 0 assignees View on GitHub
bug cmake documentation
Dominant language
Python
Stars
1.1k
Forks
374
Avg merge
9d 12h
Merged PRs (30d)
5

Description

Hi,

Can anyone tell me how to run rez on windows...?
I tried all the ways to run rez
* Followed rez wiki documentation
* installed cmake
* installed G++ compiler
but still I'm getting issue while running rez

I got this below error while building default "hello-world" package even after setting environmental path for gcc compiler
```
Executing: f:\projects\cmake-3.18.0-win64-x64\bin\cmake.exe -d F:\Temp\rez-master\example_packages\hello_world -Wno-dev -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -D_ECLIPSE_VERSION=4.3 --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX=c:\users\sunil kumar nerella\packages\hello_world\1.0.0 -DCMAKE_MODULE_PATH=%CMAKE_MODULE_PATH% -DCMAKE_BUILD_TYPE=Release -DREZ_BUILD_TYPE=local -DREZ_BUILD_INSTALL=1 -G NMake Makefiles
Not searching for unused variables given on the command line.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
The CMAKE_C_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error in CMakeLists.txt:
The CMAKE_CXX_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "F:/Temp/rez-master/example_packages/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "F:/Temp/rez-master/example_packages/hello_world/build/CMakeFiles/CMakeError.log".
10:07:36 ERROR BuildError: The cmake build system failed.
```

Please help me with this. Its very difficult to use REZ on windows

Thanks

Contributor guide

Open the contributing guide

Research direction

The report names the default example_packages/hello_world build and shows the CMake invocation using the NMake generator, but it names no repository file or test. Start by reproducing that Windows build with the documented setup and inspect how Rez selects CMake and the compiler environment. Done would require a confirmed Windows fix or clear documentation of the supported compiler setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.