ps-lite icon indicating copy to clipboard operation
ps-lite copied to clipboard

problem with clion

Open hbsun2113 opened this issue 7 years ago • 4 comments

I have the problem when i import the project with clion. image My gcc version is: image Can u tell me how to solve the problem?

hbsun2113 avatar Mar 06 '18 07:03 hbsun2113

@mli

hbsun2113 avatar Mar 06 '18 07:03 hbsun2113

@hbsun2113 I have the same problem. Have you solved it?

kimihe avatar Jun 04 '18 14:06 kimihe

I have got it. It seems that if you want to use CMakeList (CMake) to build the project, some preliminaries need to be done. Here are the solutions under both MacOS and Ubuntu. In MacOS: "> brew install protobuf"; In Ubuntu: "> sudo apt-get install libprotobuf-dev protobuf-compiler". After that, you can do the source codes development (in CLion) as you like. Enjoy it! I hope this can make sense.

kimihe avatar Jun 04 '18 15:06 kimihe

Note that this will get you incompatible versions of zeromq and protobuf. For example libprotobuf-dev on Ubuntu will install 2.6.1 while ps-lite now uses 3.5.1.

It's not yet clear to me how to get the project working with Clion, the problem seems to lie in the way that find_package works. The project uses a combination of Makefile and CMake so that could be the root cause of the issue.

thvasilo avatar Jun 27 '18 21:06 thvasilo