This is a package config check, where is uhd.pc? Is it in your PKG_CONFIG_PATH?
http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Gnuradio-UHD -Josh On 01/21/2011 09:49 AM, Fabian Klaes wrote: > Dear Alexandru, dear list, > > i made the recommended changes (see comments in Alexandrus last message) but > still got the same error at configure: > checking for UHD... no > gr-uhd requires libuhd 2.x.x > configure: error: Component gr-uhd has errors; stopping. > > when I try to configure without --enable-gr-uhd it finishes without an error > but doesn't show the gr-uhd component. Neither at the successfully > configured nor the skipped components. > > Any more hints at what to change, where to look or what to try will be > appreciated. > For now I'm of till Monday. Everyone have a nice weekend! > > Fabian > > > On Fri, Jan 21, 2011 at 2:54 PM, Alexandru Csete <oz9...@gmail.com> wrote: > >> Hi Fabian, >> >> Did you set the PYTHONPATH? >> It should be set to PREFIX/lib/python2.6/site-packages where PREFIX is >> whatever you have specified during "./configure --prefix=..." >> (/usr/local if you haven't specified anything). Check the directory, >> there should be a subdirectory called gnuradio and one called >> grc_gnuradio. >> >> I checked the path and there are the subdirectories gnuradio, grc_gnuradio > and usrpm. But I'll still did > PYHTHONPATH=usr/local/lib/python2.6/dist-packages/ to be sure. > > >> A few other notes: >> >> It seems you have two UHD installations: >>>> ./usr/local/lib/libuhd.so >>>> ./opt/uhd/lib/libuhd.so >> You should uninstall one of them (btw. is there really a '.' in the >> path's above?) >> > > The '.' is really there, i searched from the highest directory ( cd / ). > The first one should be from an older install that i uninstalled before the > new install where i then specified a different DCMAKE_INSTALL_PREFIX, so i > hope just deleting the library should be sufficient to "uninstall" it > > >> >> You should not specify multiple locations for the installed libraries, >> i.e. if you install UHD in /opt/uhd you should add /opt/uhd/lib to the >> LD_LIBRARY_PATH but not the source location. The same for GNU Radio >> libraries. >> > > Fixed it to LD_LIBRARY_PATH=/opt/uhd/lib/:/opt/boost_1_37_0/lib > I hope that this is ok. > > >> It looks like you have installed boost 1.37 from source. While that's >> okay, it is only required for Ubuntu 8.04 or older and you may get >> into trouble if you have also installed a binary package from Ubuntu >> repository. >> > > As far as i can tell, there should be no other boost package there unless > they get an auto-update (btw., I'm using Ubuntu 10.04) > >> >> It seems many newcomers become confused with the Ubuntu installation >> instructions. I think it is because it covers many versions going all >> the way back to 6.10 so a lot of information is irrelevant for those >> who use a recent version of Ubuntu. I'll try to find some time to fix >> that by splitting the page in two. >> > > I think that would help a lot in getting started! > >> >> Alex >> >> >> On Fri, Jan 21, 2011 at 2:02 PM, Fabian Klaes <fabian.kl...@gmail.com> >> wrote: >>> I first tried make distclean and the installation went fine, but when I >>> tried to start the GRC, following window showed up: >>> http://tinypic.com/r/dq671d/7 containing the error message "Cannot >> import >>> gnuradio. Are your PHYTONPATH and LD_LIBRARY_PATH set correctly?" >>>> >>>> I then tried git clean -dfx and rebuilding from scratch (for UHD and >>>> GNUradio). >>>> Installation for UHD (worked): >>>> git clone git://code.ettus.com/ettus/uhd.git >>>> cd uhd/host >>>> mkdir build >>>> cmake -DCMAKE_INSTALL_PREFIX=/opt/uhd ../ >>>> make >>>> make test >>>> sudo make install >>>> PATH=$PATH:/opt/uhd/bin >>>> >>>> uhd_find_devices and uhd_usrp_probe works fine now, so i figured that >> the >>>> installation of UHD was successfull >>>> >>>> Installation for GNUradio (error at ./configure): >>>> git clone git://gnuradio.org/gnuradio.git >>>> git branch --track next origin/next >>>> git checkout next >>>> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} #just >>>> to be sure ... >>>> BOOST_PREFIX=/opt/boost_1_37_0 #echo $BOOST_PREFIX returned nothing in >> the >>>> first place, so i figured it could help >>>> >>>> >> LD_LIBRARY_PATH=/home/fs/gnuradio-git/uhd/host/build/lib/:/opt/uhd/lib/:/opt/boost_1_37_0/lib >>>> #I also put both uhd paths in ld.so.conf and ran sudo ldconfig, but it >>>> didn't help >>>> ./bootstrap >>>> ./configure --with-boost=$BOOST_PREFIX --enable-gr-uhd >>>> >>>> Now following error showed up: >>>> checking for UHD... no >>>> gr-uhd requires libuhd 2.x.x >>>> configure: error: Component gr-uhd has errors; stopping. >>>> >>>> I did: find |grep libuhd and got: >>>> ./home/fs/gnuradio-git/uhd/host/build/lib/libuhd.so >>>> ./home/fs/gnuradio-git/uhd/host/build/lib/libuhd.so.002 >>>> ./usr/local/lib/libuhd.so >>>> ./opt/uhd/lib/libuhd.so >>>> ./opt/uhd/lib/libuhd.so.002 >>>> >>>> so I added /opt/uhd/lib/ and /home/fs/gnuradio-git/uhd/host/build/lib/ >> to >>>> ld.so.conf and ran sudo ldconfig (as said above). I then also tried to >> set >>>> LD_LIBRARY_PATH (see above again) but still the same error. >>>> I also tried to git clone from http://gnuradio.org/git/gnuradio.git >>>> (described in [1]) instead of git://gnuradio.org/gnuradio.git(described in >>>> [2]) >>>> >>>> I don't know what to do next and would appreciate any help (again). I >>>> would be really happy if we could get this going. >>>> >>>> Fabian >>>> >>>> [1] http://gnuradio.org/redmine/wiki/1/UbuntuInstall >>>> [2] http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki >>>> >>>> >>>> >>>> >>>> On Thu, Jan 20, 2011 at 5:13 PM, Josh Blum <j...@joshknows.com> wrote: >>>>> >>>>>> And the (probably) critical part causing the error: >>>>>> make[6]: *** Keine Regel vorhanden, um das Target »usrp_prims.cc«, >>>>>> benötigt von »_usrp_prims_la-usrp_prims.lo«, zu erstellen. >> Schluss. >>>>>> make[6]: *** No Rule given, for making Target »usrp_prims.cc«, >>>>>> needed by »_usrp_prims_la-usrp_prims.lo«. Ending. >>>>>> >>>>>> >>>>>> If you (or anyone else) got another hint on how to solve this i would >>>>>> be >>>>>> really glad. >>>>>> >>>>> >>>>> Sometimes autotools gets confused when there are many changes to the >>>>> build system. Try make distclean, and if not working: git clean -dfx >>>>> (wipes everything). and rebuild from scratch. >>>>> >>>>> -Josh >>>>> >>>>> _______________________________________________ >>>>> Discuss-gnuradio mailing list >>>>> Discuss-gnuradio@gnu.org >>>>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio >>>> >>> >>> >>> _______________________________________________ >>> Discuss-gnuradio mailing list >>> Discuss-gnuradio@gnu.org >>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio >>> >>> >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org >> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio