Solved access to gpsd c++ wrapper classes in QT
-
Hi,
Before anything, are you using your distribution Qt ? If so, did you check whether libQgpsmm is available for it ?
-
Hi , I am using distribution software on Ubuntu and also on an ARM architecture based computer. They were both installed using sudo apt-get install qtcreator. Both machines have a different version ( qtcreator 2.5 and qt 4.8.1) & (qtcreator 3.0 and qt 5.2.1) based on the latest update of their repositories. I do cross compiling in Eclipse but have not tried it with QT so far. I have enough stuff to figure out as it is...Hmm , I am doing a search through Github to see if I can find libQgpsmm there. Is there anywhere else I should check?
I should mention libgpsmm.cpp and it's header are listed, and since I am writing code in cpp I can use that option. Do you think I can include all the headers and cpp files as well as all the relevant c files into a new project and then have it compile? I am going to try it this way right now to see what will happen.
Since the daemon is already running and tested I only need the wrapper classes for the c code used to interface with it. -
Ubuntu already provides that library, see here
-
That looks great, I actually will need it for the ARM processor ,but I can test it out on Ubuntu first to make sure it works.
I appreciate this a lot. For any other programmers info , you can use the software center. Go under developer tools and make a search for libgpsmm-dev ,then click to install it .
Now I will look to see if I can find a similar method on the other ARM computer... :) -
Debian has it for ARM
-
You know I just was digging in there as well for the libraries. This is all looking very possible now. Still new to QT , I am becoming more enthusiastic with using it every day. Already have one project nearly ready for release :) . You know going back to C++ isn't so bad, after all...
-
Heh just tried to install on the ARM machine and it installed the version that I was trying out and then it killed off the O/S ...I see there are going to be some teething problems before I get it all working...
-
Killed the OS ? What do you mean ?
-
It stopped the O/S from loading everything it needed on reboot. It froze it up... So I thought It would be a good time to upgrade to the newest version of the O/S .. That version is not QT Creator friendly yet.. I spent too much time just trying to install. So in the end I went back to the version I had been using. No problem getting QTCreator working with it. I kinda need to write code on one project, and experiment in this other one. So I will be looking into making multiple images of the 2 different O/S's...
-
Was there dependencies missing ?
-
Yes , I tried a couple of quick fixes that I had found searching google to do this qtcreator install. However they did not bring in all the needed dependencies I am pretty certain. Well, I decided to set up an experimental O/S to work on that one. Meanwhile I am back to coding for a short while on another project using an earlier release of the O/S.
-
I solved this issue a little while ago. It was about getting the gpsd interface libraries to work on the arm (debian) computer. I needed to upgrade to Debian 8 since the libraries I located were for that O/S (they crashed the older O/S) . I then installed synaptic package manager and used it to install the libraries needed. Synaptic also gave me information on where the .so libraries were located so that I could use that to browse for the ones needed when adding them into the project. I selected system library (Internal, External, System ,System package) . I then was able to include the libgpsmm.h files into the header of a .cpp source file and access the gpsd from inside my code.