[Top][All Lists]

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

Re: [Discuss-gnuradio] Cross compile UHD for powerpc

From: Phelps Williams
Subject: Re: [Discuss-gnuradio] Cross compile UHD for powerpc
Date: Fri, 15 Apr 2011 09:35:42 -0700

I ran into a speed bump here.  I am getting an error when trying to import gr.  It is looking for a module called _gruradio_core_runtime.  

>>> from gnuradio import gr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/test/output/lib/python2.5/site-packages/gnuradio/gr/__init__.py", line 43, in <module>
    from gnuradio_core import *
  File "/test/gnuradio/output/lib/python2.5/site-packages/gnuradio/gr/gnuradio_core.py", line 23, in <module>
    from gnuradio_core_runtime import *
  File "/test/gnuradio/output/lib/python2.5/site-packages/gnuradio/gr/gnuradio_core_runtime.py", line 6, in <module>
    import _gnuradio_core_runtime
ImportError: No module named _gnuradio_core_runtime

With a build that is installed and working on my host machine, I look into  /usr/local/lib/python2.6/dist-packages/gnuradio/gr and I see 

In the cross compiled version of the same directory I don't see _gnuradio_core_runtime.so only _gnuradio_core_runtime.la.  Could this be causing this issue?  Unlike my working x86 build I don't have any shared object files in the cross compiled build.  Why is this?  Am I missing a configuration option or is there something that could cause the shared objects not to be built?

Any ideas what could cause this import error?


On Fri, Apr 15, 2011 at 8:30 AM, Phelps Williams <address@hidden> wrote:
Setting PKG_CONFIG_PATH to the uhd build directory did the trick.


On Tue, Apr 12, 2011 at 11:06 PM, Josh Blum <address@hidden> wrote:

On 04/12/2011 07:58 PM, Phelps Williams wrote:
> I believe I managed to get UHD building properly, I'll post more details


> when I know for sure (haven't fully tested yet).  One thing I've run into
> however is that the gnuradio configure script doesn't allow the uhd path to
> be specified (ie --with-uhd[=PATH]).  This should probably be fixed.

I'm not familiar w/ this concept. I usually set the PKG_CONFIG_PATH to
help the gnuradio-configure find the header and library paths. What
would --with-uhd= do?


> On Sun, Apr 10, 2011 at 6:42 PM, Josh Blum <address@hidden> wrote:
>> On 04/10/2011 05:48 PM, Phelps Williams wrote:
>>> I am trying to cross compile UHD for a ppc embedded target (an e500 cpu)
>> but
>>> I'm running into issues with cmake.  It seemingly keeps defaulting back
>> to
>>> the local build tools rather than the crosstools ng toolchain.  Has
>> anybody
>>> had success with this?
>> This may be helpful http://www.itk.org/Wiki/CMake_Cross_Compiling
>> I have never had the chance to build/run uhd on a non x86 architecture,
>> especially since apple switched over. This should be interesting.
>> -Josh
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

reply via email to

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