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 when building ns3gym #14081

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

protobuf_generate command not found when building ns3gym #14081

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 https://github.com/tkn-tub/ns3-gym. 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". 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.

@sgxcy sgxcy added the untriaged auto added to all issues by default when created. label Sep 14, 2023
@sgxcy
Copy link
Author

sgxcy commented Sep 14, 2023

I forgot to say that the I got the error messages after running "./ns3 build"

@hlopko
Copy link
Contributor

hlopko commented Nov 3, 2023

I suspect the instructions over at ns3-gym are incorrect, your tkn-tub/ns3-gym#90 is the right place to report this issue.

@hlopko hlopko closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2023
@googleberg googleberg removed the untriaged auto added to all issues by default when created. label Feb 17, 2024
@tmtrangnguyen
Copy link

Hello,
I also have the same error. Some help from the authors would be appreciated.
Thanks.

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