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

Compilation Error during Make firmware - Probably Ubuntu version mismatch ? workaround inside. #16

Open
antoineclaval opened this issue Mar 13, 2021 · 0 comments

Comments

@antoineclaval
Copy link

Hi,

This is more a question than a issue.

When I follow the steps to compile the firmware, I see a compilation error.

I see the note about running it on Ubuntu 18.04. I have a 20.04, so I gave it a try.

I ran the prerequisite step, and the ./fetch_deps.sh. It went fine, no error.

When I do 'make firmware' I see the error below

./libs/backward-cpp/backward.hpp:211:10: fatal error: bfd.h: No such file or directory
  211 | #include <bfd.h>
      |          ^~~~~~~
compilation terminated.
make: *** [Makefile:26: firmware] Error 1

And then

/usr/bin/ld: cannot find -lboost_filesystem
/usr/bin/ld: cannot find -lboost_system
collect2: error: ld returned 1 exit status
make: *** [Makefile:26: firmware] Error 1

I installed additional dependencies to work around that in 20.04. You guys want a documentation MR for that ?

Long story short : On 20.04, to compile the binary for ./firmware you will need :

apt-get install binutils-dev
apt-get install libboost-filesystem-dev
sudo apt-get install libboost-filesystem-dev
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

1 participant