Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with MAKE #1

Open
enetsec opened this issue Mar 22, 2021 · 1 comment
Open

Problems with MAKE #1

enetsec opened this issue Mar 22, 2021 · 1 comment

Comments

@enetsec
Copy link

enetsec commented Mar 22, 2021

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 to gr::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 to gr::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
Copy link

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 to gr::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 to gr::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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants