[UHD] CMake Error: The following variables are used in this project, but they are set to NOTFOUND

I have compiled and run UHD code that was downloaded one day in last
week.
One problem was that “tx_timed_samples.cpp” does not work.
The timing control didn’t work.
Even I give 10 secs delay, the code just promptly send samples without
any
delay.
Whereas receiver properly wait for the specified time before starting
the
reception process.

Therefore, I have updated UHD code today by

  • “git pull” in /root/git/uhd/
  • “cmake …/” in /root/git/uhd/build

got following error


– Interface address discovery supported through getifaddrs.

– Configuring USRP1 support…
– USRP1 support configured automatically
– Enabling USRP1 support.

– Configuring USRP2 support…
– USRP2 support configured automatically
– Enabling USRP2 support.

– Configuring USRP-E100 support…
– USRP-E100 support configured automatically
– Disabling USRP-E100 support.

– Configuring priority scheduling…
– Performing Test HAVE_PTHREAD_SETSCHEDPARAM
– Performing Test HAVE_PTHREAD_SETSCHEDPARAM - Success
– Performing Test HAVE_WIN_SETTHREADPRIORITY
– Performing Test HAVE_WIN_SETTHREADPRIORITY - Failed
– Priority scheduling supported through pthread_setschedparam.

– Configuring module loading…
– Looking for C++ include dlfcn.h
– Looking for C++ include dlfcn.h - found
– Looking for C++ include windows.h
– Looking for C++ include windows.h - not found
– Module loading supported through dlopen.
– Local package data directory: /usr/local/share/uhd
– Installer package data directory: /usr/share/uhd

– ######################################################
– # LibUHD enabled components
– ######################################################
– * Examples
– * Utils
– * Tests
– * Doxygen
– * USB
– * USRP1
– * USRP2

– ######################################################
– # LibUHD disabled components
– ######################################################
– * Manual
– * USRP-E100

– Using install prefix: /usr/local
CMake Error: The following variables are used in this project, but they
are
set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake
files:
LIBUSB_INCLUDE_DIR (ADVANCED)
used as include directory in directory /root/git/uhd/host/lib
LIBUSB_LIBRARIES (ADVANCED)
linked by target “uhd” in directory /root/git/uhd/host/lib

On 12/22/2010 04:10 PM, Sangho Oh wrote:

I have compiled and run UHD code that was downloaded one day in last week.
One problem was that “tx_timed_samples.cpp” does not work.
The timing control didn’t work.
Even I give 10 secs delay, the code just promptly send samples without any
delay.
Whereas receiver properly wait for the specified time before starting the
reception process.

Ok, thank you for the report. I will try to replicate the issue.

Therefore, I have updated UHD code today by

  • “git pull” in /root/git/uhd/
  • “cmake …/” in /root/git/uhd/build

got following error

This was due to adding new components in the build. The problem has just
been fixed. Update and do:

rm CMakeCache.txt
cmake …/

-josh

On 12/22/2010 04:10 PM, Sangho Oh wrote:

I have compiled and run UHD code that was downloaded one day in last week.
One problem was that “tx_timed_samples.cpp” does not work.
The timing control didn’t work.
Even I give 10 secs delay, the code just promptly send samples without any
delay.
Whereas receiver properly wait for the specified time before starting the
reception process.

On this issue, you are probably sending a small number of samples which
are completely consumed by the device. The example app does not wait for
an end of burst acknowledgement so it exits before the samples are
actually transmitted.

Try setting --nsamps to a very large value (several seconds worth of
samples) to prove that the send-timed is indeed functioning.

-josh