discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] ImportError: cannot import name myownhowto


From: Zohair
Subject: Re: [Discuss-gnuradio] ImportError: cannot import name myownhowto
Date: Wed, 2 Jun 2010 08:32:34 -0700 (PDT)

When I type: 
~$ sudo ldconfig

I receive:
 /sbin/ldconfig.real: /usr/local/lib/libgnuradio-myownhowto.so.0 is not a
symbolic link


Zohair wrote:
> 
> Hello everyone,
> 
> Incorporating a MATLAB *.so library, I have created a block using the
> howto_square template. I also followed the discussion in the 
> http://old.nabble.com/Need-help-with-gr-how-to-create-a-signal-processing-block-template-td28646216.html
> thread here . The code compiles very nicely but when I run it in GRC I
> receive this message:
> 
> Traceback (most recent call last):
>   File "/home/zohair/Desktop/top_block.py", line 8, in <module>
>     from gnuradio import myownhowto 
> ImportError: cannot import name myownhowto 
> 
> I coped my matlab library (libmyfirstblock.so) to /usr/lib and in my
> /top_dir/lib/makefile.am, I have added these line as instructed in the
> link above:
> 
> AM_CPPFLAGS+=-I$(MATLAB_ROOT)/extern/include
> 
> libgnuradio_myownhowto _la_LIBADD =   \
>       $(GNURADIO_CORE_LA)\
>       -L/usr/lib -lmyfirstblock
> 
> libgnuradio_myownhowto _la_LDFLAGS =  \
>       $(NO_UNDEFINED)\
>       -rpath
> /usr/lib:-L$(MATLAB_ROOT)/bin/glnx86:-I$(MATLAB_ROOT)/extern/include:$(MATLAB_ROOT)/runtime/glnx86:$(MATLAB_ROOT)/sys/os/glnx86
> 
> 
> in my .bashrc file:
> export MATLAB_ROOT="/home/zohair/MATLAB"
> export MY_LIB_ROOT="/home/zohair/MATLAB/work"
> export LD_LIBRARY_PATH="$MATLAB_ROOT/extern/include"
> export PATH="$PATH:$LD_LIBRARY_PATH"
> 
> Any help with this error, please?
> 
> Cheers
> 
> Zohair
> 

-- 
View this message in context: 
http://old.nabble.com/ImportError%3A-cannot-import-name-myownhowto-tp28755411p28756180.html
Sent from the GnuRadio mailing list archive at Nabble.com.




reply via email to

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