In the directory ./gr-bluetooth/python
try changing the line import bluetooth.swig as bluetooth to import _gr_bluetooth as bluetooth in the file qa_gr_bluetooth_multi_sniffer.py -- Cinaed On 01/30/2018 05:03 PM, Suman Bhunia wrote: > Hi, > > I want to use gr-bluetooth to sniff packets. I have installed > gnuradio3.7.9, uhd on Ubuntu 16.04. I am encountering some error > installing gr-bluetooth it. When I use the cmake command, I obtain the > following output: > > > -- The CXX compiler identification is GNU 5.4.0 > -- The C compiler identification is GNU 5.4.0 > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Detecting CXX compile features > -- Detecting CXX compile features - done > -- Check for working C compiler: /usr/bin/cc > -- Check for working C compiler: /usr/bin/cc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Detecting C compile features > -- Detecting C compile features - done > -- Build type not specified: defaulting to release. > -- Boost version: 1.58.0 > -- Found the following Boost libraries: > -- filesystem > -- system > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") > Checking for GNU Radio Module: RUNTIME > -- Checking for module 'gnuradio-runtime' > -- Found gnuradio-runtime, version 3.7.9 > * INCLUDES=/usr/include > * > > LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so > -- Found GNURADIO_RUNTIME: > > /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so > > GNURADIO_RUNTIME_FOUND = TRUE > Checking for GNU Radio Module: BLOCKS > -- Checking for module 'gnuradio-blocks' > -- Found gnuradio-blocks, version 3.7.9 > * INCLUDES=/usr/include > * > > LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-blocks.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so > -- Found GNURADIO_BLOCKS: > > /usr/lib/x86_64-linux-gnu/libgnuradio-blocks.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so > > GNURADIO_BLOCKS_FOUND = TRUE > Checking for GNU Radio Module: FILTER > -- Checking for module 'gnuradio-filter' > -- Found gnuradio-filter, version 3.7.9 > * INCLUDES=/usr/include > * > > LIBS=/usr/lib/x86_64-linux-gnu/libgnuradio-filter.so;/usr/lib/x86_64-linux-gnu/libgnuradio-fft.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so > -- Found GNURADIO_FILTER: > > /usr/lib/x86_64-linux-gnu/libgnuradio-filter.so;/usr/lib/x86_64-linux-gnu/libgnuradio-fft.so;/usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so;/usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so > > GNURADIO_FILTER_FOUND = TRUE > -- Checking for module 'cppunit' > -- Found cppunit, version 1.13.2 > -- Found CPPUNIT: /usr/lib/x86_64-linux-gnu/libcppunit.so;dl > -- Found LIBBTBB: /usr/lib/x86_64-linux-gnu/libbtbb.so > -- > -- Checking for module SWIG > -- Found SWIG version 3.0.8. > -- Found SWIG: /usr/bin/swig3.0 > -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so > (found suitable version "2.7.12", minimum required is "2") > -- Found PythonInterp: /usr/bin/python2 (found suitable version > "2.7.12", minimum required is "2") > -- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE > -- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Success > CMake Warning (dev) at > /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrTest.cmake:45 > (get_target_property): > Policy CMP0026 is not set: Disallow use of the LOCATION target > property. > Run "cmake --help-policy CMP0026" for policy details. Use the > cmake_policy > command to set the policy and suppress this warning. > > The LOCATION property should not be read from target > "gnuradio-bluetooth". > Use the target name directly with add_custom_command, or use the > generator > expression $<TARGET_FILE>, as appropriate. > > Call Stack (most recent call first): > python/CMakeLists.txt:44 (GR_ADD_TEST) > This warning is for project developers. Use -Wno-dev to suppress it. > > CMake Warning (dev) at > /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrTest.cmake:45 > (get_target_property): > Policy CMP0045 is not set: Error on non-existent target in > get_target_property. Run "cmake --help-policy CMP0045" for policy > details. > Use the cmake_policy command to set the policy and suppress this > warning. > > get_target_property() called with non-existent target > "/usr/bin/python2". > Call Stack (most recent call first): > python/CMakeLists.txt:44 (GR_ADD_TEST) > This warning is for project developers. Use -Wno-dev to suppress it. > > CMake Warning (dev) at > /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrTest.cmake:45 > (get_target_property): > Policy CMP0045 is not set: Error on non-existent target in > get_target_property. Run "cmake --help-policy CMP0045" for policy > details. > Use the cmake_policy command to set the policy and suppress this > warning. > > get_target_property() called with non-existent target > "/home/iot3/gr-bluetooth/python/qa_gr_bluetooth_multi_sniffer.py". > Call Stack (most recent call first): > python/CMakeLists.txt:44 (GR_ADD_TEST) > This warning is for project developers. Use -Wno-dev to suppress it. > > -- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") > -- Configuring done > -- Generating done > -- Build files have been written to: /home/iot3/gr-bluetooth/build > > > > Output of 'make' command: > > > [ 4%] Building CXX object > lib/CMakeFiles/gnuradio-bluetooth.dir/tun.cc.o > <http://gnuradio-bluetooth.dir/tun.cc.o> > [ 8%] Building CXX object > lib/CMakeFiles/gnuradio-bluetooth.dir/multi_block.cc.o > <http://gnuradio-bluetooth.dir/multi_block.cc.o> > [ 12%] Building CXX object > lib/CMakeFiles/gnuradio-bluetooth.dir/multi_hopper_impl.cc.o > <http://gnuradio-bluetooth.dir/multi_hopper_impl.cc.o> > [ 16%] Building CXX object > lib/CMakeFiles/gnuradio-bluetooth.dir/multi_LAP_impl.cc.o > <http://gnuradio-bluetooth.dir/multi_LAP_impl.cc.o> > [ 20%] Building CXX object > lib/CMakeFiles/gnuradio-bluetooth.dir/multi_sniffer_impl.cc.o > <http://gnuradio-bluetooth.dir/multi_sniffer_impl.cc.o> > [ 25%] Building CXX object > lib/CMakeFiles/gnuradio-bluetooth.dir/multi_UAP_impl.cc.o > <http://gnuradio-bluetooth.dir/multi_UAP_impl.cc.o> > [ 29%] Building CXX object > lib/CMakeFiles/gnuradio-bluetooth.dir/packet_impl.cc.o > <http://gnuradio-bluetooth.dir/packet_impl.cc.o> > [ 33%] Building CXX object > lib/CMakeFiles/gnuradio-bluetooth.dir/piconet_impl.cc.o > <http://gnuradio-bluetooth.dir/piconet_impl.cc.o> > [ 37%] Linking CXX shared library libgnuradio-bluetooth.so > [ 37%] Built target gnuradio-bluetooth > Scanning dependencies of target gr_bluetooth_swig_doc > [ 37%] Built target gr_bluetooth_swig_doc > Scanning dependencies of target _gr_bluetooth_swig_tag > [ 41%] Building CXX object > swig/CMakeFiles/_gr_bluetooth_swig_tag.dir/_gr_bluetooth_swig_tag.cpp.o > [ 45%] Linking CXX executable _gr_bluetooth_swig_tag > [ 45%] Built target _gr_bluetooth_swig_tag > [ 50%] Generating gr_bluetooth.tag > Scanning dependencies of target gr_bluetooth_swig_2d0df > [ 54%] Building CXX object > swig/CMakeFiles/gr_bluetooth_swig_2d0df.dir/gr_bluetooth_swig_2d0df.cpp.o > [ 58%] Linking CXX executable gr_bluetooth_swig_2d0df > Swig source > /home/iot3/gr-bluetooth/include/gr_bluetooth/packet.h:148: Warning > 314: 'print' is a python keyword, renaming to '_print' > /home/iot3/gr-bluetooth/include/gr_bluetooth/packet.h:241: Warning > 314: 'print' is a python keyword, renaming to '_print' > /home/iot3/gr-bluetooth/include/gr_bluetooth/packet.h:332: Warning > 314: 'print' is a python keyword, renaming to '_print' > [ 58%] Built target gr_bluetooth_swig_2d0df > Scanning dependencies of target _gr_bluetooth > [ 62%] Building CXX object > swig/CMakeFiles/_gr_bluetooth.dir/gr_bluetoothPYTHON_wrap.cxx.o > [ 66%] Linking CXX shared module _gr_bluetooth.so > [ 75%] Built target _gr_bluetooth > Scanning dependencies of target pygen_swig_d9cb6 > [ 79%] Generating gr_bluetooth.pyc > [ 83%] Generating gr_bluetooth.pyo > [ 87%] Built target pygen_swig_d9cb6 > Scanning dependencies of target pygen_python_b3a7c > [ 91%] Generating __init__.pyc > [ 95%] Generating __init__.pyo > [ 95%] Built target pygen_python_b3a7c > Scanning dependencies of target pygen_apps_89140 > [100%] Shebangin btrx > [100%] Built target pygen_apps_89140 > > > > When I used make test command, I got the following output: > > Test project /home/iot3/gr-bluetooth/build > Start 1: qa_gr_bluetooth_multi_sniffer > 1/1 Test #1: qa_gr_bluetooth_multi_sniffer ....***Failed 0.07 sec > > 0% tests passed, 1 tests failed out of 1 > > Total Test time (real) = 0.07 sec > > The following tests FAILED: > 1 - qa_gr_bluetooth_multi_sniffer (Failed) > Errors while running CTest > Makefile:127: recipe for target 'test' failed > make: *** [test] Error 8 > > > I was wondering if anyone could help me what would be a probable > solution might be. > > Thanks, > Suman > > > > > > > > > > > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
