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

MacOS puredata examples build fail #43

Closed shakfu closed 1 year ago

shakfu commented 2 years ago

I built vult.native and also have vult in my path but the make part fails (see below)

$ mkdir build
$ cd build/
$ 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 AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Vult compiler found in $HOME/vult/vultc.native
-- Configuring done
-- Generating done
-- Build files have been written to: $HOME/vult/examples/build
zod:build sa$ make
make[2]: *** No rule to make target `osc/phase.vult', needed by `phase.cpp'.  Stop.
make[1]: *** [CMakeFiles/phase_code.dir/all] Error 2
make: *** [all] Error 2
$ 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.

CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Vult compiler found in $HOME/vult/vultc.native
-- Configuring done
-- Generating done
-- Build files have been written to: $HOME/vult/examples/build
$ make
make[2]: *** No rule to make target `osc/phase.vult', needed by `phase.cpp'.  Stop.
make[1]: *** [CMakeFiles/phase_code.dir/all] Error 2
make: *** [all] Error 2
modlfo commented 2 years ago

Hi @shakfu ,

I have fixed the compilation issue. However, for Vult v1 I have changed the way PD objects are created. If you want to give a try to the new style I can prepare a short guide.

shakfu commented 2 years ago

Hi @modlfo

Thanks for your response. Sure I would bet happy to try the new style of pd object creation.

S

shakfu commented 2 years ago

Just tried it again with the new file. Works well: all examples compile fine without errors.

Thanks! 👍