Forum: GNU Radio Using gcell out of tree

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris Noyes (Guest)
on 2008-12-31 18:00
(Received via mailing list)
I'm trying to do an out of tree build using gcell on a PS3 with Fedora
8. Is
anybody else working on this? Any pointers?
I copied the 'gr-howto-write-a-block' folder out of the tree and
the documentation to create my own block. I then copied
'Makefile.common.spu' and used the 'gr-gcell' fft example as a guide to
my program. I was successful in getting a 'hello world from spe', but
without manually hacking the Makefiles to include/exclude certain
and libraries. I'm hoping there's an easier way.


Eric B. (Guest)
on 2008-12-31 21:06
(Received via mailing list)
Attachment: (0 Bytes)
Attachment: (0 Bytes)
Attachment: Makefile.common (0 Bytes)
Attachment: Makefile.common.spu (0 Bytes)
Attachment: configure-cell-cross (0 Bytes)
On Wed, Dec 31, 2008 at 10:59:22AM -0500, Chris Noyes wrote:
> Chris
Hi Chris,

Yes, there's an easier way.  The main thing you want to do is to copy
config/gr_standalone.m4, config/gr_gcell.m4, and config/pkg.m4 out of
trunk and add them to your out-of-tree config directory.  Invoke
GR_GCELL in your and most of what you need will be set
up.  See the attached files below.

I generally use a directory structure that looks like this:

  mymodule/config          # m4 macros
  mymodule/include/mymodule     # includes that will be installed in
  mymodule/include/mymodule/spu # SPU specific includes that will be
  mymodule/lib            # generic code
  mymodule/lib/gcell          # code that uses gcell
  mymodule/lib/gcell/spu  # SPU code used by code in lib/gcell

lib/gcell is only built if the AM_CONDITIONAL HAVE_GCELL is true.

There's also a HAVE_GCELL value in config.h

If I get some time, I'll work up a revised out-of-tree skeleton that
includes conditionally built code that uses gcell.  In the meantime,
I'm working on a "gcell-ized" version of FFTW :-)

This topic is locked and can not be replied to.