folkertvanheusden / wav-to-midi

Converts a pcm sound file (e.g. .wav) to a midi file (.mid)
Apache License 2.0
2 stars 5 forks source link

Following instructions in Readme cmake fails #3

Open lacostenycoder opened 1 year ago

lacostenycoder commented 1 year ago

Seems the instructions in README are missing a step or something is broken.

➜  wav-to-midi git:(master) git submodule update --init --recursive 
Submodule 'midifile' (https://github.com/craigsapp/midifile.git) registered for path 'midifile'
Cloning into '/home/lance/dev/open_source/wav-to-midi/midifile'...
Submodule path 'midifile': checked out 'de6aa0c8f82f9dff29b62dba013a65c9034d633d'
➜  wav-to-midi git:(master) take build                                       
➜  build git:(master) cmake ../                
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at midifile/CMakeLists.txt:3 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file humdrum.h
-- Looking for include file humdrum.h - not found
-- Looking for include file sys/io.h
-- Looking for include file sys/io.h - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'sndfile'
--   No package 'sndfile' found
CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
  CMakeLists.txt:26 (pkg_check_modules)
folkertvanheusden commented 1 year ago

Did you install libsndfile1-dev libfftw3-dev?

On Sat, Oct 22, 2022 at 3:29 PM Lance Jordan @.***> wrote:

Seems the instructions in README are missing a step or something is broken.

➜ wav-to-midi git:(master) git submodule update --init --recursive

Submodule 'midifile' (https://github.com/craigsapp/midifile.git) registered for path 'midifile'

Cloning into '/home/lance/dev/open_source/wav-to-midi/midifile'...

Submodule path 'midifile': checked out 'de6aa0c8f82f9dff29b62dba013a65c9034d633d'

➜ wav-to-midi git:(master) take build

➜ build git:(master) cmake ../

-- The C compiler identification is GNU 9.4.0

-- The CXX compiler identification is GNU 9.4.0

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

CMake Warning (dev) at midifile/CMakeLists.txt:3 (project):

Policy CMP0048 is not set: project() command manages VERSION variables.

Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy

command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

PROJECT_VERSION

PROJECT_VERSION_MAJOR

PROJECT_VERSION_MINOR

This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for include file unistd.h

-- Looking for include file unistd.h - found

-- Looking for include file humdrum.h

-- Looking for include file humdrum.h - not found

-- Looking for include file sys/io.h

-- Looking for include file sys/io.h - found

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")

-- Checking for module 'sndfile'

-- No package 'sndfile' found

CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):

A required package was not found

Call Stack (most recent call first):

/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)

CMakeLists.txt:26 (pkg_check_modules)

— Reply to this email directly, view it on GitHub https://github.com/folkertvanheusden/wav-to-midi/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUN5IWYBOLMYNGTXYRZON23WEPT2VANCNFSM6AAAAAARL3EWHU . You are receiving this because you are subscribed to this thread.Message ID: @.***>