Building on Windows 10

   497   1   1
User Avatar
Member
2 posts
Joined: March 2016
Offline
I'm attempting to build houdini engine for Maya 2014. I'm trying to follow the instructions found on https://github.com/sideeffects/HoudiniEngineForMaya [github.com] but the example is for Linux. I thought the way to make it on Windows would look like:

cmake -DHoudiniEngine_ROOT='C:\Program Files\Side Effects Software\Houdini 16.0.736' -DMaya_ROOT='C:\Program Files\Autodesk\Maya2014' -DCMAKE_INSTALL_PREFIX=../install-maya2014 -DMAYA_VERSION=2014

But then I get an error:

The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
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 at CMakeLists.txt:3 (project):
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 "C:/code/HoudiniEngineForMaya/CMakeFiles/CMakeOutput.log".
See also "C:/code/HoudiniEngineForMaya/CMakeFiles/CMakeError.log".
User Avatar
Member
816 posts
Joined: Sept. 2013
Offline
CMake seems to have trouble finding the MSVC compiler.

depperm
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).

As the error message suggests, I believe you need to run cmakefrom inside the Visual Studio Command Prompt (vcvarsall.bat). This should allows cmaketo find the compiler that you want to use.
Andrew / アンドリュー
  • Quick Links