Page 1 of 1

Build:Faild: uart plugin for Fedora (qt5)

Posted: Wed Sep 09, 2015 9:04 am
by cingulingu
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)

Re: Build:Faild: uart plugin for Fedora (qt5)

Posted: Wed Sep 09, 2015 4:25 pm
by mcallegari
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

Re: Build:Faild: uart plugin for Fedora (qt5)

Posted: Wed Sep 09, 2015 7:03 pm
by plugz
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. :)

Re: Build:Faild: uart plugin for Fedora (qt5)

Posted: Wed Sep 09, 2015 8:09 pm
by cingulingu
It seems to work. :D