Hi Mark,
as far as I can tell, you've recompiled UHD, but you did not recompile
GNU Radio to link against that UHD (I don't know if you've updated UHD
since your last compilation of GNU Radio, so this might pose a problem).
>And yes, I have run the ~/gnuradio/src/prefix/setup_env.sh first.
Does that mean you've /run/ it, or did you /source/ it? The first
wouldn't have an effect, because it would set up the correct paths for
the duration of the script running – and that script immediately exits.
Sourcing the file, however, would make the changes permanent to your shell.
Also, it's important that you did the sourcing before compiling UHD –
otherwise, the build process might use system libraries that it
shouldn't use.
Best regards,
Marcus
On 07/04/2016 04:53 PM, Mark Napier wrote:
> 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:
>
> napierm@napierm-virtual-machine:~/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:
>
> napierm@napierm-virtual-machine:~/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
>
>
>
> napierm@napierm-virtual-machine:~/gnuradio/grc$ gnuradio-companion &
> [2] 25876
> napierm@napierm-virtual-machine:~/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
> napierm@napierm-virtual-machine:~/gnuradio/grc$
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio