xiph / rnnoise

Recurrent neural network for audio noise reduction
BSD 3-Clause "New" or "Revised" License
3.98k stars 889 forks source link

compile error #63

Open Angus1996 opened 5 years ago

Angus1996 commented 5 years ago

I have met an error when I was trying to compile it. My os is the ubuntu subsystem in Windows10

I type the "./autogen.sh",but I got the following result: Updating build configuration files for rnnoise, please wait.... ./autogen.sh: 10: ./autogen.sh: autoreconf: not found

Can anyone help me?

contribu commented 5 years ago

try cmake. cmake works in windows (visual studio), mac (xcode), linux (make, ninja)

CMakeLists.txt example

cmake_minimum_required(VERSION 3.9)

project(rnnoise C CXX)

include_directories(
  include
  src
)

file(GLOB RNNOISE_SOURCES src/*.c)
message("RNNOISE_SOURCES: ${RNNOISE_SOURCES}")

add_executable(rnnoise_demo ${RNNOISE_SOURCES} examples/rnnoise_demo.c)
target_compile_definitions(rnnoise_demo PRIVATE TRAINING=0)

add_executable(denoise_training ${RNNOISE_SOURCES})
target_compile_definitions(denoise_training PRIVATE TRAINING=1)
wegylexy commented 4 years ago

Install autoreconf in Ubuntu WSL, and probably build-essentials too.

marmelade500 commented 1 year ago

I had the same error, the solution was this:

sudo apt-get install autoconf sudo apt-get install libtool automake

vell001 commented 2 weeks ago

brew install autoconf libtool automake

that my solution