hi35xx / hi35xx-buildroot

buildroot for hisilicon hi35xx series
Other
145 stars 96 forks source link

qt5base 编译出错 global.h:86:30: error: division by zero in #16

Open jiamuluo opened 4 years ago

jiamuluo commented 4 years ago

在编译hi3518ev200之后,编译qt5base出现错误 ` Prior to reconfiguration, make sure you remove any leftovers from the previous build.

In file included from /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/include/QtCore/qglobal.h:1:0, from /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/include/QtCore/../../src/corelib/text/qchar.h:43, from /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/include/QtCore/qchar.h:1, from /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/include/QtCore/../../src/corelib/text/qstring.h:49, from /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/include/QtCore/qstring.h:1, from /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/include/QtCore/../../src/corelib/io/qdir.h:43, from /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/include/QtCore/qdir.h:1, from /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/src/corelib/global/qlibraryinfo.cpp:41: /home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/include/QtCore/../../src/corelib/global/qglobal.h:86:30: error: division by zero in #if

define QT_CONFIG(feature) (1/QTFEATURE##feature == 1)

                          ^

/home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/src/corelib/global/qlibraryinfo.cpp:676:7: note: in expansion of macro 'QT_CONFIG'

elif QT_CONFIG(relocatable)

   ^

make[3]: [qlibraryinfo_final.o] Error 1 make[2]: [/home/test/work/hisi3518ev200/hi35xx-buildroot-master/output/build/qt5base-5.14.2/qmake/qmake] Error 2 make[1]: [sub-qmake-qmake-aux-pro-make_first] Error 2 make[1]: Waiting for unfinished jobs.... `

youwupHunag commented 2 years ago

后面怎么解决的呀