Closed joetester1 closed 10 years ago
Maybe try to add line:
at the beginning of the
lib/misc_utils/extract_system_info.h
file, compile again and report the result here.
Thanks, now getting this far: [ 28%] Building CXX object lib/CMakeFiles/gnuradio-gsm.dir/misc_utils/message_printer_impl.cc.o /root/Play/gr-gsm/lib/misc_utils/message_printer_impl.cc: In member function ‘void gr::gsm::message_printer_impl::message_print(pmt::pmt_t)’: /root/Play/gr-gsm/lib/misc_utils/message_printer_impl.cc:44:52: error: ‘printf’ was not declared in this scope make[2]: * [lib/CMakeFiles/gnuradio-gsm.dir/misc_utils/message_printer_impl.cc.o] Error 1 make[1]: * [lib/CMakeFiles/gnuradio-gsm.dir/all] Error 2 make: *\ [all] Error 2
Added #include stdio.h to lib/misc_utils/message_printer_impl.h, now compiles but get this
root@kali:~/Play/gr-gsm/apps# ./airprobe_rtlsdr.py
Traceback (most recent call last):
File "./airprobe_rtlsdr.py", line 18, in
-> But /usr/local/lib/libgnuradio-gsm.so exists, is there a path that needs added / edited? <-
W dniu 03.12.2014 o 21:22, joetester1 pisze:
Added #include to lib/misc_utils/message_printer_impl.h, now compiles but get this
root@kali:~/Play/gr-gsm/apps# ./airprobe_rtlsdr.py Traceback (most recent call last): File "./airprobe_rtlsdr.py", line 18, in import gsm File "/usr/local/lib/python2.7/dist-packages/gsm/init.py", line 45, in from gsm_swig import * File "/usr/local/lib/python2.7/dist-packages/gsm/gsm_swig.py", line 26, in _gsm_swig = swig_import_helper() File "/usr/local/lib/python2.7/dist-packages/gsm/gsm_swig.py", line 22, in swig_import_helper _mod = imp.load_module('_gsm_swig', fp, pathname, description) ImportError: libgnuradio-gsm.so: cannot open shared object file: No such file or directory -> But /usr/local/lib/libgnuradio-gsm.so exists, is there a path that needs added / edited?
— Reply to this email directly or view it on GitHub https://github.com/ptrkrysik/gr-gsm/issues/8#issuecomment-65483093.
Can you check if you have /usr/local/lib in libraries search path? For example on Ubuntu I have a file: /etc/ld.so.conf.d/libc.conf with following line inside: /usr/local/lib
Thanks. Ran ldconfig, and now compiles. Gettign this error when running though: root@kali:~/Play/gr-gsm/apps# ./airprobe_rtlsdr.py linux; GNU C++ version 4.7.2; Boost_104900; UHD_003.008.000-46-g5b706d29
Qt: Session management error: Authentication Rejected, reason : MIT-MAGIC-COOKIE-1 authentication rejected
gr-osmosdr v0.1.4-7-g20fd6a8c (0.1.5git) gnuradio 3.7.5.1
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
Exact sample rate is: 2000000.052982 Hz
Using Volk machine: avx_64_mmx_orc
Traceback (most recent call last):
File "./airprobe_rtlsdr.py", line 314, in
Please try to open airprobe_rtlsdr.grc file in gnuradio-companion and run it with F6.
Yes, that does something - see sdr output on screen.
Can you see messages content on the screen like on this video: https://www.youtube.com/watch?v=Eofnb7zr8QE ?
Yes, found a BS!
Thanks.
Can you tell me what exactly did you add to message_printer_impl.cc? I guess
but I want to be sure. Did you add anything else?
Just #include stdio.h
May want to change build script so does sudo ldconfog as well.
Get the following on make:
[ 3%] Building CXX object lib/CMakeFiles/gnuradio-gsm.dir/misc_utils/extract_system_info_impl.cc.o In file included from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:31:0: /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.h:68:7: error: ‘set’ in namespace ‘std’ does not name a type /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘void gr::gsm::extract_system_info_impl::process_bursts(pmt::pmt_t)’: /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:51:9: error: ‘set’ is not a member of ‘std’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:51:27: error: expected primary-expression before ‘,’ token /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:51:39: error: expected primary-expression before ‘>’ token /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:51:40: error: ‘::iterator’ has not been declared /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:51:40: note: suggested alternatives: In file included from /usr/include/c++/4.7/bits/stl_algobase.h:66:0, from /usr/include/c++/4.7/memory:64, from /usr/include/boost/config/no_tr1/memory.hpp:21, from /usr/include/boost/smart_ptr/shared_ptr.hpp:27, from /usr/include/boost/shared_ptr.hpp:17, from /usr/local/include/gnuradio/types.h:27, from /usr/local/include/gnuradio/runtime_types.h:27, from /usr/local/include/gnuradio/io_signature.h:27, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:27: /usr/include/c++/4.7/bits/stl_iterator_base_types.h:119:12: note: ‘std::iterator’ /usr/include/c++/4.7/bits/stl_iterator_base_types.h:119:12: note: ‘std::iterator’ In file included from /usr/include/boost/operators.hpp:86:0, from /usr/include/boost/date_time/time_duration.hpp:13, from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:16, from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13, from /usr/include/boost/date_time/posix_time/ptime.hpp:12, from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12, from /usr/include/boost/thread/thread_time.hpp:11, from /usr/include/boost/thread/locks.hpp:12, from /usr/include/boost/thread/pthread/mutex.hpp:12, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/local/include/gnuradio/thread/thread.h:26, from /usr/local/include/gnuradio/basic_block.h:31, from /usr/local/include/gnuradio/block.h:27, from /root/Play/gr-gsm/include/gsm/misc_utils/extract_system_info.h:28, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.h:26, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:31: /usr/include/boost/iterator.hpp:55:10: note: ‘boost::iterator’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:51:51: error: expected ‘;’ before ‘iter’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:54:12: error: ‘iter’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:54:20: error: ‘d_c0_channels’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:61:9: error: ‘d_c0_channels’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘void gr::gsm::extract_system_info_impl::process_sysinfo(pmt::pmt_t)’: /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:79:13: error: ‘set’ is not a member of ‘std’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:79:31: error: expected primary-expression before ‘,’ token /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:79:43: error: expected primary-expression before ‘>’ token /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:79:44: error: ‘::iterator’ has not been declared /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:79:44: note: suggested alternatives: In file included from /usr/include/c++/4.7/bits/stl_algobase.h:66:0, from /usr/include/c++/4.7/memory:64, from /usr/include/boost/config/no_tr1/memory.hpp:21, from /usr/include/boost/smart_ptr/shared_ptr.hpp:27, from /usr/include/boost/shared_ptr.hpp:17, from /usr/local/include/gnuradio/types.h:27, from /usr/local/include/gnuradio/runtime_types.h:27, from /usr/local/include/gnuradio/io_signature.h:27, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:27: /usr/include/c++/4.7/bits/stl_iterator_base_types.h:119:12: note: ‘std::iterator’ /usr/include/c++/4.7/bits/stl_iterator_base_types.h:119:12: note: ‘std::iterator’ In file included from /usr/include/boost/operators.hpp:86:0, from /usr/include/boost/date_time/time_duration.hpp:13, from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:16, from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13, from /usr/include/boost/date_time/posix_time/ptime.hpp:12, from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12, from /usr/include/boost/thread/thread_time.hpp:11, from /usr/include/boost/thread/locks.hpp:12, from /usr/include/boost/thread/pthread/mutex.hpp:12, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/local/include/gnuradio/thread/thread.h:26, from /usr/local/include/gnuradio/basic_block.h:31, from /usr/local/include/gnuradio/block.h:27, from /root/Play/gr-gsm/include/gsm/misc_utils/extract_system_info.h:28, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.h:26, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:31: /usr/include/boost/iterator.hpp:55:10: note: ‘boost::iterator’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:79:55: error: expected ‘;’ before ‘iter’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:81:16: error: ‘iter’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:81:24: error: ‘d_c0_channels’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:84:13: error: ‘d_c0_channels’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:95:13: error: ‘set’ is not a member of ‘std’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:95:31: error: expected primary-expression before ‘,’ token /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:95:43: error: expected primary-expression before ‘>’ token /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:95:44: error: ‘::iterator’ has not been declared /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:95:44: note: suggested alternatives: In file included from /usr/include/c++/4.7/bits/stl_algobase.h:66:0, from /usr/include/c++/4.7/memory:64, from /usr/include/boost/config/no_tr1/memory.hpp:21, from /usr/include/boost/smart_ptr/shared_ptr.hpp:27, from /usr/include/boost/shared_ptr.hpp:17, from /usr/local/include/gnuradio/types.h:27, from /usr/local/include/gnuradio/runtime_types.h:27, from /usr/local/include/gnuradio/io_signature.h:27, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:27: /usr/include/c++/4.7/bits/stl_iterator_base_types.h:119:12: note: ‘std::iterator’ /usr/include/c++/4.7/bits/stl_iterator_base_types.h:119:12: note: ‘std::iterator’ In file included from /usr/include/boost/operators.hpp:86:0, from /usr/include/boost/date_time/time_duration.hpp:13, from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:16, from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13, from /usr/include/boost/date_time/posix_time/ptime.hpp:12, from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12, from /usr/include/boost/thread/thread_time.hpp:11, from /usr/include/boost/thread/locks.hpp:12, from /usr/include/boost/thread/pthread/mutex.hpp:12, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/local/include/gnuradio/thread/thread.h:26, from /usr/local/include/gnuradio/basic_block.h:31, from /usr/local/include/gnuradio/block.h:27, from /root/Play/gr-gsm/include/gsm/misc_utils/extract_system_info.h:28, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.h:26, from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:31: /usr/include/boost/iterator.hpp:55:10: note: ‘boost::iterator’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:95:55: error: expected ‘;’ before ‘iter’ /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:97:16: error: ‘iter’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:97:24: error: ‘d_c0_channels’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:103:13: error: ‘d_c0_channels’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘virtual void gr::gsm::extract_system_info_impl::show()’: /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:108:38: error: ‘d_c0_channels’ was not declared in this scope /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘virtual std::vector gr::gsm::extract_system_info_impl::get_chans()’:
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:119:38: error: ‘d_c0_channels’ was not declared in this scope
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘virtual std::vector gr::gsm::extract_system_info_impl::get_lac()’:
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:132:38: error: ‘d_c0_channels’ was not declared in this scope
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘virtual std::vector gr::gsm::extract_system_info_impl::get_mnc()’:
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:144:38: error: ‘d_c0_channels’ was not declared in this scope
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘virtual std::vector gr::gsm::extract_system_info_impl::get_cell_id()’:
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:156:38: error: ‘d_c0_channels’ was not declared in this scope
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘virtual std::vector gr::gsm::extract_system_info_impl::get_pwrs()’:
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:169:38: error: ‘d_c0_channels’ was not declared in this scope
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc: In member function ‘virtual void gr::gsm::extract_system_info_impl::reset()’:
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:182:9: error: ‘set’ is not a member of ‘std’
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:182:27: error: expected primary-expression before ‘,’ token
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:182:39: error: expected primary-expression before ‘>’ token
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:182:40: error: ‘::iterator’ has not been declared
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:182:40: note: suggested alternatives:
In file included from /usr/include/c++/4.7/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.7/memory:64,
from /usr/include/boost/config/no_tr1/memory.hpp:21,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:27,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/local/include/gnuradio/types.h:27,
from /usr/local/include/gnuradio/runtime_types.h:27,
from /usr/local/include/gnuradio/io_signature.h:27,
from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:27:
/usr/include/c++/4.7/bits/stl_iterator_base_types.h:119:12: note: ‘std::iterator’
/usr/include/c++/4.7/bits/stl_iterator_base_types.h:119:12: note: ‘std::iterator’
In file included from /usr/include/boost/operators.hpp:86:0,
from /usr/include/boost/date_time/time_duration.hpp:13,
from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:16,
from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13,
from /usr/include/boost/date_time/posix_time/ptime.hpp:12,
from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12,
from /usr/include/boost/thread/thread_time.hpp:11,
from /usr/include/boost/thread/locks.hpp:12,
from /usr/include/boost/thread/pthread/mutex.hpp:12,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/local/include/gnuradio/thread/thread.h:26,
from /usr/local/include/gnuradio/basic_block.h:31,
from /usr/local/include/gnuradio/block.h:27,
from /root/Play/gr-gsm/include/gsm/misc_utils/extract_system_info.h:28,
from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.h:26,
from /root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:31:
/usr/include/boost/iterator.hpp:55:10: note: ‘boost::iterator’
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:182:51: error: expected ‘;’ before ‘iter’
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:186:13: error: ‘iter’ was not declared in this scope
/root/Play/gr-gsm/lib/misc_utils/extract_system_info_impl.cc:186:20: error: ‘d_c0_channels’ was not declared in this scope
make[2]: * [lib/CMakeFiles/gnuradio-gsm.dir/misc_utils/extract_system_info_impl.cc.o] Error 1
make[1]: * [lib/CMakeFiles/gnuradio-gsm.dir/all] Error 2
make: *\ [all] Error 2