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

compile failed #2

Open
849631323 opened this issue Apr 6, 2021 · 2 comments
Open

compile failed #2

849631323 opened this issue Apr 6, 2021 · 2 comments

Comments

@849631323
Copy link

hi ,i clone your repo,and accorrding to your compile command ,but it came out errors
my protobuf is 3.6.1 and ubuntu is 18.04
and use bazel build //... --cxxopt='-std=c++11" also get the same error ,like in attached file

can you give some advise .thanks

compile.txt

@lucasjinreal
Copy link

In file included from ./cyber/common/global_data.h:23:0,
                 from cyber/transport/common/endpoint.cc:19:
bazel-out/k8-fastbuild/bin/cyber/proto/cyber_conf.pb.h:592:73: error: invalid use of incomplete type 'class apollo::cyber::proto::CyberConfig'
 inline ::apollo::cyber::proto::PerfConf* CyberConfig::mutable_perf_conf() {
                                                                         ^
In file included from ./cyber/common/global_data.h:23:0,
                 from cyber/transport/common/endpoint.cc:19:
bazel-out/k8-fastbuild/bin/cyber/proto/cyber_conf.pb.h:63:7: note: forward declaration of 'class apollo::cyber::proto::CyberConfig'
 class CyberConfig;
       ^~~~~~~~~~~
In file included from ./cyber/common/global_data.h:23:0,
                 from cyber/transport/common/endpoint.cc:19:
bazel-out/k8-fastbuild/bin/cyber/proto/cyber_conf.pb.h:596:93: error: invalid use of incomplete type 'class apollo::cyber::proto::CyberConfig'
 inline void CyberConfig::set_allocated_perf_conf(::apollo::cyber::proto::PerfConf* perf_conf) {
                                                                                             ^
In file included from ./cyber/common/global_data.h:23:0,
                 from cyber/transport/common/endpoint.cc:19:
bazel-out/k8-fastbuild/bin/cyber/proto/cyber_conf.pb.h:63:7: note: forward declaration of 'class apollo::cyber::proto::CyberConfig'
 class CyberConfig;
       ^~~~~~~~~~~
In file included from cyber/transport/common/endpoint.cc:19:0:
./cyber/common/global_data.h:88:15: error: field 'config_' has incomplete type 'apollo::cyber::proto::CyberConfig'
   CyberConfig config_;
               ^~~~~~~
In file included from ./cyber/common/global_data.h:23:0,
                 from cyber/transport/common/endpoint.cc:19:
bazel-out/k8-fastbuild/bin/cyber/proto/cyber_conf.pb.h:63:7: note: forward declaration of 'class apollo::cyber::proto::CyberConfig'
 class CyberConfig;

@Just1045523143
Copy link

@849631323 same problems, from your compile file, the error is from protobuf version. Have you solved 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