Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt creator cant find library! Please help.

$
0
0
I installed rtl-sdr libraries by: git clone git://git.osmocom.org/rtl-sdr.git cd rtl-sdr autoreconf -i ./configure --enable-driver-detach make sudo make install sudo make install-udev-rules Im using ubuntu(32 bit) on virtualbox. I am trying to add them to my Qt creator project but it CANT find the rtlsdr library!! The library is located in */usr/local/lib/librtlsdr.so and I have tried adding the following to my .pro file LIBS += -L/usr/local/lib -lrtlsdr INCLUDEPATH +=usr/local/lib Errors: 21:23:55: Running steps for project qt-test...   21:23:55: Configuration unchanged, skipping qmake step.   21:23:55: Starting: "/usr/bin/make"   /home/luis/qt-bbb/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link=/home/luis/qt-bbb/tslib/lib -Wl,-rpath,/opt/qt-arm/lib -o qt-test main.o mainwindow.o moc_mainwindow.o -L/home/luis/qt-bbb/tslib/lib -L/opt/qt-arm/lib -L/home/luis/qt-arm/rtl-sdr/build/src/ -lrtlsdr -lQtGui -L/opt/qt-arm/lib -L/home/luis/qt-bbb/tslib/lib -lQtNetwork -lQtCore -lpthread   /home/luis/qt-bbb/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: *skipping incompatible /home/luis/qt-arm/rtl-sdr/build/src//librtlsdr.so when searching for -lrtlsdr*   /home/luis/qt-bbb/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: *skipping incompatible /home/luis/qt-arm/rtl-sdr/build/src//librtlsdr.a when searching for -lrtlsdr*   Makefile:105: recipe for target 'qt-test' failed   /home/luis/qt-bbb/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lrtlsdr   collect2: error: ld returned 1 exit status   make: *** [qt-test] Error 1   21:23:55: The process "/usr/bin/make" exited with code 2. Im using ubuntu 32bit and verified the libraries are 32 bit so i dont know why it cant find them or why its giving me “skipping incompatible” message. I also tried adding them by right clicking on the .pro->add library but still cant find them.

Viewing all articles
Browse latest Browse all 2113

Trending Articles