[Esbox-users] Compiling C++ application that uses Location library
Raul Fernandes Herbster
raul at embedded.ufcg.edu.br
Mon Nov 16 03:15:27 EET 2009
Hi Mills,
On Fri, Nov 13, 2009 at 8:48 PM, Robert Mills <robert.mills09 at gmail.com>wrote:
> Hi,
>
> I am trying to build a C++ application that will pull some information from
> the GPS.
>
> However, I have an issue that (as I have seen noted before) requires me to
> do the following to include the location headers
>
> extern "C" {
> #include <location/location-gps-device.h>
> #include <location/location-gpsd-control.h>
> }
>
> When I try to compile within ESbox, I get an undefined reference error to
> functions in the location files I have included above. If I compile from
> the command line using the following, it will compile and run properly on
> the device.
>
> gcc -o main main.cpp `pkg-config --libs dbus-1 --cflags gtk+-2.0`
> -llocation
>
> How do I add these arguments when compiling within ESbox?
> --
> Robert Mills
>
>
You can edit Makefile in order to include such additional parameters. The
make command is always executed inside Scratchbox toolchain.
[]'s
--Raul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://garage.maemo.org/pipermail/esbox-users/attachments/20091115/17b3add5/attachment.htm
More information about the Esbox-users
mailing list