[Newbie question] The confusion about direct make and using cmake to build grpc

21 views
Skip to first unread message

xiaona...@gmail.com

unread,
Aug 29, 2017, 4:27:58 AM8/29/17
to grpc.io
Hi all,

Greetings from me! I am a newbie of grpc, and a little confused about building.

From build from source, I check the compiling is like this:

$ cd grpc
$ git submodule update --init
$ make

But I also find CMakeLists.txt in the root directory. So I try the following "standard" cmake build flow: 

$ cd grpc
$ mkdir build
$ cd build
$ cmake ..
$ make
It also works.  

So could anyone help to explain the difference between these 2 kinds of building flow?

Thanks very much in advance!

Best Regards
Nan Xiao 

Noah Eisen

unread,
Aug 29, 2017, 10:08:59 AM8/29/17
to xiaona...@gmail.com, grpc.io
TL;DR: No, there should be no difference.

Longer answer:

Believe it or not there is a third way! We also support building with Bazel.

Makefile and Bazel are both official supported. CMake exists, and we maintain it, but there is no obligation that it will stay up to date. So I would suggest sticking to Bazel or Make.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/156c693c-1e5a-4301-ae4d-4295588fe20f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nan Xiao

unread,
Aug 29, 2017, 10:48:43 PM8/29/17
to Noah Eisen, grpc.io
Hi Noah,

Thanks for your response!

The thing is I use "make" method will generate build errors while
"cmake" not on my ArchLinux. So I just wonder whether there are
differences between 2 methods.
Best Regards
Nan Xiao
>> email to grpc-io+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages