Closed gyaresu closed 8 years ago
Is there any fix? I'm having the same issue with OSX 10.11.2.
I found this post in another project: https://github.com/wjwwood/serial/issues/24
where someone suggest to remove the linking to the library for OSX systems.
Could the same be done for this project as well?
I managed to compile the code!
find and edit the following files in the src directory:
flexbook:kalibrate-hackrf samuelheinrich$ ls -lha src/ total 1160 drwxr-xr-x 35 samuelheinrich staff 1.2K Jan 6 19:09 . drwxr-xr-x 32 samuelheinrich staff 1.1K Jan 6 19:09 .. drwxr-xr-x 10 samuelheinrich staff 340B Dec 30 16:36 .deps -rw-r--r-- 1 samuelheinrich staff 30K Jan 6 19:09 Makefile -rw-r--r-- 1 samuelheinrich staff 431B Jan 6 19:09 Makefile.am -rw-r--r-- 1 samuelheinrich staff 33K Jan 6 19:09 Makefile.in
you'll find the following line in each file:
flexbook:src samuelheinrich$ cat Makefile | grep lrt kal_LDADD = $(FFTW3_LIBS) $(LIBHACKRF_LIBS) -lrt
flexbook:src samuelheinrich$ cat Makefile.am | grep lrt kal_LDADD = $(FFTW3_LIBS) $(LIBHACKRF_LIBS) -lrt
flexbook:src samuelheinrich$ cat Makefile.in | grep l kal_LDADD = $(FFTW3_LIBS) $(LIBHACKRF_LIBS) -lrt
remove "-lrt" behind each line.
flexbook:kalibrate-hackrf samuelheinrich$ make /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in src make[2]: Nothing to be done for `all'. flexbook:kalibrate-hackrf samuelheinrich$
flexbook:kalibrate-hackrf samuelheinrich$ sudo make install
Password:
Making install in src
/opt/local/bin/gmkdir -p '/usr/local/bin'
/opt/local/bin/ginstall -c kal '/usr/local/bin'
make[2]: Nothing to be done for install-data-am'. make[2]: Nothing to be done for
install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
flexbook:kalibrate-hackrf samuelheinrich$
flexbook:kalibrate-hackrf samuelheinrich$ kal --help kal: illegal option -- - kalibrate v0.4.1-hackrf, Copyright (c) 2010, Joshua Lackey modified for use with hackrf devices, Copyright (c) 2014, scateu@gmail.com Usage: GSM Base Station Scan: kal <-s band indicator> [options]
Clock Offset Calculation:
kal <- f frequency | -c channel> [options]
Where options are: -s band to scan (GSM850, GSM-R, GSM900, EGSM, DCS, PCS) -f frequency of nearby GSM base station -c channel of nearby GSM base station -b band indicator (GSM850, GSM-R, GSM900, EGSM, DCS, PCS) -a rf amplifier enable -g vga (bb) gain in dB, 0-40dB, 8dB step -l lna (if) gain in dB, 0-62dB, 2dB step -d rtl-sdr device index -e initial frequency error in ppm -v verbose -D enable debug messages -h help flexbook:kalibrate-hackrf samuelheinrich$
Thanks for your report, and sorry for my delay.
I have fixed the configure scripts, adding an OS X detection.
Besides, I have added a build instruction in homebrew environment in INSTALL.homebrew.
bootstrap
andconfigure
seem to complete successfully.But then I get the error on
make
. It looks like I'm missing a library.make
errorHackRF info
OS X 10.10.4
Any ideas? Thanks!