|
From: | Guy Holtzman |
Subject: | Re: [Discuss-gnuradio] Import error of grextras, undefined symbol |
Date: | Tue, 28 May 2013 00:36:09 +0300 |
I remember that I reinstall to the latest gnuradio entirely and then the error disappeared.On Mon, May 27, 2013 at 12:36 PM, Guy Holtzman <address@hidden> wrote:
I am having the same issue, I tried Josh suggestion without success.what should I do to make it work?here is a error log containing the versions I am using:linux; GNU C++ version 4.6.3; Boost_104800; UHD_003.005.003-78-g49a4929b
<<< Welcome to GNU Radio Companion 3.6.4.1 >>>
Loading: "/home/guy/Documents/tdma_hier.grc"
>>> Done
Showing: "/home/guy/Documents/tdma_hier.grc"
Loading: "/home/guy/Documents/tdma_radio.grc"
>>> Done
Showing: "/home/guy/Documents/tdma_radio.grc"
Generating: "/home/guy/Documents/tdma_radio.py"
>>> Warning: This flow graph may not have flow control: no audio or usrp blocks found. Add a Misc->Throttle block to your flow graph to avoid CPU congestion.
Executing: "/home/guy/Documents/tdma_radio.py"
linux; GNU C++ version 4.6.3; Boost_104800; UHD_003.005.003-78-g49a4929b
Traceback (most recent call last):
File "/home/guy/Documents/tdma_radio.py", line 8, in <module>
execfile("/home/guy/.grc_gnuradio/tdma_hier.py")
File "/home/guy/.grc_gnuradio/tdma_hier.py", line 14, in <module>ImportError: libgnuradio-extras.so: cannot open shared object file: No such file or directory
import gnuradio.extras as gr_extras
File "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/__init__.py", line 20, in <module>
from extras_swig import *
File "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/extras_swig.py", line 26, in <module>
_extras_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/extras_swig.py", line 22, in swig_import_helper
_mod = imp.load_module('_extras_swig', fp, pathname, description)
Thanks, Guy
On Wed, Feb 20, 2013 at 8:22 PM, Alex Zhang <address@hidden> wrote:
Maybe it is due to my own building which is very obsolete. I will try to reinstall the latest version of gnuradio and grextras.On Tue, Feb 19, 2013 at 5:35 PM, Alex Zhang <address@hidden> wrote:
It does not work after the modification and rebuilding of the grextras.My modification:
diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
index 129d789..42732a3 100644
--- a/swig/CMakeLists.txt
+++ b/swig/CMakeLists.txt
@@ -58,7 +58,7 @@ foreach(incdir ${GRUEL_INCLUDE_DIRS})
list(APPEND GR_SWIG_INCLUDE_DIRS ${incdir}/gruel/swig)
endforeach(incdir)
-set(GR_SWIG_LIBRARIES gnuradio-extras)
+list(APPEND GR_SWIG_LIBRARIES gnuradio-extras ${GNURADIO_CORE_LIBRARIES} ${G
set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/extras_swig_doc.i)
set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include/gnuradio/extras)
On Tue, Feb 19, 2013 at 5:06 PM, Josh Blum <address@hidden> wrote:
Maybe its missing a library to link w/
On 02/19/2013 04:59 PM, Alex Zhang wrote:
> Hi,
>
> I believe some other guys met this problem before, but I did not find the
> final solution expressed clearly.
>
> After I installed the gnuradio, grextras, then in my python code which trys
> to import the extras_swig like
>
> import gnuradio.extras as gr_extras
> File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/__init__.py", line
> 20, in <module>
> from extras_swig import *
> File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/extras_swig.py",
> line 26, in <module>
> _extras_swig = swig_import_helper()
> File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/extras_swig.py",
> line 22, in swig_import_helper
> _mod = imp.load_module('_extras_swig', fp, pathname, description)
> ImportError: /usr/local/lib/libgnuradio-extras.so: undefined symbol:
> _ZN15gr_msg_accepter4postEN5boost13intrusive_ptrIN3pmt8pmt_baseEEES4_
>
>
> Can any one shed a light on it?
Can you try this and let me know?
http://pastebin.com/t5GL5Z6G
-josh
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Alex,Dreams can come true – just believe.--
Alex,Dreams can come true – just believe.
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Alex,Dreams can come true – just believe.
[Prev in Thread] | Current Thread | [Next in Thread] |