mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

windows cmake problem

Open supercloud76 opened this issue 11 years ago • 5 comments

I put protobuf under the mxnet directory and successfully built the binary protoc.exe and set PROTOBUF_SRC_ROOT_FOLDER to .\mxnet\protobuf-master\install however, when I configure mxnet project using cmake, it pops up the following errors:

Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY) CMake Error at ps-lite/cmake/ProtoBuf.cmake:13 (message): Could not find PROTOBUF Compiler Call Stack (most recent call first): ps-lite/CMakeLists.txt:16 (include)

Could anybody help? Thanks a lot.

supercloud76 avatar Oct 31 '15 04:10 supercloud76

You can disable the protobuf dep by simply not compile with ps-lite by default. @mli Maybe we want to switch off ps-lite dep on default compile on windows?

tqchen avatar Oct 31 '15 05:10 tqchen

You can just uncheck the option "USE_DIST_KVSTORE" in CMake GUI. But this error is disgusting for me and take me a few hours.

loveisp avatar Oct 31 '15 06:10 loveisp

use advanced mode ,you can set PROTOBUF_*.and it work ok

yajiedesign avatar Oct 31 '15 08:10 yajiedesign

Thanks! advanced mode works for me.

supercloud76 avatar Oct 31 '15 12:10 supercloud76

@tqchen I had the same problem in windows.Can Mxnet compile with ps-lite\camke\ProtoBuf.cmake in windows now?(check the option"USE_DIST_KVSTORE")

cupermanrose avatar Dec 16 '15 07:12 cupermanrose