arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth
Hello
Recently when I cross compiling the bluetoot test programm,I get the
problem below:
# arm-linux-gcc -o bluetest bluetest.c -lbluetooth
arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth
collect2: ld returned 1 exit status
But if I use gcc to compile ,that works correctly:
gcc -o bluetest bluetest.c -lbluetooth
My bluetooth lib is put below:
[root@feiyinziiu lib]# pwd
/usr/local/lib
[root@feiyinziiu lib]# ls
alsa-lib libbluetooth.a libbluetooth.so libbluetooth.so.1.0.25 libbluetooth.so.2.11.2
bluetooth libbluetooth.la libbluetooth.so.1 libbluetooth.so.2 pkgconfig
What can I do ?
Thank you.
|