Seilim / CaffeLink

Mathematica library link wrapper for BVLC/Caffe
20 stars 6 forks source link

Installation problem #1

Open lgmendes opened 9 years ago

lgmendes commented 9 years ago

Hi,

Can you help me building the CaffeLink. When I try I found the following error: caffelink_problem

I have build the Caffe without GPU. The edited make file is makefile_caffelink

Thank you

All my best

Seilim commented 9 years ago

Hi, this should be solved by adding CPU_ONLY option to makefile: CXXFLAGS=-c -Wall -DCPU_ONLY. Now even CaffeLink will be compiled without GPU support. Also, make sure you initialize it with "UseGPU"->False in Mathematica.

lgmendes commented 9 years ago

Thanks!:+1: Now I have another problem: caffelink_error2

can you help me ?

Thank you

Seilim commented 9 years ago

Yeah, that is because you have Caffe rc2 or newer. And I apparently did not push an update. I think I did not feel like changing examples and fixing broken parsing of caffe.proto back then. Oh well, I'm going to check what I have and probably create a new branch for now.

lgmendes commented 9 years ago

Thank you!!

Seilim commented 9 years ago

Ok, Caffe rc2 branch is ready. Net definition generator and examples are still rc1 though. More info in read me.

lgmendes commented 9 years ago

Thank you!! :+1: That problem is solved. However I found another problem: caffelink_rc2_problem

I will try to figure out the solution

Seilim commented 9 years ago

Are you on Os x? There are a bit different dependencies. If so, please try: make -f Makefile.osx

lgmendes commented 9 years ago

Problem solved. :+1: Makefile.osx works well. In my case I had only to change to the libc++ (Mac OS 10.9).

The libcaffeLink.dylib was generated and I copy to a folder on $LibraryPath. At this point I have problems in the initialisation of the CaffeLink in Mathematica: caffelink_pro

Seilim commented 9 years ago

Now Mathematica has probably trouble finding some libraries CaffeLink needs. LibraryLink```$LibraryError might tell you what it is. I guess it is libcaffe.dylib. I am not familiar with osx so I can only give you this hint.

lgmendes commented 9 years ago

:+1: :+1: install_name_tool -id full/path/to/lib/to/load libfile.dylib
solve the problem. ImageNet.nb and libLink-test.nb work without any problem.

Thank you again!