vult-dsp / vult

Vult is a transcompiler well suited to write high-performance DSP code
https://vult-dsp.github.io/vult
Other
490 stars 25 forks source link

Window puredata example build fail #38

Open ABadoil opened 3 years ago

ABadoil commented 3 years ago

Hello! I try to build on Windows 10 the puredata examples. I installed Cmake (v3.20.2) and vultc (v0.4.13) , the both are in my path. When I try to run the command cmake ../, I have this log : Any one could help me ?

../repos/vult/examples/build (master)
$ cmake ../
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- 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.
modlfo commented 3 years ago

It seems like you don't have a terminal with the Visual Studio (C++) tools. Check this page that shows how to open one https://docs.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2019

ABadoil commented 3 years ago

Thanks for your help, I install Visual Studio and the tools C++ CMAKE tools, and the cmake ../ command is working fine :

\repos\vult\examples\build>cmake ../ -Wno-dev
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- Vult compiler found in C:/Users/doiba/AppData/Roaming/npm/vultc
-- Configuring done
-- Generating done
-- Build files have been written to: /repos/vult/examples/build

But I don't have any Makefiles after to run make command. Here the command log :

vult\examples\build>make
make: *** No targets specified and no makefile found.  Stop.

Any other suggestion to go further ? :)