c - How to build FFTW in Ubuntu? -


i have been working on gesture recognition project. use xkin gesture recogntion library https://github.com/fpeder/xkin. compile xkin had install fftw (http://www.fftw.org/download.html) build fftw with
./configure
make
make install

but when build xkin got error

/usr/bin/ld: /usr/local/lib/libfftw3.a(lt4-problem.o): relocation r_x86_64_32 against.rodata.str1.1' can not used when making shared object; recompile -fpic

/usr/local/lib/libfftw3.a: error adding symbols: bad value collect2: error: ld returned 1 exit status
make[2]: * [lib/posture/libposture.so] error 1
make[1]: *
[lib/posture/cmakefiles/posture.dir/all] error 2
make: *** [all] error 2`

do this

./configure --enable-shared
sudo make cflags=-fpic
sudo make install

this solve problem.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -