echoprint-codegen icon indicating copy to clipboard operation
echoprint-codegen copied to clipboard

vecLib and OS X Yosemite

Open paullryan opened this issue 10 years ago • 4 comments

The vecLib dependency is no longer required and in fact causes issues in the makefile with OS X Yosemite and up. Removing the vecLib dependency and leaving just Accelerate will result in a successful build with Yosemite. I'm not sure how you want to upgrade the Makefile for this as it's not something easy to detect from the makefile. Maybe a move to autoconf?

For those hitting the compile error ld: framework not found vecLib change your Makefile for the libcodegen target to the following:

ifeq ($(UNAME),Darwin)
    libtool -dynamic -flat_namespace -install_name libcodegen.$(VERSION).dylib -lSystem -compatibility_version $(VERSION_COMPAT) \
        -macosx_version_min 10.6 -current_version $(VERSION) -o libcodegen.$(VERSION).dylib -undefined suppress \
        $(MODULES_LIB) -framework Accelerate
else
    $(CXX) -shared -fPIC -Wl,-soname,$(SONAME) -o $(LIBNAME).$(VERSION) $(MODULES_LIB) -lz
endif

paullryan avatar Nov 04 '14 20:11 paullryan

Thank you so much. Even reinstalling Command-line Tools didn't fix the problem. I was thinking of removing vecLib but was unsure since I'm unfamiliar with the codebase.

sreejithr avatar Feb 08 '15 19:02 sreejithr

@sreejithr Your very welcome, glad I could help.

paullryan avatar Feb 08 '15 19:02 paullryan

Thanks, it worked for me too! Should definitely be merged at some point ;-)

sarahmonod avatar Oct 05 '15 19:10 sarahmonod

thanks from me as well!

tbtommyb avatar Nov 26 '15 21:11 tbtommyb