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

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to