discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] making gr-rds-new work in latest versions of Ubuntu


From: Dimitris Symeonidis
Subject: [Discuss-gnuradio] making gr-rds-new work in latest versions of Ubuntu
Date: Wed, 24 Sep 2008 12:27:37 +0200

The gr-rds-new processing block, as it is here:
http://digilander.libero.it/iz2eeq/#rds
does not compile under Ubuntu 8.04.

The error is:
/usr/local/bin/swig -c++ -python -I/usr/include/python2.5
-I/usr/local/gnuradio/include/gnuradio/swig
-I/usr/local/gnuradio/include/gnuradio -module rds -o rds.cc rds.i
rds.i:6: Error: Unable to find 'gnuradio.i'

The way to fix this is to edit the "configure" file in the archive's
root directory.
In line 408, change "ac_default_prefix=/usr/local" to "ac_default_prefix=/usr".
Then run the usual "./configure && make"

You should still be getting some warnings like:
warning: deprecated conversion from string constant to 'char*'

To fix them, edit the file "src/lib/gr_rds_data_decoder.h", lines 59-63.
Change "static unsigned int" to "static const unsigned int".
Also, change "static char *" to "static const char * const".

Finally, you should get two more warnings:
gr_rds_data_decoder.cc:75:8: warning: multi-character character constant
gr_rds_data_decoder.cc: In member function 'char
gr_rds_data_decoder::transform_char(char)':
gr_rds_data_decoder.cc:86: warning: overflow in implicit constant conversion

To fix these, edit the file "src/lib/gr_rds_data_decoder.cc", line 75:
change the 1st character in the table to a question mark: '?'

Note that "make check" still fails, but I haven't got around to
looking into this yet...

Also, be informed that I have added some of the standard's
unimplemented features to the code, I will release it when it feels
stable enough...

Dimitris Symeonidis
"If you think you're too small to make a difference, try sleeping with
a mosquito!" - Amnesty International




reply via email to

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