Installing Caffe on Yosemite

Step 1:

Follow instructions for installing Caffe for 10.9 as on http://caffe.berkeleyvision.org/installation.html

Make sure you uninstall all the required packages in brew, modify the formula and then install the packages.

Step 2:

Edit Makefile look for ifneq ($(findstring 10.9, $(shell sw_vers -productVersion)),) andreplace 10.9 to 10.10

Step 3:

Fix BLAS_INCLUDE and Framework in LD_FLAGS

else ifeq ($(OSX), 1)

                # OS X packages atlas as the vecLib framework

                # BLAS_INCLUDE ?= /System/Library/Frameworks/vecLib.framework/Versions/Current/Headers/

                BLAS_INCLUDE ?= /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers

                LIBRARIES += cblas

                #LDFLAGS += -framework vecLib

                LDFLAGS += -framework Accelerate

        endif

Step 4:

run make and it should compile fine.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s