qt4-tools-native not compiling
Hi,
I'm trying to build qt4-tools-native (I'm on tested_2011-01-28 currently). It fails while compiling qegl_qws.cpp (see log below).
There seems to be a problem with the Qt configure script checking for EGL include files and detecting EGL support. Don't know if it should or shouldn't. Nevertheless if I remove my build hosts /usr/include/EGL directory, compiling qt4-tools-native works fine. I'm using Gentoo64 and the EGL headers are from media-libs/mesa ebuild. So installing mesa-dev package on some other distribution will possibly lead to this error, too. Any hint how to fix this?
Best Regards
Thomas
Build Configuration:BB_VERSION = "1.10.2"METADATA_BRANCH = "<unknown>"METADATA_REVISION = "3a7b93a"
TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "am3517-evm" DISTRO = "angstrom" DISTRO_VERSION = "2010.7-test-20110209" TARGET_FPU = "hard"
log.do_compile:
<...>
g++ -c -isystem/boards/am3517-evm/oe-tested_2011-01-28/tmp/sysroots/x86_64-linu x/usr/include -O2 -g -I/boards/am3517-evm/oe-tested_2011-01-28/tmp/sysroots/x86_ 64-linux/usr/include -fno-exceptions -O2 -fvisibility=hidden -fvisibility-inline s-hidden -Wall -W -D_REENTRANT -fPIC -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQ T_NO_IMAGEFORMAT_PNG -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEX T -DQT_HAVE_SSE2 -DQT_NO_FONTCONFIG -DQT_NO_FREETYPE -DQT_NO_OPENTYPE -DQT_NO_ST YLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQ T_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_ QAPP_SRC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_L ARGEFILE_SOURCE -I../../mkspecs/qws/linux-x86_64-g++ -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I.rcc/release-s tatic-emb-x86_64 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-static-emb- x86_64 -I.uic/release-static-emb-x86_64 -o .obj/release-static-emb-x86_64/qegl_q ws.o egl/qegl_qws.cpp
moc embedded/qsoundqss_qws.h
moc embedded/qcopchannel_qws.h
moc embedded/qdecorationplugin_qws.h
moc embedded/qdirectpainter_qws.h
moc embedded/qwsmanager_qws.h
moc embedded/qtransportauth_qws.hembedded/qtransportauth_qws.h:0: Warning: No relevant classes found. No output g enerated.
moc embedded/qwssocket_qws.h
In file included from ../../include/QtCore/qcoreevent.h:1,
from ../../include/QtCore/../../src/corelib/kernel/qcoreapplica
tion.h:46,
from ../../include/QtCore/qcoreapplication.h:1,
from ../../include/QtGui/../../src/gui/kernel/qapplication.h:45
,
from ../../include/QtGui/qapplication.h:1,
from egl/qegl_qws.cpp:51:../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:69: error: expected i dentifier before numeric constant ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:69: error: expected ' }' before numeric constant ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:69: error: expected u nqualified-id before numeric constant ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:297: error: expected ')' before 'type' ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:298: error: declarati on of '~QEvent' as non-member ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:299: error: 'Type' do es not name a type ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:300: error: non-membe r function 'bool spontaneous()' cannot have cv-qualifier ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'bool sp ontaneous()':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:300: error: 'spont' w as not declared in this scope ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'void se tAccepted(bool)':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:302: error: 'm_accept ' was not declared in this scope ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: At global scope:../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:303: error: non-membe r function 'bool isAccepted()' cannot have cv-qualifier ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'bool is Accepted()':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:303: error: 'm_accept ' was not declared in this scope ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'void ac cept()':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:305: error: 'm_accept ' was not declared in this scope ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'void ig nore()':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:306: error: 'm_accept ' was not declared in this scope ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: At global scope:../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:310: error: expected unqualified-id before 'protected' ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:314: error: expected unqualified-id before 'private' ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:316: error: expected initializer before ':' token ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:317: error: expected initializer before ':' token ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:318: error: expected initializer before ':' token ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:320: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:321: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:322: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:323: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:324: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:325: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:326: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:327: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:328: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:329: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:330: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:331: error: 'friend' used outside of class ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:332: error: expected declaration before '}' token
moc embedded/qwsembedwidget.h
moc embedded/qscreendriverplugin_qws.h
moc embedded/qkbddriverplugin_qws.h ../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:308: warning: 'int re gisterEventType(int)' declared 'static' but never defined
moc embedded/qmousedriverplugin_qws.h
make: *** [.obj/release-static-emb-x86_64/qegl_qws.o] Error 1
make: *** Waiting for unfinished jobs....
FATAL: oe_runmake failed
ERROR: Function do_compile failed
I am experiencing the same problem, also on Gentoo x86_64.
Quoted 49 lines · Thomas Elste
Hi,
I'm trying to build qt4-tools-native (I'm on tested_2011-01-28 currently). It fails while compiling qegl_qws.cpp (see log below).
There seems to be a problem with the Qt configure script checking for EGL include files and detecting EGL support. Don't know if it should or shouldn't. Nevertheless if I remove my build hosts/usr/include/EGLdirectory, compiling qt4-tools-native works fine. I'm using Gentoo64 and the EGL headers are from media-libs/mesa ebuild. So installing mesa-dev package on some other distribution will possibly lead to this error, too. Any hint how to fix this?Best Regards
ThomasBuild Configuration:
BB_VERSION= "1.10.2"METADATA_BRANCH= "<unknown>"METADATA_REVISION= "3a7b93a"TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "am3517-evm" DISTRO = "angstrom" DISTRO_VERSION = "2010.7-test-20110209" TARGET_FPU = "hard"log.do_compile:
<...>
g++ -c -isystem/boards/am3517-evm/oe-tested_2011-01-28/tmp/sysroots/x86_64-linu x/usr/include -O2 -g -I/boards/am3517-evm/oe-tested_2011-01-28/tmp/sysroots/x86_ 64-linux/usr/include -fno-exceptions -O2 -fvisibility=hidden(quoted diff) +0
-3-fvisibility-inline s-hidden -Wall -W -D_REENTRANT -fPIC -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQ
T_NO_IMAGEFORMAT_PNG-DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE(quoted diff) +0
-5-DQT_HAVE_MMXEX T -DQT_HAVE_SSE2 -DQT_NO_FONTCONFIG -DQT_NO_FREETYPE -DQT_NO_OPENTYPE -DQT_NO_ST YLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQ T_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_ QAPP_SRC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_L
ARGEFILE_SOURCE-I../../mkspecs/qws/linux-x86_64-g++ -I.(quoted diff) +0
-4-I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I.rcc/release-s tatic-emb-x86_64 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-static-emb- x86_64 -I.uic/release-static-emb-x86_64 -o .obj/release-static-emb-x86_64/qegl_q
Quoted 8 lines
ws.o egl/qegl_qws.cpp moc
embedded/qsoundqss_qws.hmocembedded/qcopchannel_qws.hmocembedded/qdecorationplugin_qws.hmocembedded/qdirectpainter_qws.hmocembedded/qwsmanager_qws.hmocembedded/qtransportauth_qws.hembedded/qtransportauth_qws.h:0: Warning: No relevant classes found. No output g enerated. mocembedded/qwssocket_qws.hIn file included from../../include/QtCore/qcoreevent.h:1,
from
../../include/QtCore/../../src/corelib/kernel/qcoreapplica
Quoted 4 lines
tion.h:46,
from ../../include/QtCore/qcoreapplication.h:1, from
../../include/QtGui/../../src/gui/kernel/qapplication.h:45
Quoted 87 lines
,
from ../../include/QtGui/qapplication.h:1, from egl/qegl_qws.cpp:51:
../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:69: error:
expected i dentifier before numeric constant../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:69: error:
expected ' }' before numeric constant../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:69: error:
expected u nqualified-id before numeric constant../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:297: error:
expected ')' before 'type'../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:298: error:
declarati on of '~QEvent' as non-member../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:299: error:
'Type' do es not name a type../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:300: error:
non-membe r function 'boolspontaneous()' cannot have cv-qualifier../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'bool spontaneous()':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:300: error:
'spont' w as not declared in this scope../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'void se tAccepted(bool)':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:302: error:
'm_accept' was not declared in this scope../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: At global
scope:../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:303:
error: non-membe r function 'boolisAccepted()' cannot have cv-qualifier../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'bool isAccepted()':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:303: error:
'm_accept' was not declared in this scope../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'void accept()':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:305: error:
'm_accept' was not declared in this scope../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: In function 'void ignore()':../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:306: error:
'm_accept' was not declared in this scope../../include/QtCore/../../src/corelib/kernel/qcoreevent.h: At global
scope:../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:310:
error: expected unqualified-id before 'protected'../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:314: error:
expected unqualified-id before 'private'../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:316: error:
expected initializer before ':' token../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:317: error:
expected initializer before ':' token../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:318: error:
expected initializer before ':' token../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:320: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:321: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:322: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:323: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:324: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:325: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:326: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:327: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:328: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:329: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:330: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:331: error:
'friend' used outside of class../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:332: error:
expected declaration before '}' token
mocembedded/qwsembedwidget.h
mocembedded/qscreendriverplugin_qws.h
mocembedded/qkbddriverplugin_qws.h../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:308: warning:
'int re gisterEventType(int)' declared 'static' but never defined mocembedded/qmousedriverplugin_qws.h
make: *** [.obj/release-static-emb-x86_64/qegl_qws.o] Error 1
make: *** Waiting for unfinished jobs....
FATAL:oe_runmakefailed
ERROR: Functiondo_compilefailed