tomojitakasu / RTKLIB

2.55k stars 1.62k forks source link

Building RTKLIB in OS X 10.10.5 #137

Closed chenosaurus closed 8 years ago

chenosaurus commented 8 years ago

Trying to compile the CLI tools on Mac OS X and running into some issues.

I've removed the '-lrt' from the makefile in str2str, but now the error is different:

cc str2str.o stream.o rtkcmn.o solution.o sbas.o geoid.o rcvraw.o novatel.o ublox.o ss2.o crescent.o skytraq.o gw10.o javad.o nvs.o binex.o rt17.o rtcm.o rtcm2.o rtcm3.o rtcm3e.o preceph.o streamsvr.o -lm -lpthread -march=i686 -o str2str Undefined symbols for architecture x86_64: "_input_sbf", referenced from: _input_raw in rcvraw.o "_input_sbff", referenced from: _input_rawf in rcvraw.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *\ [str2str] Error 1

Anyone been able to compile this on Mac?

JensReimann commented 8 years ago

I looks like the file src/rcv/septentrio.c is missing in the makefile.

blaines commented 8 years ago

@chenosaurus I updated the makefiles and pushed to my branch. Enjoy!

ljbade commented 8 years ago

@blaines Thanks this fixes Linux too.

coandrei commented 8 years ago

@chenosaurus -lrt (POSIX real time extensions) is not available for Mac. Indeed one solution would be to remove it completely. Although I am not sure how the complete removal affects the behaviour of the executable. On the other hand, according to this link, the real time extensions would be located in libSystem.B.dylib. As a result, you may replace -lrt with -lSystem.B