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

protobuf_generate command not found #90

Open
sgxcy opened this issue Sep 14, 2023 · 3 comments
Open

protobuf_generate command not found #90

sgxcy opened this issue Sep 14, 2023 · 3 comments

Comments

@sgxcy
Copy link

sgxcy commented Sep 14, 2023

I am trying to build ns3gym following the instructions in the README. I have installed all the required packages, but I get the error message "-- protobuf_generate command not found -> use a local copy from /home/sgxcy1/ns-3-dev/contrib/opengym/protobuf-generate.cmake", after I run "./ns3 build". There are additional error messages printed out at the end of the building process, which I think is caused by the aforementioned error. The messages are as follows:

"
CMake Error at scratch/CMakeLists.txt:47 (add_executable):
Target "scratch_scratch-simulator" links to target "protobuf::libprotobuf"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
scratch/CMakeLists.txt:67 (create_scratch)

CMake Error at scratch/CMakeLists.txt:47 (add_executable):
Target "scratch_subdir_scratch-simulator-subdir" links to target
"protobuf::libprotobuf" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
Call Stack (most recent call first):
scratch/CMakeLists.txt:97 (create_scratch)
"

In case it matters, I am using Ubuntu 22.04 on Windows Subsystem for Linux. The protoc and cmake versions are as follows:

"
sgxcy1@DESKTOP-R887JOJ:~/ns-3-dev$ cmake --version
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
sgxcy1@DESKTOP-R887JOJ:~/ns-3-dev$ protoc --version
libprotoc 3.12.4
"

I wonder how to solve this problem urgently. I am stuck here for days. Thanks for any reply and potential solutions.

@jixiaofeng1999
Copy link

Hello, I have encountered the same problem as you. Have you resolved this issue

@sgxcy
Copy link
Author

sgxcy commented Sep 26, 2023

Hello, I have encountered the same problem as you. Have you resolved this issue

No. I just decided to use other tools.

@ArtyomGolikov
Copy link

Hello. I also want to know how to solve this problem

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

3 participants