briand / gr-scan

Frequency scanner for gnuradio. Updated/forked from http://www.techmeology.co.uk/gr-scan/
GNU General Public License v3.0
16 stars 2 forks source link

Problems with MAKE #1

Open enetsec opened 3 years ago

enetsec commented 3 years ago

Hello Briand, I hope you are well. I'm having trouble compiling the gr-scan on my raspberry 3, the following error occurs.

root@raspberrypi:~/gr-scan# make

clang++ -DVERSION="\"gr-scan 2012082301\"" -std=c++11 -Wall -I/usr/local/include -lgnuradio-pmt -lgnuradio-runtime -lgnuradio-blocks -lgnuradio-fft -lgnuradio-filter -lgnuradio-osmosdr -lboost_system -O2 -Wno-unused-function -o gr-scan main.cpp

g++-4.9 -DVERSION="\"gr-scan 2012082301\"" -std=c++11 -Wall -I/usr/local/include -lgnuradio-pmt -lgnuradio-runtime -lgnuradio-blocks -lgnuradio-fft -lgnuradio-filter -lgnuradio-osmosdr -lboost_system -O2 -Wno-unused-function -o gr-scan main.cpp /usr/bin/ld: warning: libboost_system.so.1.62.0, needed by //lib/arm-linux-gnueabihf/libgnuradio-iqbalance.so.3.7.11, may conflict with libboost_system.so.1.67.0 /usr/bin/ld: /tmp/ccQbW9dF.o: in function make_scanner_sink(boost::shared_ptr<osmosdr::source>, unsigned int, double, double, double, double, double, double, unsigned int, double, double, double)': main.cpp:(.text+0x1c4): undefined reference togr::block::block(std::string const&, boost::shared_ptr, boost::shared_ptr)' /usr/bin/ld: /tmp/ccQbW9dF.o: in function TopBlock::TopBlock(double, double, double, double, double, double, double, unsigned int, double, double, double)': main.cpp:(.text._ZN8TopBlockC2Edddddddjddd[_ZN8TopBlockC5Edddddddjddd]+0x4c): undefined reference togr::top_block::top_block(std::string const&)' /usr/bin/ld: main.cpp:(.text._ZN8TopBlockC2Edddddddjddd[_ZN8TopBlockC5Edddddddjddd]+0xb4): undefined reference to `osmosdr::source::make(std::string const&)' collect2: error: ld returned 1 exit status make: *** [Makefile:25: gr-scan] Error 1 root@raspberrypi:~/gr-scan#

if possible can you help me with this? thanks

harshjoshi01 commented 1 year ago

Hello Briand, I hope you are well. I'm having trouble compiling the gr-scan on my raspberry 3, the following error occurs.

root@raspberrypi:~/gr-scan# make #clang++ -DVERSION=""gr-scan 2012082301"" -std=c++11 -Wall -I/usr/local/include -lgnuradio-pmt -lgnuradio-runtime -lgnuradio-blocks -lgnuradio-fft -lgnuradio-filter -lgnuradio-osmosdr -lboost_system -O2 -Wno-unused-function -o gr-scan main.cpp g++-4.9 -DVERSION=""gr-scan 2012082301"" -std=c++11 -Wall -I/usr/local/include -lgnuradio-pmt -lgnuradio-runtime -lgnuradio-blocks -lgnuradio-fft -lgnuradio-filter -lgnuradio-osmosdr -lboost_system -O2 -Wno-unused-function -o gr-scan main.cpp /usr/bin/ld: warning: libboost_system.so.1.62.0, needed by //lib/arm-linux-gnueabihf/libgnuradio-iqbalance.so.3.7.11, may conflict with libboost_system.so.1.67.0 /usr/bin/ld: /tmp/ccQbW9dF.o: in function make_scanner_sink(boost::shared_ptr<osmosdr::source>, unsigned int, double, double, double, double, double, double, unsigned int, double, double, double)': main.cpp:(.text+0x1c4): undefined reference togr::block::block(std::string const&, boost::shared_ptrgr::io_signature, boost::shared_ptrgr::io_signature)' /usr/bin/ld: /tmp/ccQbW9dF.o: in function TopBlock::TopBlock(double, double, double, double, double, double, double, unsigned int, double, double, double)': main.cpp:(.text._ZN8TopBlockC2Edddddddjddd[_ZN8TopBlockC5Edddddddjddd]+0x4c): undefined reference togr::top_block::top_block(std::string const&)' /usr/bin/ld: main.cpp:(.text._ZN8TopBlockC2Edddddddjddd[_ZN8TopBlockC5Edddddddjddd]+0xb4): undefined reference to `osmosdr::source::make(std::string const&)' collect2: error: ld returned 1 exit status make: *** [Makefile:25: gr-scan] Error 1 root@raspberrypi:~/gr-scan#

if possible can you help me with this? thanks

i am also getting error 127 in Makefile, and i think it is about g++ compiler version. i am currently using debian based linux in which g++ version 10.2 and it requires 4.9. so i don't know what to do? should i need to downgrade compiler version?