pasky / pachi

A fairly strong Go/Baduk/Weiqi playing program
http://pachi.or.cz/
GNU General Public License v2.0
514 stars 117 forks source link

Can't compile pachi with DCNN option #56

Closed emdio closed 8 years ago

emdio commented 8 years ago

This seems very similar to issue 54.

Till a couple months ago I was able to compile the DCNN version of pachi, but it doesn't work anymore.

On my system, caffe.hpp is located at /opt/caffe/include/caffe/caffe.hpp, and I set CAFFE_PREFIX of Makefile as /opt/caffe/include/ or similar variants.

The make command gives place to:

[CXX] dcnn.cpp dcnn.cpp:13:27: fatal error: caffe/caffe.hpp: No such file or directory

include <caffe/caffe.hpp>

                       ^

compilation terminated. make: *\ [Makefile.lib:78: dcnn.o] Error 1

emdio commented 8 years ago

If I use the file plced at https://github.com/pasky/pachi/files/404123/Makefile.txt and use CAFFE_PREFIX=/opt/caffe/ then I get a different error:

[CXX] dcnn.cpp In file included from /opt/caffe//include/caffe/caffe.hpp:7:0, from dcnn.cpp:13: /opt/caffe//include/caffe/blob.hpp:9:34: fatal error: caffe/proto/caffe.pb.h: No such file or directory

include "caffe/proto/caffe.pb.h"

                              ^

compilation terminated. make: *\ [Makefile.lib:78: dcnn.o] Error 1

emdio commented 8 years ago

Ok, after googling the previous error it seems to be related to creating the caffe.pb.h manually, which doesn't seem to have anything to do with pachi's Makefile at all.

https://github.com/muupan/dqn-in-the-caffe/issues/3

So I guess this issue can be closed.