tkn-tub / ns3-gym

ns3-gym - The Playground for Reinforcement Learning in Networking Research
GNU General Public License v2.0
524 stars 198 forks source link

protobuf_generate command not found #90

Open sgxcy opened 1 year ago

sgxcy commented 1 year ago

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 commented 1 year ago

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

sgxcy commented 1 year ago

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

No. I just decided to use other tools.

ArtyomGolikov commented 10 months ago

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