lua---audio
lua---audio copied to clipboard
install problem
After I installed the first two package,when I use” luarocks install https://raw.githubusercontent.com/soumith/lua---audio/master/audio-0.1-0.rockspec“ , it comes error like
Scanning dependencies of target audio [ 50%] Building C object CMakeFiles/audio.dir/audio.c.o Linking C shared module libaudio.so /usr/bin/ld: /usr/local/lib/libfftw3.a(mapflags.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libfftw3.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[2]: *** [libaudio.so] Error 1 make[1]: *** [CMakeFiles/audio.dir/all] Error 2 make: *** [all] Error 2
Error: Build error: Failed building.
I tried to figure this out but failed.
I ran into the same issue - the fix that worked for me was to recompile fftw3 from source and enable shared libraries:
wget http://www.fftw.org/fftw-3.3.6-pl2.tar.gz
tar -xzf fftw-3.3.6-pl2.tar.gz
cd fftw-3.3.6-pl2
./configure --enable-shared
make
sudo make install
After that try to install audio again.
@Quasimondo I have not the root in the server, so I follow your suggest to install fftw3 from source. But when I install audio again, it still come errors:
SOX_INCLUDE_DIR: SOX_INCLUDE_DIR-NOTFOUND
SOX_LIBRARIES: SOX_LIBRARIES-NOTFOUND
FFTW_INCLUDE_DIR: FFTW_INCLUDE_DIR-NOTFOUND
FFTW_LIBRARIES: FFTW_LIBRARIES-NOTFOUND
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FFTW_INCLUDE_DIR
used as include directory in directory /tmp/luarocks_audio-0.1-0-5736/lua---audio
used as include directory in directory /tmp/luarocks_audio-0.1-0-5736/lua---audio
FFTW_LIBRARIES
linked by target "audio" in directory /tmp/luarocks_audio-0.1-0-5736/lua---audio
SOX_INCLUDE_DIR
used as include directory in directory /tmp/luarocks_audio-0.1-0-5736/lua---audio
used as include directory in directory /tmp/luarocks_audio-0.1-0-5736/lua---audio
SOX_LIBRARIES
linked by target "audio" in directory /tmp/luarocks_audio-0.1-0-5736/lua---audio
linked by target "sox" in directory /tmp/luarocks_audio-0.1-0-5736/lua---audio
I try to figure this out but failed.