crayzeewulf / libserial

Serial Port Programming in C++
BSD 3-Clause "New" or "Revised" License
398 stars 141 forks source link

Please help me regarding libserial library #111

Closed saiwho closed 6 years ago

saiwho commented 6 years ago

Dear crayzeewulf,

screenshot from 2018-07-07 02-40-55 screenshot from 2018-07-07 02-41-12

Please I am facing this problem when executing the program. Program is compiling good but it is not executing. Please help me with this issue.

Thank you, With my best regards, Sai pothan

mcsauder commented 6 years ago

Hello @saipothanjanjanam ,

If you have cloned the current master branch of the repo and are building it, your issue could be occurring because the debian package of LibSerial is out of step with the Github repo.

First, could you use apt to remove LibSerial,

sudo apt remove libserial-dev

Next, (in your libserial directory), use the make instructions to install the library built from your local repo clone, (the make instructions in the README, rather than the compile script which uses CMake):

make -f Makefile.dist
./configure --prefix=/usr/include/
make
sudo make install

Last, recompile your program and let us know if the issue persists. If the issue does remain, let us know and I'll dig into it further with you!

-Mark

saiwho commented 6 years ago

Dear Mark,

Thank you very much. I have used locate and forcedly delete all the libserial files. Then, installed like sudo apt-get install libserial-dev. It is working now.

Best Regards, Sai pothan

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, Jul 6, 2018 at 10:59 PM, Mark Sauder notifications@github.com wrote:

Hello @saipothanjanjanam https://github.com/saipothanjanjanam ,

If you have cloned the current master branch of the repo and are building it, your issue could be occurring because the debian package of LibSerial is out of step with the Girhub repo.

First, could you use apt to remove LibSerial,

sudo apt remove libserial-dev

Next, use the make instructions to install the library built from your local repo clone, (the make instructions in the README, rather than the compile script which uses CMake):

make -f Makefile.dist ./configure --prefix=/usr/include/ make sudo make install

Last, recompile your program and let us know if the issue persists. If the issue does remain, let us know and I'll dig into it further with you!

-Mark

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/crayzeewulf/libserial/issues/111#issuecomment-403098608, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae55H7ekEHsq297oz_N9rovXs9wNgKkGks5uD55sgaJpZM4VFqPN .

mcsauder commented 6 years ago

Glad to hear things are fixed up!