# Libserial c++ with gnuradio

**URL:** <https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082>\
**Category:** GNU Radio\
**Created:** [November 16, 2014, 12:31pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082 "2014-11-16T12:31:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [November 16, 2014, 12:31pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082/1 "2014-11-16T12:31:41Z")

</div>

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](http://www.linkedin.com/pub/ayman-hendawy/28/375/b5)

Cairo,Egypt

Phone: +201110406659

---

<div class="post-metadata">

**Author:** ![Ayman\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Ayman\_H](https://www.ruby-forum.com/u/Ayman_H)\
**Post date:** [November 17, 2014, 1:01pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082/2 "2014-11-17T13:01:39Z")

</div>

​kindly, could some one figure out my problem.

Thanks​

On Sun, Nov 16, 2014 at 1:30 PM, Ayman H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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](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](http://www.linkedin.com/pub/ayman-hendawy/28/375/b5)

Cairo,Egypt

Phone: +201110406659

---

<div class="post-metadata">

**Author:** ![Ayman\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Ayman\_H](https://www.ruby-forum.com/u/Ayman_H)\
**Post date:** [November 17, 2014, 2:30pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082/3 "2014-11-17T14:30:38Z")

</div>

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 😉

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

---

<div class="post-metadata">

**Author:** ![Ayman\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Ayman\_H](https://www.ruby-forum.com/u/Ayman_H)\
**Post date:** [November 17, 2014, 8:16pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082/4 "2014-11-17T20:16:34Z")

</div>

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

---

<div class="post-metadata">

**Author:** ![Ayman\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Ayman\_H](https://www.ruby-forum.com/u/Ayman_H)\
**Post date:** [November 18, 2014, 2:38pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082/5 "2014-11-18T14:38:55Z")

</div>

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 😉

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

---

<div class="post-metadata">

**Author:** ![Ayman\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Ayman\_H](https://www.ruby-forum.com/u/Ayman_H)\
**Post date:** [November 18, 2014, 2:53pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082/6 "2014-11-18T14:53:26Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> * * *
> 
> Discuss-gnuradio mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

–  
Best regards

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

Cairo,Egypt

Phone: +201110406659

---

<div class="post-metadata">

**Author:** ![Ayman\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Ayman\_H](https://www.ruby-forum.com/u/Ayman_H)\
**Post date:** [November 18, 2014, 5:59pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082/7 "2014-11-18T17:59:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ayman\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Ayman\_H](https://www.ruby-forum.com/u/Ayman_H)\
**Post date:** [November 18, 2014, 6:10pm UTC](https://www.ruby-forum.com/t/libserial-c-with-gnuradio/233082/8 "2014-11-18T18:10:08Z")

</div>

-----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,
> 
> > \<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
> > posted relevant information (thanks!), and others may benefit
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

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