Had a little time to work on the TVRX again.
Have a build of gnuradio installed with pybombs in ~/gnuradio/src/prefix. Very happy to *finally* have a complete source tree and working compile environment to experiment with.
Modified two source files:
~/gnuradio/src/prefix/src/uhd/host/lib/usrp/usrp1/dboard_iface.cpp
~/gnuradio/src/prefix/src/uhd/host/lib/usrp/dboard/db_tvrx.cpp
Went into "~/gnuradio/src/prefix/src/uhd/host/build" and did a make. The files compile cleanly. "make test" works with 100% passing. Then "sudo make install".
The files are installed into
/home/napierm/gnuradio/src/prefix/bin.
uhd_usrp_probe now correctly finds and identifies the rev.1 TVRX board.
Try to run gnuradio and it can't find "liblog4cpp.so.5". And yes, I have run the ~/gnuradio/src/prefix/setup_env.sh first.
Well, this a virtual machine so I revert to a backup from a couple of days ago. Everything works. Change the two files, follow same steps. Broken the same way.
Anyone know the answer?
FWIW, I've attached the two files but since I have no way to test anything I doubt I have the return value right for the Rev. 1 board.
Does anyone have a good methodology to set up a machine with a working UHD/gnuradio build/run environment? I'm pretty frustrated at the amount of time I've wasted on this; there just has to be a better way.
Thanks in advance,
Mark Napier
****---->>> Before compile:
address@hidden:~/gnuradio/grc$ gnuradio-config-info
Program options: gnuradio-config-info [options]:
-h [ --help ] print help message
--prefix print GNU Radio installation prefix
--sysconfdir print GNU Radio system configuration directory
--prefsdir print GNU Radio preferences directory
--userprefsdir print GNU Radio user preferences directory
--prefs print GNU Radio preferences
--builddate print GNU Radio build date (RFC2822 format)
--enabled-components print GNU Radio build time enabled components
--cc print GNU Radio C compiler version
--cxx print GNU Radio C++ compiler version
--cflags print GNU Radio CFLAGS
-v [ --version ] print GNU Radio version
****---->>> After compile and install:
address@hidden:~/gnuradio/grc$ gnuradio-config-info
gnuradio-config-info: error while loading shared libraries: liblog4cpp.so.5: cannot open shared object file: No such file or directory
address@hidden:~/gnuradio/grc$ gnuradio-companion &
[2] 25876
address@hidden:~/gnuradio/grc$ Traceback (most recent call last):
File "/home/napierm/gnuradio/src/prefix/bin/gnuradio-companion", line 29, in <module>
from gnuradio.grc.main import main
File "/home/napierm/gnuradio/src/prefix/lib/python2.7/dist-packages/gnuradio/grc/main.py", line 21, in <module>
from gnuradio import gr
File "/home/napierm/gnuradio/src/prefix/lib/python2.7/dist-packages/gnuradio/gr/__init__.py", line 41, in <module>
from runtime_swig import *
File "/home/napierm/gnuradio/src/prefix/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 28, in <module>
_runtime_swig = swig_import_helper()
File "/home/napierm/gnuradio/src/prefix/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 24, in swig_import_helper
_mod = imp.load_module('_runtime_swig', fp, pathname, description)
ImportError: liblog4cpp.so.5: cannot open shared object file: No such file or directory
^C
[2]+ Exit 1 gnuradio-companion
address@hidden:~/gnuradio/grc$