[obdgpslogger] Enable/Disable features

Peter Buelow goballstate at gmail.com
Sun May 23 13:47:39 EDT 2010

On 5/17/2010 10:30 PM, Gary Briggs wrote:
> On Mon, May 17, 2010 at 09:05:46PM -0500, Peter Buelow wrote:
>> Sorry, very new to cmake, so I'm just getting up to speed. How would I
>> disable inclusion of gpsd using cmake? Specifically similar to using
>> configure --disable or something? Or, alternatively, how do I force it
>> to use the old gpsd interface (which is available in the code I see)? OE
>> doesn't have the newest gpsd yet, and my build is failing for OE because
>> it's trying to use the latest gpsd (which I think it's getting from my
>> fedora system) which means gps_query isn't defined by the cross compile
>> system. Any ideas? Thanks
> My immediate inclination is to suggest checking your cross compile
> environment, ensure that it's looking only in your fakeroot, and not just
> your wider environment.
> I've just added a flag to the cmake module in svn, GPSD_FORCE_V2, that
> forces it to assume the v2 api. You'd use it thus:
> cmake -DGPSD_FORCE_V2=On ..
> Alternatively, if you open a cmake GUI, you'll find an option in there
> to disable gpsd support altogether.
> How are you actually cross-compiling? Normally I lean towards
> scratchbox2 nowadays, but you may find that cmake toolchain files work
> for you more easily. There's a tutorial here:
> http://www.cmake.org/Wiki/CMake_Cross_Compiling
> And there's an example that works for the sheevaplug in the svn checkout
> of obdgpslogger, the online flavor being here:
> http://svn.icculus.org/obdgpslogger/trunk/cmakemodules/Toolchain-sheeva.cmake?revision=194&view=markup
> If you write an OE toolchain file, I'll gladly throw it into the
> obdgpslogger svn [or, for that matter, if you have any other patches,
> I'm always happy to look]
> Thanks,
> Gary (-;
> _______________________________________________
> obdgpslogger mailing list
> obdgpslogger at icculus.org
> http://icculus.org/mailman/listinfo/obdgpslogger
OK, finally figured out the actual problem. Which is that gps_query 
isn't resolving, but that's because it's not actually in the 2.92 or 
2.94 libraries I can get to. Neither one include that symbol when 
dumping the symbol table. So I thought maybe OE is forcing it somehow 
(couldn't see how, but eh). Nope, building it manually doesn't have that 
symbol either in libgps.so. I can't find a configure option to fix this 
either. Any thoughts?


More information about the obdgpslogger mailing list