Libserial c++ with gnuradio

Hi,

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

what is this? kindly advice.

Thanks


Best regards

Ayman H.
Embedded system engineer
http://www.linkedin.com/pub/ayman-hendawy/28/375/b5

Cairo,Egypt

Phone: +201110406659

​kindly, could some one figure out my problem.

Thanks​

On Sun, Nov 16, 2014 at 1:30 PM, Ayman H. [email protected]
wrote:

Traceback (most recent call last):
_mod = imp.load_module(‘_C700_swig’, fp, pathname, description)
Ayman H.
Embedded system engineer
http://www.linkedin.com/pub/ayman-hendawy/28/375/b5

Cairo,Egypt

Phone: +201110406659


Best regards

Ayman H.
Embedded system engineer
http://www.linkedin.com/pub/ayman-hendawy/28/375/b5

Cairo,Egypt

Phone: +201110406659

Hi Ayman,

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 :wink:

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…

Best regards,
Marcus


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

On 11/17/2014 02:29 PM, Marcus M. wrote:

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 :wink:

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.

Cheers,
Martin

Guys,

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.

Regards

On Tue, Nov 18, 2014 at 3:37 PM, Martin B. [email protected]
wrote:


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Best regards

Ayman H.
Embedded system engineer
http://www.linkedin.com/pub/ayman-hendawy/28/375/b5

Cairo,Egypt

Phone: +201110406659

On 11/18/2014 02:51 PM, Ayman H. wrote:

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.

Cheers,
M

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ayman,

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)?

Greetings,
Marcus

On 11/18/2014 05:58 PM, Martin B. wrote:

Ayman,

<[email protected] mailto:[email protected]> wrote:
posted relevant information (thanks!), and others may benefit

_______________________________________________ Discuss-gnuradio
mailing list [email protected]
Discuss-gnuradio Info Page

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUa30cAAoJEAFxB7BbsDrL5qAH/R+HTPxRfCorKh9SC21CMDyZ
Q8O6fxtlM4AB29WQW1kJhfNTen/UluCyeMfLGlBaCdi9RU3MwczqXfhgFT6m4CiI
GeSsOc8oGx9tBIfhrcx37m2YBwZ+BVL5hZNbyi/JG5UQmJsygK+Zbll4iUvy4yHp
uIIkpPIoPSEXvajDydVYvtDoyU2kBfZ1WaDlFhYDRUIE1tOAw8EmQzLt9s99dVto
337Iec+Ejm3/gRyRT9m5rWaq9OwDehAwcHyq44iewUd7iSXg9wBgWMfrdPTpz1h0
i47V1PaeN3N4/SFKw0xLbtHWVFGrKd3KKYy0qzmYfQ4jkxbehE+IRT1RMIXWk5A=
=XRvF
-----END PGP SIGNATURE-----