I installed libserial to access serial port by C++ from gnu radio, I
included #include <SerialStream.h> #include
to lib/XXXX.cc file,
I can compile successfully, but when I run top_block.py file I get the
following error,
Traceback (most recent call last):
File “./top_block.py”, line 13, in
import C700
File “/usr/local/lib/python2.7/dist-packages/C700/init.py”, line
45,
in
from C700_swig import *
File “/usr/local/lib/python2.7/dist-packages/C700/C700_swig.py”, line
28,
in
_C700_swig = swig_import_helper()
File “/usr/local/lib/python2.7/dist-packages/C700/C700_swig.py”, line
24,
in swig_import_helper
_mod = imp.load_module(‘_C700_swig’, fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-C700.so: undefined symbol:
_ZN9LibSerial15SerialStreamBuf9showmanycEv
you wrote your original question on a sunday and try to hurry things by
asking but 24hrs later – that might be a bit impatient for an open
source project with volunteers trying to help you with something that
has not much to do with their project, but with your usage of a
completely different library
However: you’re not linking properly against your serial library, as it
seems. Make sure you modify the CMakeLists in your project’s root and
lib/ folder to include the library you want to link against…
you wrote your original question on a sunday and try to hurry things by
asking but 24hrs later – that might be a bit impatient for an open
source project with volunteers trying to help you with something that
has not much to do with their project, but with your usage of a
completely different library
I would like to emphasize this. Your question was polite and you posted
relevant information (thanks!), and others may benefit from this thread
in the future if they search the archives.
Still, questions are much better received if not seeming impatient. When
posting on this list, we’re asking others to do free work for us. The
reason this works is because we all help each other on this list, and
respect the fact that others are giving up time to share their code and
knowledge.
Sorry if I asked a question in a way annoying you, but after passing 24h
with no answer, I though that’s something wrong with my question, may be
it
was silly or irrelevant, that made me ask again, especially after I kept
googling it with no result, any way, kindly accept my apologize again,
actually I was shocked from those tough words of Martin, and didn’t know
what to say yesterday, sorry Martin :), and sorry for wasting your time
guys.
Regarding my problem, I’m trying to figure out what to change in those
cmake files mentioned by Martin, I will test Seth procedure, thanks
Martin,
& Seth.
Sorry if I asked a question in a way annoying you, but after passing 24h
with no answer, I though that’s something wrong with my question, may be
it was silly or irrelevant, that made me ask again, especially after I
kept googling it with no result, any way, kindly accept my apologize
again, actually I was shocked from those tough words of Martin, and
didn’t know what to say yesterday, sorry Martin :), and sorry for
wasting your time guys.
Ayman,
no need to apologize. Every once in a while I bring this up again. Your
original question was well posed, as I wrote before. Occasionally,
you’ll have to wait for a couple of days before you get an answer.
Regarding my problem, I’m trying to figure out what to change in those
cmake files mentioned by Martin, I will test Seth procedure, thanks
Martin, & Seth.
Also, I think you’re mixing up “Martin” and “Marcus” – the latter was
the one who gave you your answer, and the credit’s his.
as Martin said: no need to apologize! As you noticed, I’m (much like
the rest of us GNU Radio people) quite liked helping you (and my
answer was rather short more for the lack of time than for any other
reason).
Has modifying your CMakeLists worked out for you (or was that the
problem at all)?