discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] GNU Radio and usrp_standard.h: No such file or di


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] GNU Radio and usrp_standard.h: No such file or directory
Date: Fri, 17 Sep 2010 13:24:09 -0700
User-agent: Mutt/1.5.20 (2009-12-10)

On Fri, Sep 17, 2010 at 05:02:00PM +0200, Fabrizio Tappero wrote:
> hello,
> I am trying to compile this C++ file:
> http://gnuradio.org/redmine/wiki/1/UsrpFAQCppInterface
> by doing:
> g++ usrp_test_c++.cpp -o testusrp -lusrp
> 
> and I get the following error:
> test_usrp_standard_rx.cc:28:39: error: usrp_standard.h: No such file
> or directory
> 
> I am on a ubuntu 10.4 (32bit) system with gnuradio 3.3.0 properly (I
> guess) installer (from git) in /media/lin_sw/gnuradio/current
> from env I see that:
> 
> LD_LIBRARY_PATH=/usr/lib/:/media/lin_sw/gnuradio/current/lib
> 
> I do not seem to figure out what I am missing, can anybody please help.
>
> thanks a lot
> fabrizio
> PS "current" is actually a symbolic link to the folder 3.3.0 in the
> same location as suggested in here:
> http://wiki.frednet.org/index.php/GNU_Radio_Installation_Guide

Assuming you've done a "make install", pkg-config will tell you the
cflags and libs you need to use.  You'll need to have your
PKG_CONFIG_PATH set correctly for this to work.  If you installed into
the default prefix (/usr/local), the you'll need either:

$ export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig

  or

$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Depending on whether you're on a 64-bit machine and/or what OS and
distribution you're using

On my x86_64 machine running Fedora 13:

$ echo $PKG_CONFIG_PATH
/usr/local/lib64/pkgconfig


$ pkg-config --cflags usrp
-I/usr/local/include
$ pkg-config --libs usrp
-L/usr/local/lib64 -lusrp -lusb

Eric



reply via email to

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