discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Creating a USRP2 C++ Object


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Creating a USRP2 C++ Object
Date: Thu, 5 Mar 2009 11:53:28 -0800
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Mar 05, 2009 at 02:52:36PM -0500, Mike Leferman wrote:
> I ran those commands and those are the outputs I got.

It sounds like you're building your own code outside of our
framework.  Are you passing all of those flags to g++ when you're
compiling and linking?

Did you do a 

  $ sudo ldconfig

sometime after installing libgruel?

> On Thu, Mar 5, 2009 at 1:09 PM, Eric Blossom <address@hidden> wrote:
> 
> > On Thu, Mar 05, 2009 at 12:47:24PM -0500, Mike Leferman wrote:
> > > I'm using Ubuntu 8.10, and /usr/local/lib is in my ld.so.conf.  Does
> > > ldconfig just update ld.so.conf? My program finds libusrp2 in the
> > > /usr/local/lib folder, so it should be able to find libgruel (which I'm
> > > guessing is the problem?)  Do I have to have my program link libgruel as
> > > well?  Is this failing because I don't use usrp2.lo when i link the
> > library?
> > >  Thanks for the help!
> > > - Mike
> >
> > Try using pkg-config to get the usrp2 dependencies:
> >
> >  $ pkg-config usrp2 --cflags
> >  -DOMNITHREAD_POSIX=1 -pthread -I/usr/local/include
> > -I/usr/local/include/gnuradio
> >
> >  $ pkg-config usrp2 --libs
> >  -L/usr/local/lib -lusrp2 -lgromnithread -lgruel
> >
> > Eric
> >




reply via email to

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