software installation - How does one get shared libraries and header files to install Zita-at1 - Ask Ubuntu


i trying install program called zita-at1. in installation guide says:

to install, cd source directory, make, sudo make install, make clean.

to build version, need shared libraries

libclthreads-2.4.0   libclxclient-3.9.0        

and corresponding header files. available at

http://kokkinizita.linuxaudio.org/linuxaudio/downloads

to install /usr instead of /usr/local modify definition of 'prefix' in makefile.

i not know meant "make, make install or make clean". neither how "get" share libraries need. these installed using terminal command?

i have downloaded header files, not know put them or them. need decoding these instructions

search find ubuntu package mentions desired library

apt-file search libclthreads 

it responds

libclthreads-dev: /usr/lib/x86_64-linux-gnu/libclthreads.so libclthreads-dev: /usr/share/doc/libclthreads-dev/changelog.debian.gz libclthreads-dev: /usr/share/doc/libclthreads-dev/copyright libclthreads2: /usr/lib/x86_64-linux-gnu/libclthreads.so.2 libclthreads2: /usr/lib/x86_64-linux-gnu/libclthreads.so.2.4.0 libclthreads2: /usr/share/doc/libclthreads2/changelog.debian.gz libclthreads2: /usr/share/doc/libclthreads2/copyright 

packages ending -dev indicate contain header files install using

sudo apt-get install libclthreads-dev 

which responds verbiage including

preparing unpack .../libclthreads2_2.4.0-5_amd64.deb ... 

which confirms matching release ... similar other library

apt-file search  libclxclient 

you can see mentions -dev pick one

sudo apt-get install libclxclient-dev  

now after downloading , expanding zita-at1 go source code dir , compile it

cd zita-at1-0.4.0/source  make 

it fails with

stens@bodhisattva ~/other_src/zita-at1-0.4.0/source $ make g++ -o2 -ffast-math -wall -mmd -mp -march=native -mmd -mp -dversion=\"0.4.0\" -dshared=\"/usr/local/share/zita-at1\" -i/usr/x11r6/include `freetype-config --cflags`  -c -o zita-at1.o zita-at1.cc in file included jclient.h:28:0,                  zita-at1.cc:29: retuner.h:27:38: fatal error: zita-resampler/resampler.h: no such file or directory compilation terminated. <builtin>: recipe target 'zita-at1.o' failed make: *** [zita-at1.o] error 1 

so discovered missing header lives in zita-resampler listed @ same link provide lets first install ... once downloaded , expanded compile

cd zita-resampler-1.6.0/libs  make 

which gives output

g++ -wall -fpic -o2 -ffast-math -march=native -i. -d_reentrant -d_posix_pthread_semantics  -c -o resampler.o resampler.cc g++ -wall -fpic -o2 -ffast-math -march=native -i. -d_reentrant -d_posix_pthread_semantics  -c -o vresampler.o vresampler.cc g++ -wall -fpic -o2 -ffast-math -march=native -i. -d_reentrant -d_posix_pthread_semantics  -c -o resampler-table.o resampler-table.cc g++ -wall -fpic -o2 -ffast-math -march=native -i. -d_reentrant -d_posix_pthread_semantics  -c -o cresampler.o cresampler.cc g++ -shared  -wl,-soname,libzita-resampler.so.1 -o libzita-resampler.so.1.6.0 resampler.o vresampler.o resampler-table.o cresampler.o  

now install it

cd zita-resampler-1.6.0/libs sudo make install 

so go our original failed make , retry upstream library installed

cd zita-at1-0.4.0/source  make 

which generates executable file

zita-at1 

done ... if when issue make says not found install compile tools issuing

sudo apt-get install build-essential  

which give make plus other compile tools


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User