Linux机器上的OpenDMTP配置

时间:2014-07-21 08:28:41

标签: c++ c linux linker gps

我已经使用基于HTTP的GPRMC servlet成功安装并运行了OpenGTS服务器应用程序。

现在我正在尝试在linux上运行OpenDMTP C客户端。我在第一步就陷入困境。

当我尝试在终端中使用make命令时:

                make dest=linux dmtp

我收到以下错误:

Linking 'dmtpd' ...

cc -o ./build_lin/obj/dmtp/dmtpd -Wall -DTARGET_LINUX -DTRANSPORT_MEDIA_SOCKET -
DPROTOCOL_THREAD -DGPS_THREAD -Isrc /usr/lib/i386-linux-gnu/libpthread.so  /usr/lib/i386-linux-gnu/libm.so ./build_lin/obj/custom/startup.o /build_lin/obj/custom/transport.o ./build_lin/obj/custom/log.o ./build_lin/obj/custom/gps.o ./build_lin/obj/custom/gpsmods.o ./build_lin/obj/custom/linux/os.o -L./build_lin/obj/lib -lmodule -lbase -ltools
    ./build_lin/obj/lib/libbase.a(propman.o): In function _propGetDoubleValue': propman.c:   (.text+0xec8): undefined reference topow'

  propman.c:(.text+0xf0b): undefined reference to pow' 
  ./build_lin/obj/lib/libbase.a(propman.o): In function_propSetDoubleValue':

propman.c:(.text+0xf5b): undefined reference to pow' propman.c:(.text+0xf66): undefined reference torint'

./build_lin/obj/lib/libbase.a(propman.o): In function _propInitKeyValueFromString': 
propman.c:(.text+0x26e4): undefined reference topow'

propman.c:(.text+0x26ef): undefined reference to rint' 
./build_lin/obj/lib/libtools.a(gpstools.o): In functiongpsRadiansToPoint':

gpstools.c:(.text+0x253): undefined reference to sin' gpstools.c:(.text+0x269): undefined reference to cos'

gpstools.c:(.text+0x277): undefined reference to cos' gpstools.c:(.text+0x292): undefined reference to sin'

gpstools.c:(.text+0x2b0): undefined reference to sqrt' gpstools.c:(.text+0x2be): undefined reference to sqrt'

gpstools.c:(.text+0x2cd): undefined reference to atan2'
 ./build_lin/obj/lib/libtools.a(threads.o): In functionthreadCreate':

threads.c:(.text+0x191): undefined reference to `pthread_create'

文件中没有访问math.h。我认为该程序不包含\ usr \ include目录中的头文件,但不知道如何将此路径添加到makefile。请帮忙! 请帮忙!

0 个答案:

没有答案