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

Building using cmake is not working #70

Closed
mariuszbarczak opened this issue May 9, 2022 · 6 comments
Closed

Building using cmake is not working #70

mariuszbarczak opened this issue May 9, 2022 · 6 comments

Comments

@mariuszbarczak
Copy link

When trying to build the project using cmake, I've got the following error:

bash: line 1: /home/mariusz/git/libbpf-bootstrap/examples/c/../../tools/bpftool: No such file or directory
make[2]: *** [CMakeFiles/bootstrap.dir/build.make:74: bootstrap.skel.h] Error 127
make[2]: *** Deleting file 'bootstrap.skel.h'
make[1]: *** [CMakeFiles/Makefile2:145: CMakeFiles/bootstrap.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@mariuszbarczak mariuszbarczak changed the title Building using is not working cmake Building using cmake is not working May 9, 2022
@mariuszbarczak
Copy link
Author

I added ExternalProject_Add in examples/c/CMakeLists.txt for bpftool, it started working. Is it acceptable?

@JackyYin
Copy link
Contributor

JackyYin commented May 17, 2022

Greeting,
I think it's because the path to bpftool executable is not updated in the CMakeList.txt.
May I make a PR to fix this, or you prefer to do it by yourself?

@anakryiko
Copy link
Member

@danobi can you please take a look if you get a chance? But either way, @JackyYin, please go ahead and submit your fix, thank you!

@danobi
Copy link
Member

danobi commented May 26, 2022

The submitted fix lgtm. Sorry, not checking my libbpf email folder that often.

@anakryiko
Copy link
Member

Closed by #73

@mariuszbarczak
Copy link
Author

Thanks Guys for fixing this.

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

4 participants