bemasher / rtlamr

An rtl-sdr receiver for Itron ERT compatible smart meters operating in the 900MHz ISM band.
GNU Affero General Public License v3.0
2.21k stars 249 forks source link

Compiling under Mac OS X #18

Closed agprimatic closed 10 years ago

agprimatic commented 10 years ago

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 commented 10 years ago

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

agprimatic commented 10 years ago

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