szagoruyko / torch-caffe-binding

Use Caffe in Torch7
BSD 2-Clause "Simplified" License
63 stars 19 forks source link

Installation Issue #2

Closed sbrugman closed 9 years ago

sbrugman commented 9 years ago

When installing the Torch binding for Caffe (https://github.com/szagoruyko/torch-caffe-binding) I get the following error: tmp/luarocks_caffe-1.0-0-4572/torch-caffe-binding/caffe.cpp:5:27: fatal error: caffe/caffe.hpp: File or directory doesn't exists #include "caffe/caffe.hpp"

I've Caffe installed, in CPU only mode. Is this error related? Does anyone knows how to solve this? There is only very little documentation. Looks like I've missed something in the installation of Caffe.

szagoruyko commented 9 years ago

Are you sure you're installing the rock providing the full path to your caffe installation? CAFFE_DIR=/home/user/caffe luarocks install caffe

sbrugman commented 9 years ago

This time I get the following error: /tmp/luarockscaffe-1.0-0-4007/torch-caffe-binding/caffe.cpp: In function ‘void init(void*, const char, const char)’: /tmp/luarockscaffe-1.0-0-4007/torch-caffe-binding/caffe.cpp:24:55: error: no matching function for call to ‘caffe::Net::Net(std::string)’ Net net_ = new Net(string(param_file));

szagoruyko commented 9 years ago

caffe code is being changed without backward compatibility, let me check if it can be fixed fast

szagoruyko commented 9 years ago

ok it was easy, try to install again

sbrugman commented 9 years ago

Thank you