Open mwlock opened 4 years ago
Dear,
Please, follow the steps added to the README file.
Kind Regards,
Felipe
On Tue, Oct 13, 2020 at 6:47 AM Matthew Lock notifications@github.com wrote:
Hi @zz4fap https://github.com/zz4fap 😄
Could I please get some advice as to how to build the planform and example files?
I have already installed protobufs and zmq according to communicator https://github.com/zz4fap/intelligent-spectrum-sharing/tree/master/communicator
I have now followed the following steps:
git clone https://github.com/zz4fap/intelligent-spectrum-sharing/
cd intelligent-spectrum-sharing
mkdir build
cd build
cmake ../
sudo make
The message is rather long but I am faced with the following errors:
[ 1%] Built target logging [ 2%] Building CXX object communicator/cpp/CMakeFiles/communicator_cpp.dir/CommManager.cpp.o In file included from /home/srslte/intelligent-spectrum-sharing/communicator/cpp/interf.pb.h:39:0, from /home/srslte/intelligent-spectrum-sharing/communicator/cpp/Message.h:11, from /home/srslte/intelligent-spectrum-sharing/communicator/cpp/CommManager.h:16, from /home/srslte/intelligent-spectrum-sharing/communicator/cpp/CommManager.cpp:13: /home/srslte/intelligent-spectrum-sharing/communicator/cpp/interAI.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
error This file was generated by an older version of protoc which is
^~~~~ /home/srslte/intelligent-spectrum-sharing/communicator/cpp/interAI.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
error incompatible with your Protocol Buffer headers. Please
^~~~~ /home/srslte/intelligent-spectrum-sharing/communicator/cpp/interAI.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
error regenerate this file with a newer version of protoc.
^~~~~ In file included from /usr/include/c++/4.8/cstdlib:72:0, from /usr/include/c++/4.8/ext/string_conversions.h:41, from /usr/include/c++/4.8/bits/basic_string.h:2815, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from /home/srslte/intelligent-spectrum-sharing/communicator/cpp/CommManager.cpp:7: /usr/include/c++/7/stdlib.h:38:12: error: ‘std::abort’ has not been declared using std::abort; ^~~~~ /usr/include/c++/7/stdlib.h:39:12: error: ‘std::atexit’ has not been declared using std::atexit; ^
~/usr/include/c++/7/stdlib.h:40:12: error: ‘std::exit’ has not been declared using std::exit; ^~~~ ...I have attached the rest in a file - error.txt https://github.com/zz4fap/intelligent-spectrum-sharing/files/5370470/error.txt
Thank you in advance!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zz4fap/intelligent-spectrum-sharing/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKRLQ6CVSG26D7K5A66ADDSKQOZHANCNFSM4SOP7TAA .
Hi @zz4fap , thank you for the response!
I have followed these steps but get the same error. Can I ask what version of Google Protobuf you compiled this with ?
Maybe it would fix this error:
error: #error This file was generated by an older version
Dear Matthew,
It's been a while since I last compiled that code... unfortunately, I don't remember the version anymore...
However, it seems the error is related to a mismatch of the protobuf compiler. I think the problem reported below might help you:
https://github.com/cartographer-project/cartographer_ros/issues/625
Have a look and let me know if that helped you.
Kind Regards,
Felipe
Em Qua, 14 de out de 2020 18:54, Matthew Lock notifications@github.com escreveu:
Hi @zz4fap https://github.com/zz4fap , thank you for the response!
I have followed these steps but get the same error. Can I ask what version of Google Protobuf you compiled this with ?
Maybe it would fix this error:
error: #error This file was generated by an older version
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zz4fap/intelligent-spectrum-sharing/issues/1#issuecomment-708680931, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKRLQZSKJWQU4DCYACJVELSKYMZHANCNFSM4SOP7TAA .
Hi Felipe
Thank you for the suggestion 😄
You are certainly correct I did some digging in the code and it seems the version of Protobuf that needs to be compiled is v3.3.0.
This fixed the error relating to error: #error This file was generated by an older version
I am still getting the errors related to:
/usr/include/c++/7/stdlib.h:38:12: error: ‘std::abort’ has not been declared
using std::abort;
I will continue working on figuring out what is going wrong here and will get back to you !
Kind regards, Matthew
Dear Filipe
I have managed to fix the errors relating to:
/usr/include/c++/7/stdlib.h:38:12: error: ‘std::abort’ has not been declared using std::abort;`
by downgrading my gcc and g++ compiler versions to 4.8.5 (how to downgrade to gcc/g++ 4.8.5)
Unfortunately I run into a new error when building:
[ 49%] Linking C executable chest_test_ul
../../libsrslte.so.001.004: undefined reference to communicator_send_phy_stat_message ../../libsrslte.so.001.004: undefined reference to communicator_free ../../libsrslte.so.001.004: undefined reference to communicator_make
Further details on the error are attached here
Do you perhaps have any advice?
I am planning on traveling to a research lab lab soon to do tests on coexistence of LTE and Wi-Fi and would love you get your platform working for these tests!
Regards, Matt
Hi @zz4fap 😄
Could I please get some advice as to how to build the planform and example files?
I have already installed protobufs and zmq according to communicator
I have now followed the following steps:
The message is rather long but I am faced with the following errors:
I have attached the rest in a file - error.txt
Thank you in advance!