gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] test_libgpsmm.cpp


From: Paul Burns
Subject: Re: [gpsd-users] test_libgpsmm.cpp
Date: Tue, 15 Aug 2017 23:48:27 +0000
User-agent: eM_Client/7.0.30068.0

Yo Gary and thanks for responding. Ok on test_gpsmm.cpp.

I then started to add some GPSD code to my Qt C++ project, but ran into undefined reference problems with the first line i.e. gpsmm gps_rec("localhost","2947"); so I decided to start adding the source code from gpsd-3.16.tar.gz into my Qt project and build and link my own binaries.

From gpsd-3.16.tar.gz I added

gps.h
gpsd_config.h
libgpsmm.h
libgpsmm.cpp

to my Qt C++ project.

Now I get an undefined reference to gps_open in libgpsmm.cpp, which includes libgpsmm.h and gpsd_config.h, which I have, however I am thinking that the implementation for gps_open would be in gps.c, but that is not in the package and therefore I cant put it inot my Qt project.

Many thanks in advance for your help.

------ Original Message ------
From: "Gary E. Miller" <address@hidden>
To: address@hidden
Sent: 16/08/2017 5:48:08 AM
Subject: Re: [gpsd-users] test_libgpsmm.cpp

Yo Paul!

On Tue, 15 Aug 2017 01:05:01 +0000
"Paul Burns" <address@hidden> wrote:

 Hi, I am looking for test_libgpsmm.cpp which is mentioned in
 http://www.catb.org/gpsd/client-howto.html#_c_examples_2 . as being
 in the distribution (GPSD I presume). I have downloaded
 gpsd-3.16.tar.gz from
 http://download-mirror.savannah.gnu.org/releases/gpsd/ but I cannot
 find the file in the tar file. Where would I find test_libgpsmm.cpp?

Ah, right there:

# tar -tvzf gpsd-3.16.tar.gz | fgrep test_gp
-rw-rw-r-- esr/esr 4291 2015-05-01 11:27 gpsd-3.16/test_gpsmm.cpp

 I am attempting to access the GPSD daemon from a Qt application on
 and ARM processor using Debian, I am cross compiling on a x86 Debian
 machine.

That should be easy.  Good luck.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
 address@hidden  Tel:+1 541 382 8588

     Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]