Protobuf can't be found via cmake - Installation problem via cmake

11,224 views
Skip to first unread message

marma...@gmail.com

unread,
May 24, 2018, 9:47:33 AM5/24/18
to Protocol Buffers
Hi everyone
I am trying to install a software which uses grpc, and which in turn needs protobuf.
Everything is installed via cmake.
cmake version 3.11.2
Protobuf version 3.5.1

I am receiving the following error when trying to install it:

CMake Error at cmake/protobuf.cmake:55 (find_package):
  Could not find a package configuration file provided by "Protobuf" with any
  of the following names:

    ProtobufConfig.cmake
    protobuf-config.cmake

  Add the installation prefix of "Protobuf" to CMAKE_PREFIX_PATH or set
  "Protobuf_DIR" to a directory containing one of the above files.  If
  "Protobuf" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)

-- Configuring incomplete, errors occurred!

Has anyone seen this error already?
Any suggestions on how to solve it?

Many many thanks in advance!

Eric Li

unread,
Mar 21, 2019, 8:35:50 AM3/21/19
to Protocol Buffers
have you solved this problem?
I see this ,but I can find the answer.

在 2018年5月24日星期四 UTC+8下午9:47:33,marma...@gmail.com写道:

Yara Amin

unread,
Apr 9, 2019, 7:17:19 AM4/9/19
to Protocol Buffers
did you solve it? im facing the same problem

Eric Li

unread,
Apr 9, 2019, 8:59:22 AM4/9/19
to Protocol Buffers
I have solve it.
1.enter the "protobuf/cmake/" dir.
2.mkdir build. protobuf/cmake/build
3.cmake ..
4.make && make install

then the proobuf.cmake config will be installed in cmake's dir.

在 2019年4月9日星期二 UTC+8下午7:17:19,Yara Amin写道:

abdelrahman hamdy

unread,
Apr 9, 2019, 9:03:16 AM4/9/19
to Eric Li, Protocol Buffers
MORE EXPLANATION FOR STEP 3 AND 4 PLEASE??

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

abdelrahman hamdy

unread,
Apr 9, 2019, 9:05:12 AM4/9/19
to Protocol Buffers
More explanation for step 3 and 4 please?

Eric Li

unread,
Apr 9, 2019, 9:09:37 AM4/9/19
to Protocol Buffers
just do the build the cmake to install the system's cmake environment

在 2019年4月9日星期二 UTC+8下午9:05:12,abdelrahman hamdy写道:

abdelrahman hamdy

unread,
Apr 9, 2019, 9:13:41 AM4/9/19
to Eric Li, Protocol Buffers
can send screenshots please .....

--

Zaigham abbas

unread,
Jun 27, 2019, 10:26:06 PM6/27/19
to Protocol Buffers
Hey..I dont have a "protobuf/cmake/" dir. Do I just create a new folder in the protobuf dir and proceed?

Protobuff folder.png



I used this command to install protobuff on my linux mint OS: "sudo apt-get install protobuf-compiler"...
Am I supposed to install in a different way or do something else?

陈南

unread,
Oct 21, 2019, 1:43:29 AM10/21/19
to Protocol Buffers
you can 

sudo find / -name cmake | grep protobuf

find it (you download sourcce file at first)

i'm not good ai English.

在 2019年6月28日星期五 UTC+8上午10:26:06,Zaigham abbas写道:
Reply all
Reply to author
Forward
0 new messages