milvus-io / milvus-sdk-cpp

C++ SDK for Milvus 2.0
Apache License 2.0
35 stars 21 forks source link

compile error #235

Closed Lllll921 closed 1 year ago

Lllll921 commented 1 year ago

Have this error when compiling:

error This file was generated by an older version of protoc which is

error: #error incompatible with your Protocol Buffer headers. Please

error regenerate this file with a newer version of protoc.

But I only have a protoc version on my computer. Does anyone has this problem?

matrixji commented 1 year ago

It seems to conflict with your pre-installed Protobuf, could you provide more information about it, e.g. the operation system name and which protobuf version you have installed? It will help us to reproduce it and than to check how to fix it in out CmakeLists

matrixji commented 1 year ago

I raise a PR for always using compiled protoc from the source, you could try it with #236, or update the master source after the PR merged.

Lllll921 commented 1 year ago

Update: I tried to edit the code in your PR and it works! Thanks a lot!

Lllll921 commented 1 year ago

One more question, When I try "make install", the library seems doesn't write to usr/local folder. And the install_manifest.txt file is empty. Could you check the reason for this? Thanks!