[prev in list] [next in list] [prev in thread] [next in thread]
List: gpsd-users
Subject: Re: [Gpsd-users] cross compiling
From: David Severt <severtd () softdevsys ! com>
Date: 2010-05-12 16:21:25
Message-ID: 4BEAD585.1050407 () softdevsys ! com
[Download RAW message or body]
Roderick;
I make my life easier by just using --disable-shared when I configure so
gpsd is statically linked. Then I just strip gpsd and copy it to the
target bin. You can probably use the shared libs and "make install" by
using --prefix with configure but I haven't tried that route.
David
Roderick Medina wrote:
> Is "make install" applicable if I am cross-compiling? I tried copying my gpsd \
> directory to the embedded device after stripping out the source files and it has \
> the following complaints:
> # ./gpsd
> cd: 1: can't cd to /home/rmedina/projects/gpsd/svn/GPSD/trunk
> eval: 1: powerpc-405-linux-gnu-gcc: not found
>
> It seems it not only has hard links in it for paths but it also seems to want the \
> compiler again. What is going on here?
> Also it seems make install tried to install "libgps.la", " ibgps.so.19.0.0", " \
> libgpsd.la ",and "libgpsd.so.0.0.0". Are these the files I want to copy in addition \
> to the executable? I'm sorry if these are rudimentary questions but I'm not finding \
> documentation that addresses this.
> Thanks,
>
>
> Roderick
>
>
>
> -----Original Message-----
> From: Jon Schlueter [mailto:jon.schlueter@gmail.com]
> Sent: Tuesday, May 11, 2010 6:26 PM
> To: Roderick Medina
> Cc: David Severt; Don Weeks; Gpsd-users@lists.berlios.de
> Subject: Re: [Gpsd-users] cross compiling
>
> you would need gpsd executable and any of the other support tools that
> would get installed when you ran make install
>
> the support tools are more for debugging/extra support if you were
> only running it on your other system to connect a device up and access
> it gpsd would be about it.
>
> Jon
>
> On Tue, May 11, 2010 at 5:25 PM, Roderick Medina <rmedina@ticom-geo.com> wrote:
>
> > Thanks all. It ended up being the "--host" option (and putting the
> > location of the cross compiler in my PATH) that allowed me to properly
> > compile for the remote device.
> >
> > Now I am trying to move the compiled code over in order to test it but I
> > am running into a disk space constraint on the embedded system. What
> > subset of files are actually necessary in order to run GPSD? I imagine I
> > wouldn't need to drag over the source files but what is the basic set of
> > files needed in order to run GPSD? I tried running the following:
> >
> > ./autogen.sh --host powerpc-405-linux-gnu
> > ./make
> >
> > Is there be a clean way to get the basic required files to run GPSD? Is
> > it necessary to run "make install"?
> >
> > Thanks,
> >
> >
> > Roderick
> >
> >
> > -----Original Message-----
> > From: David Severt [mailto:severtd@softdevsys.com]
> > Sent: Tuesday, May 11, 2010 12:46 PM
> > To: Don Weeks
> > Cc: Roderick Medina; Gpsd-users@lists.berlios.de
> > Subject: Re: [Gpsd-users] cross compiling
> >
> > I cross-compile gpsd for OMAP. I use the "--host" option to specify the
> >
> > cross-compile toolchain when I run configure. The configure script will
> >
> > attempt to use a compiler called {host name}-gcc, etc... I also did a
> > kludge where I use set C_INCLUDE_PATH, CPATH and LIBRARY_PATH to the
> > appropriate toolchain directories before I run configure and make. This
> >
> > was because the compiles were grabbing stuff from the build machine's
> > tools rather than the cross-compile toolchain, which gave me errors when
> >
> > the OMAP compiler tried to compile some x86 code from an include file.
> >
> > David Severt
> >
> > Don Weeks wrote:
> >
> > > Is there any possibility of building a compile system out of your
> > >
> > target?
> >
> > > This is what we resorted too for our Cavium (MIPS) boards.
> > > Don
> > >
> > > On Mon, May 10, 2010 at 11:36 AM, Roderick Medina
> > >
> > <rmedina@ticom-geo.com>wrote:
> >
> > >
> > > > Hello,
> > > >
> > > >
> > > >
> > > > I am a fairly new user and am having trouble figuring out where/what
> > > >
> > to
> >
> > > > edit in order to get GPSD to use a different gcc executable for
> > > >
> > cross
> >
> > > > compile purposes. I am trying to compile gpsd for a powerpc linux
> > > > device. I have found references to build_alias and cross compilation
> > > >
> > in
> >
> > > > general but I can't find something that does not appear to be
> > > > auto-generated by something else. How do I do this cleanly versus
> > > > editing one of the auto-generated files?
> > > >
> > > >
> > > >
> > > > Thanks,
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Roderick
> > > >
> > > > _______________________________________________
> > > > Gpsd-users mailing list
> > > > Gpsd-users@lists.berlios.de
> > > > https://lists.berlios.de/mailman/listinfo/gpsd-users
> > > >
> > > >
> > > >
> > > _______________________________________________
> > > Gpsd-users mailing list
> > > Gpsd-users@lists.berlios.de
> > > https://lists.berlios.de/mailman/listinfo/gpsd-users
> > >
> > >
> > >
> > _______________________________________________
> > Gpsd-users mailing list
> > Gpsd-users@lists.berlios.de
> > https://lists.berlios.de/mailman/listinfo/gpsd-users
> >
> >
>
>
_______________________________________________
Gpsd-users mailing list
Gpsd-users@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpsd-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic