Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling under Mac OS X #18

Closed
agprimatic opened this issue Aug 25, 2014 · 2 comments
Closed

Compiling under Mac OS X #18

agprimatic opened this issue Aug 25, 2014 · 2 comments

Comments

@agprimatic
Copy link

Hi,

I successfully built your code on my Linux platform, but when I try to compile it on OS X, I get this error:

$ go get github.com/bemasher/rtlamr

github.com/bemasher/fftw

ld: library not found for -lfftw3
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The fftw3 library is installed, but on my OS X system, libfftw3 is in /opt/local/lib, and I don't know how to add that path to the build procedure.

Any ideas of how to specify a library search path? If it were C and a Makefile, then I could find where to add the library directory. But I'm not very familiar with go.

Thanks,

Ag Primatic

@bemasher
Copy link
Owner

Adding -L/opt/local/lib to fftw.go should do what you want. Let me know if it works.

@agprimatic
Copy link
Author

Yes, that got me past the "library not found issue". Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants