C++ source code location

I built gnuradio using Synaptic and it seems to be operational. I can
change
python and also change and compile C++ code for some UCLA Zigbee packet
processing code just fine too. Where should the C++ source code for the
gnuradio routines themselves (e.g. gr blah blah) be located? Reading a
bit,
it seems like the most likely root is /usr/local/ . For example, if I
wanted to find gr_pwr_squelch.cc (Josh B.'s code), where should I
look? A
quick search in my directories after installation using find/locate
didn’t
turn up anything.

I can see include files with the ‘.h’ suffix and SWIG files (with the
‘.i’
suffix). However, I can’t see the source files (which have a ‘.cc’
suffix?). Is there a way of seeing and being able to modify C++ source
files using Synaptic (i.e. what module or set of modules or libraries do
I
include?) for configuration or is a build ‘from scratch’ required?

To be honest, I am not really too clear about the difference between
building/installing from source files and the state of being able to
subsequently change and build new gnuradio programs by modifying C++
source
files. Maybe I am missing some OO methodology (e.g. inheritance from
other
classes or …) for doing this the right way. However, the
‘ready-to-go’
gnuradio environment seems to favour python changes only. Where are the
compiled C++ object files located in this environment?

For ‘building and installing from source files’, It seems from the
documentation that the svn repository is the place to go (e.g. svn co
http://gnuradio.org/svn/gnuradio/branches/releases/3.2 gnuradio). I
heard
something about git being used as a repository also, but I can’t really
find
much documentation about this.

My basic objective is to install gnuradio so that I can modify both C++
and
python source code in a 9.04 Ubuntu environment. The web page wiki at
http://gnuradio.org/trac/wiki/UbuntuInstall claims to be ‘outdated and
in
need of re-organization’. I would be happy to do this work for the
benefit
of others like myself, … if I knew exactly what I was doing ;-). Any
help or guidance would be appreciated.

/ David K.


View this message in context:
http://www.nabble.com/C%2B%2B-source-code-location-tp26074554p26074554.html
Sent from the GnuRadio mailing list archive at Nabble.com.

David K. wrote:

I built gnuradio using Synaptic and it seems to be operational. I can change
python and also change and compile C++ code for some UCLA Zigbee packet
processing code just fine too. Where should the C++ source code for the
gnuradio routines themselves (e.g. gr blah blah) be located? Reading a bit,
it seems like the most likely root is /usr/local/ . For example, if I
wanted to find gr_pwr_squelch.cc (Josh B.'s code), where should I look? A
quick search in my directories after installation using find/locate didn’t
turn up anything.

The sources will be located in the place you specify when downloading
them using svn/git.

classes or …) for doing this the right way. However, the ‘ready-to-go’
gnuradio environment seems to favour python changes only. Where are the
compiled C++ object files located in this environment?

For ‘building and installing from source files’, It seems from the
documentation that the svn repository is the place to go (e.g. svn co
http://gnuradio.org/svn/gnuradio/branches/releases/3.2 gnuradio). I heard
something about git being used as a repository also, but I can’t really find
much documentation about this.

Svn will do the trick… it has done so for me at least =;OP I think
there is a process in progress to switch to git, but I’m unsure about
when/if svn will stop work.

My basic objective is to install gnuradio so that I can modify both C++ and
python source code in a 9.04 Ubuntu environment. The web page wiki at
http://gnuradio.org/trac/wiki/UbuntuInstall claims to be ‘outdated and in
need of re-organization’. I would be happy to do this work for the benefit
of others like myself, … if I knew exactly what I was doing ;-). Any
help or guidance would be appreciated.

I was able to compile and install gnuradio using the instructions for
ubuntu 9.04 on my desktop.

If you installed via Synaptic you likely just installed the binary
(i.e. pre-built) packages, which include the header files (necessary
for building your own, custom blocks), libraries, and the
applications/examples that come with GNURadio.
If you want to modify the existing examples, you’ll need to download
the source (some instructions are at:
http://gnuradio.org/trac/wiki/UbuntuInstall#InstallingGNURadio -
including using svn or git) - at least for the C++ examples, the
python scripts are easy to modify. If you want to create your own
custom blocks outside of the gnuradio source tree, you can just take a
look at the gr-howto-write-a-block code (the original documentation is
at http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html)

Doug

On Tue, Oct 27, 2009 at 5:28 AM, David K. [email protected]
wrote:

I can see include files with the ‘.h’ suffix and SWIG files (with the ‘.i’
gnuradio environment seems to favour python changes only. Where are the
http://gnuradio.org/trac/wiki/UbuntuInstall claims to be 'outdated and in


Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Doug G.
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs