tkn-tub / ns3-gym

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

fatal error: google/protobuf/port_def.inc: No such file or directory #37

Open BetterYong opened 3 years ago

BetterYong commented 3 years ago

In file included from ../src/opengym/model/container.h:27:0, from ../src/opengym/model/container.cc:23: ../src/opengym/model/messages.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory

include <google/protobuf/port_def.inc>

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

Waf: Leaving directory `/home/zsy/ns3-gym-master/build' Build failed -> task in 'ns3-opengym' failed with exit status 1 (run with -v to display more information

when i run ./waf build ,meet the question !how can i solve the problem?

chihfanhsu commented 3 years ago

You can check the version of "protoc" when you execute ./waf configure. It should be 3.6.1.

Some output of ./waf configure Checking for program 'protoc' : /usr/bin/protoc
Checking for protoc version : 3.6.1

The error occurs when the version of protoc is 3.7.x.