[Top][All Lists]

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

Re: [Discuss-gnuradio] run-time error when using gsl libraries in a cust

From: Zing Yu
Subject: Re: [Discuss-gnuradio] run-time error when using gsl libraries in a custom block
Date: Mon, 29 Oct 2012 09:44:47 -0700 (PDT)

forgot to cc my response to the list, so, here it is:

> If you expose gsl routines in your header, and you give this header to
> swig, swig tries to "export" everything it sees in the header.

> You can probably make the error go away by adding gsl libraries to
> GR_SWIG_LIBRARIES (set this before the call to GR_SWIG_MAKE).

I have changed the below line in CMakeLists.txt file in gnuradio/gr-howto-write-a-block/swig:
set(GR_SWIG_LIBRARIES gnuradio-howto)
set(GR_SWIG_LIBRARIES gnuradio-howto gsl)

Now, I get the following error when I run my flow-graph in GRC:
Traceback (most recent call last):
  File "/home/wlab/Desktop/mahboob-grc-files/top_block.py", line 15, in <module>
    import howto
  File "/usr/local/lib/python2.7/dist-packages/howto/__init__.py", line 45, in <module>
    from howto_swig import *
  File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 26, in <module>
    _howto_swig = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 22, in swig_import_helper
    _mod = imp.load_module('_howto_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgsl.so.0: undefined symbol: cblas_dasum

So now, is "cblas_dasum" not being identified? Why? Any suggestions?

reply via email to

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