discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Performance Counters


From: CEL
Subject: Re: [Discuss-gnuradio] Performance Counters
Date: Mon, 29 Jan 2018 14:19:01 +0000

Hi Lara,

though I really like PyBOMBS for what it does well (managing
installation prefixes, especially for cross-compile environments), I'm
myself not really a fan of using it for simply installing GNU Radio on
a machine. However, you'd really not have to learn anything about how
PyBOMBS works internally (recipes and such) just to make it build your
stuff and GNU Radio itself. Let's still skip PyBOMBS.

So, let's fix this from the root: Installing thrift with the
development headers and Python bindings needed for a build on Ubuntu
16.04. I'd normally just recommend installation from the package repos
that Ubuntu brings, but Ubuntu is "behind" quite a bit and still ships
Thrift 0.9.1, whereas we need 0.9.2 or 0.9.3.

So, if you don't have any other software depending on Thrift, uninstall
all thrift packages you've installed.

Then, a simple

git clone https://github.com/apache/thrift.git
cd thrift
git checkout 0.9.3
./bootstrap.sh ## This might throw errors, please check for them; I
think Thrift was a bit backwards with respect to aclocal, and you might
need to explicitly install the right version; please report problems if
you encounter them here
./configure --with-c_glib --with-cpp --with-libevent --with-python\
  --without-csharp --without-d --without-erlang --without-go\
  --without-haskell --without-java --without-lua --without-nodejs\
  --without-perl --without-php --without-ruby --without-zlib\
  --without-qt4 --without-qt5\
  --disable-tests --disable-tutorial CXXFLAGS=-DNDEBUG
make -j3
sudo make install 

should do the trick.
After that, you should **really** `rm -rf /path/to/gnuradio/build/*`
and run your cmake again.

I'm sorry this is such a hassle. Thrift looked like a "good idea at the
time", but has proven to be one of the most problematic dependencies
we've had so far (and we depend on Boost. And SWIG. And Log4cpp. And we
still have Cheetah in the 3.7 line. And Wx. And QWT. And Qt. Thinking
about it, "worst dependency of GR" is really a title that a software
project might want to avoid.). Technically, it's a nice middleware and
most importantly, it was there, when heroic maintainers needed to swap
out the RPC mechanism "over night".

Best regards,
Marcus

On Fri, 2018-01-26 at 17:26 +0100, address@hidden wrote:
> I'm feel like I'm spending more time reinstalling Gnuradio than actually 
> working with it.
>  
> And pybombs is adding another layer of complexity: Now I have to learn what a 
> recipe is, a prefix, I have to figure out how to reuse my oot-modules and so 
> on... My lifetime is limited.
>  
> I thank you for your advice but I refuse to learn pybombs.
>  
> Gesendet: Freitag, 26. Januar 2018 um 16:59 Uhr
> Von: "Sumit Kumar" <address@hidden>
> An: address@hidden, address@hidden
> Betreff: Re: [Discuss-gnuradio] Performance Counters
> I had almost the same problem, then I used pybombs to install GNU Radio and 
> everything. It installed apache-thrift smoothly.
> After that I have built apache-thrift many times under pybombs environment, 
> and it never gave any more pain(touch wood).
> Sumit
>  
> On 26/01/2018 16:47, address@hidden wrote:
> > Hello gnuradio-community,
> >  
> > I'm trying to use performance counters for my flowgraph which consists of 
> > some gnuradio blocks and some of my own oot blocks. In order to do so I 
> > need to install 'thrift'.
> >  
> > I have tried everything, but it does not work.
> >  
> > 1) I installed thrift accoding to 
> > "https://wiki.gnuradio.org/index.php/ControlPort";. I have installed 
> > python-twisted and libssl-dev.
> >  
> > 2) 'thrift -version' gives me 0.11.0. So it is installed.
> >  
> > 2) Then I enter the build-folder of my gnuradio installation.
> >  
> > 3) I do 'cmake ../'.
> >  
> > 4) I get an error 'thrift not found'.
> >  
> > Gnuradio or python or both are unable to find thrift. I'm frustrated and I 
> > have no idea where to start.
> >  
> > My OS: Ubuntu 16.04
> > Gnuradio: 3.7.11.1
> >  
> > In case I'm not able to solve the problem: Is there a way to query 
> > performance counters from python with the flowgraph running?
> >  
> >  
> > Thank you,
> > Lara
> >    
> >  
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]