I am trying to build qt5.6(jansa/master-5.6) along with yocto for imx6qsabreauto. While compiling qtbase, I am getting error:
../../include/QtCore/../../../git/src/corelib/io/qtextstream.h:46:2: error: #error qtextstream.h must be included before any header file that defines Status
| #error qtextstream.h must be included before any header file that defines Status
| ^
Also attached full error log.
Googled a lot but could not make it working.
Any idea or suggestions?
Regards,
Ankur
Original Attachment has been moved to: log.do_compile.563.zip
已解决! 转到解答。
After spending around 10 working day, I figured out the problem. I have done two things:
1) Add this qtextream.h and qdatastream.h(if it complaints about this file as well) in a file which has this error.
2) There were some other errors as well like "None=0 where None is not defined". For this errors just move your platform dependent X11 header files after all qt headers.
I did it in file qeglpbuffer_p.h and moved #include <EGL/egl.h> after all other qt header files (kept it as last include file).
That made it working.
Cheers..
After spending around 10 working day, I figured out the problem. I have done two things:
1) Add this qtextream.h and qdatastream.h(if it complaints about this file as well) in a file which has this error.
2) There were some other errors as well like "None=0 where None is not defined". For this errors just move your platform dependent X11 header files after all qt headers.
I did it in file qeglpbuffer_p.h and moved #include <EGL/egl.h> after all other qt header files (kept it as last include file).
That made it working.
Cheers..