tomojitakasu / RTKLIB

2.55k stars 1.62k forks source link

Problems compiling rtkrcv for macOS Sierra #248

Open cLupus opened 8 years ago

cLupus commented 8 years ago

Hi I'm trying to compile the command line utility rtkrcv for macOS Sierra (10.11), but it will not compile. More specifically, I have change -lrt to -lSystem.B, as others (and I) have had problems with this library on mac. The error message I get when running make is the following: cc rtkrcv.o vt.o rtkcmn.o rtksvr.o rtkpos.o geoid.o solution.o lambda.o sbas.o stream.o rcvraw.o rtcm.o preceph.o options.o pntpos.o ppp.o ppp_ar.o novatel.o ublox.o ss2.o crescent.o skytraq.o gw10.o javad.o nvs.o binex.o rt17.o ephemeris.o rinex.o ionex.o rtcm2.o rtcm3.o rtcm3e.o qzslex.o -lm -lSystem.B -lpthread -o rtkrcv Undefined symbols for architecture x86_64: "_dgemm", referenced from: _matmul in rtkcmn.o _lsq in rtkcmn.o _filter in rtkcmn.o _smoother in rtkcmn.o _ecef2enu in rtkcmn.o _enu2ecef in rtkcmn.o _covenu in rtkcmn.o ... "_dgetrf", referenced from: _matinv in rtkcmn.o _solve in rtkcmn.o "_dgetri", referenced from: _matinv in rtkcmn.o "_dgetrs", referenced from: _solve in rtkcmn.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: *** [rtkrcv] Error 1

tomojitakasu commented 7 years ago

Delete the compile option -DMKL or -DLAPACK to compile rtkcmn.c.