dmlc / ps-lite

A lightweight parameter server interface

Home Page:http://ps-lite.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem with clion

hbsun2113 opened this issue · 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 I have the same problem. Have you solved it?

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.

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.