CaffeOnSpark icon indicating copy to clipboard operation
CaffeOnSpark copied to clipboard

Unable to build on OS/X

Open javadba opened this issue 8 years ago • 4 comments

I updated the caffe-public/Makefile with the following:

    LIBRARY_DIRS += /usr/local/Cellar/[email protected]/2.5.0/lib  

With that change - the caffe-public now builds.

But the caffe-distri still does not: it fails here:

   ^
 [exec] ../caffe-public/distribute/include/caffe/data_transformer.hpp:141:8: note: candidate function not viable: no known conversion from 'vector<cv::Mat>' to 'const caffe::Datum' for 1st argument
 [exec]   void Transform(const Datum& datum, Dtype* transformed_data);
 [exec]        ^
 [exec] 1 error generated.

It looks like this were a problem with C++11 . What to do here? I have tried adding the following but makes no difference:

  CXXFLAGS +=  -std=c++11 -stdlib=libc++ -Wno-c++11-narrowing

Does anyone have this building on OS/X in CPU ONLY mode?

javadba avatar Mar 23 '17 00:03 javadba

CaffeOnSpark worked on OSX in the early days, not sure if it still does since we don't have such a use case, it has not been tested in OSX anymore. There is the tutorial from last year.

https://github.com/yahoo/CaffeOnSpark/wiki/GetStarted_standalone_osx

junshi15 avatar Mar 23 '17 04:03 junshi15

Naturally I have looked at that guide a few times. The error message is very specific and seems to do with C++ version 11. Which version of C++ was used at the time of that document?

javadba avatar Mar 23 '17 06:03 javadba

I don't remember the exact version, but it was pre-Sierra, either Yosemite or El Capitan.

junshi15 avatar Mar 23 '17 18:03 junshi15

Seems to compile on my latest OSX...ofcourse I get linker errors due to cudart not installed

On Thu, Mar 23, 2017 at 11:32 AM, Jun Shi [email protected] wrote:

I don't remember the exact version, but it was pre-Sierra, either Yosemite or El Capitan.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yahoo/CaffeOnSpark/issues/238#issuecomment-288819071, or mute the thread https://github.com/notifications/unsubscribe-auth/ACCTVcsaiGYtk6tIimNevnODNyZUeVMcks5rorq-gaJpZM4Ml_JF .

mriduljain avatar Mar 28 '17 03:03 mriduljain