Build:Faild: uart plugin for Fedora (qt5)

Post Reply
User avatar
cingulingu
Posts: 57
Joined: Sat Aug 22, 2015 7:42 am
Real Name: Veljko Stankov

Hi. I found that the new "uart plugin" is causing build errors on linux/Fedora 22/Qt5 at: fatal error: stropts.h: No such file or directory
After some reading I found that " stropts.h " (terminal streams) calls was deprecated years ago.
More info: http://eatmyrandom.blogspot.si/2008/05/ ... ctory.html
Is #include <stropts.h> relay needed in uartwidget.cpp?
Opensuse builds --- OK!
[ 1319s] uartwidget.cpp:24:21: fatal error: stropts.h: No such file or directory
[ 1319s] compilation terminated.
[ 1319s] Makefile:451: recipe for target 'uartwidget.o' failed
[ 1319s] make[2]: *** [uartwidget.o] Error 1
[ 1319s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/qlcplus-qt5-4.9.2/plugins/uart'
[ 1319s] Makefile:306: recipe for target 'sub-uart-make_first' failed
[ 1319s] make[1]: *** [sub-uart-make_first] Error 2
[ 1319s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/qlcplus-qt5-4.9.2/plugins'
[ 1319s] Makefile:394: recipe for target 'sub-plugins-make_first-ordered' failed
[ 1319s] make: *** [sub-plugins-make_first-ordered] Error 2
[ 1319s] error: Bad exit status from /var/tmp/rpm-tmp.c3PZ5A (%build)
User avatar
mcallegari
Posts: 4481
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Uhm...this is kind of a problem.

please try to replace the two includes of uartwidget.cpp with these:

#include <sys/ioctl.h>
#include <asm/termbits.h>

And let me know if it works on Fedora.
Thanks
plugz
Posts: 637
Joined: Sun Apr 12, 2015 6:30 pm
Real Name: David

Same issue here on fedora 21.
mcallegari wrote: replace the two includes of uartwidget.cpp with these:

#include <sys/ioctl.h>
#include <asm/termbits.h>
This solution works perfectly. :)
User avatar
cingulingu
Posts: 57
Joined: Sat Aug 22, 2015 7:42 am
Real Name: Veljko Stankov

It seems to work. :D
Post Reply