Ask Your Question

Revision history [back]

Opencv 2.4.10 with cuda 6.5 some libraries are not found

When i tried this command

g++ -ggdb pkg-config --cflags opencv esempio.c pkg-config --libs opencv

to compile my " esempio.c" i get as result this:

/usr/bin/ld: cannot find -lcufft /usr/bin/ld: cannot find -lnpps /usr/bin/ld: cannot find -lnppi /usr/bin/ld: cannot find -lnppc

but the libraries exist because when i go in /usr/local/cuda-6.5/lib i get:

libcublas_device.a libcudadevrt.a libcufft.so libcufftw.so.6.5 libcuinj32.so.6.5.14 libcurand_static.a libnppc.so libnppi.so.6.5 libnpps.so.6.5.14 stubs libcublas.so libcudart.so libcufft.so.6.5 libcufftw.so.6.5.14 libculibos.a libcusparse.so libnppc.so.6.5 libnppi.so.6.5.14 libnpps_static.a libcublas.so.6.5 libcudart.so.6.5 libcufft.so.6.5.14 libcufftw_static.a libcurand.so libcusparse.so.6.5 libnppc.so.6.5.14 libnppi_static.a libnvToolsExt.so libcublas.so.6.5.14 libcudart.so.6.5.14 libcufft_static.a libcuinj32.so libcurand.so.6.5 libcusparse.so.6.5.14 libnppc_static.a libnpps.so libnvToolsExt.so.1 libcublas_static.a libcudart_static.a libcufftw.so libcuinj32.so.6.5 libcurand.so.6.5.14 libcusparse_static.a libnppi.so libnpps.so.6.5 libnvToolsExt.so.1.0.0

what can i do to solve it?