[USRP-users] Building UHD Examples

Steven Clark steven.p.clark at gmail.com
Thu Nov 11 16:13:03 EST 2010


Pardon the noobness, but how do you build the UHD examples?

I tried:

cd host
mkdir build
cd build
cmake ../examples
make

 ->

[ 12%] Building CXX object
CMakeFiles/benchmark_rx_rate.dir/benchmark_rx_rate.o
/home/steven/uhd/host/examples/benchmark_rx_rate.cpp:18:41: error:
uhd/utils/thread_priority.hpp: No such file or directory
/home/steven/uhd/host/examples/benchmark_rx_rate.cpp:19:35: error:
uhd/utils/safe_main.hpp: No such file or directory
/home/steven/uhd/host/examples/benchmark_rx_rate.cpp:20:36: error:
uhd/usrp/single_usrp.hpp: No such file or directory
/home/steven/uhd/host/examples/benchmark_rx_rate.cpp:30: error: variable or
field ‘test_device’ declared void
/home/steven/uhd/host/examples/benchmark_rx_rate.cpp:30: error: ‘uhd’ has
not been declared
/home/steven/uhd/host/examples/benchmark_rx_rate.cpp:31: error: expected
primary-expression before ‘double’
/home/steven/uhd/host/examples/benchmark_rx_rate.cpp:32: error: expected
primary-expression before ‘double’
make[2]: *** [CMakeFiles/benchmark_rx_rate.dir/benchmark_rx_rate.o] Error 1
make[1]: *** [CMakeFiles/benchmark_rx_rate.dir/all] Error 2

So clearly it's not picking up the include files... I tried switching to
things like
make --include-dir ../include/uhd/utils/

but, to no help. What's the correct syntax?

-Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20101111/7701315b/attachment-0002.html>


More information about the USRP-users mailing list