discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] New Module using gr_modtool Error


From: Michael Dickens
Subject: Re: [Discuss-gnuradio] New Module using gr_modtool Error
Date: Mon, 21 Nov 2016 08:20:39 -0500

Hi Vamsi - You didn't post the error, though I'm guessing it's that when
you execute anything that uses your new OOT Python does not find the OOT
install. Also I'm not sure where you're getting your instructions from,
but you don't "sudo make" ... just "make" is plenty good enough.

For a "normal" OOT, you'll want to specify something like (watch wrap):
{{{
cmake -DCMAKE_INSTALL_PREFIX=/opt/local
-DPYTHON_EXECUTABLE=/opt/local/bin/python2.7
-DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers[http://python.framework/Versions/2.7/Headers]
-DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python[http://python.framework/Versions/2.7/Python]
-DGR_PYTHON_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages[http://python.framework/Versions/2.7/lib/python2.7/site-packages]
..
}}}
to (1) make sure you're using the correct Python (assuming
PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR, and PYTHON_LIBRARY are correct) 
and (2) that the various Python installs are into the correct locations
(GR_PYTHON_DIR is correct). If you are using some other Python, you'll
need to set all of the PYTHON variables accordingly.

Hope this is useful! - MLD

On Mon, Nov 21, 2016, at 08:13 AM, Michael Dickens wrote:
> 
> ---------- Forwarded message ----------
> From: *vamsi krishna* <address@hidden>
> Date: Sun, Nov 20, 2016 at 11:09 PM
> Subject: Re: [Discuss-gnuradio] New Module using gr_modtool Error
> To: "address@hidden" <address@hidden>
> 
> 
> Hi,
> 
> I tried the following solution, but it didn't work for me.
> 
> Re: [Discuss-gnuradio] gr_modtool cmake/make problems on 
> OSX[https://lists.gnu.org/archive/html/discuss-gnuradio/2013-02/msg00497.html]
> 
> 
> Re: [Discuss-gnuradio] gr_modtool cmake/make problems on OSX


> 
> 
> 
> 
> I have tried the same on another macOS system with similar results.
> I have even installing gnuradio-devel macport, which gave the same error.
> 
> Thanks
> Vamsi
> 
> On Sunday, 20 November 2016 3:17 PM, vamsi krishna <address@hidden> wrote:
> 
> 
> Hi,
> 
> I run into the attached error when I create a OOT module and installed it 
> using the following commands.
> 
> #gnuradio commands
> #inside gr directory
> mkdir build
> cd build
> 
> #the install prefix should be given as gnuradio was installed in that folder 
> by MacPorts
> cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/local ../
> #to build all files
> sudo make
> 
> #to build and install files into correct directory to be used by GRC
> sudo make install
> 
> #To remove certain error for GNURadio companion
> 
> export PYTHONPATH=/opt/local/lib/python2.7/site-packages/
> 
> I do not have problem using existing blocks, but when I create a new (empty 
> module without any code in work function)
> 
> I'm running GNURadio on Mac installed using MacPorts
> sudo port install gnuradio -universal
> 
> There is a python error twice (once during initial GNURadio startup and later 
> when I click on block the gnuradio crashes with that error again)
> 
> Could you please let me know how to resolve the issue?



reply via email to

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