acids-ircam / nn_tilde

Other
321 stars 36 forks source link

unable to build pure data version of nn~ on linux #60

Open alexdrymonitis opened 1 year ago

alexdrymonitis commented 1 year ago

I'm trying to build nn~ on linux, but I'm stuck at this step:

cmake ../src/ -DCMAKE_PREFIX_PATH=/home/alex/Applications/libtorch -DPUREDATA_INCLUDE_DIR=/home/alex/Applications/puredata/pd-0.54-0/src -DCMAKE_BUILD_TYPE=Release

where I get the following output:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

CMake Deprecation Warning at backend/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

CMake Deprecation Warning at frontend/puredata/nn_tilde/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

fatal: not a git repository (or any of the parent directories): .git
CMake Error at frontend/puredata/nn_tilde/CMakeLists.txt:20 (message):
  message called with incorrect number of arguments

-- Configuring incomplete, errors occurred!

Any help appreciated!

alexdrymonitis commented 1 year ago

A little update here. I removed the directory and cloned from Git (I can't remember where I got the source files before, but probably not Git). It seems to build now, with the following output:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at backend/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

-- Found Torch: /home/alex/Applications/libtorch/lib/libtorch.so  
CMake Deprecation Warning at frontend/puredata/nn_tilde/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

v1.5.5-11-gde5dc31
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/alex/Documents/Pd/externals/nn_tilde/build

But I can't find any executable Pd object. I'm searching my entire home directory for an nn~.pd_linux file, but there's none. Any ideas?