[Development] Build errors with raspbian

Stephen Kelly stephen.kelly at kdab.com
Thu Nov 14 09:39:29 CET 2013


Hello, 

I get build errors when trying to build qtbase dev branch for raspbian.

  /home/stephen/dev/src/qtbase/configure -prefix /usr -release -device linux-
rasp-pi-g++ -make libs -device-option CROSS_COMPILE=/home/stephen/rpi/gcc-4.7-
linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/stephen/rpi/rasp-
pi-rootfs/ -opensource -confirm-license -no-pch -hostprefix 
/home/stephen/dev/src/qtbase-rpi/hostprefix -extprefix 
/home/stephen/dev/src/qtbase-rpi/extprefix


uphandler.o .obj/release-shared/moc_qsharedmemory.o .obj/release-
shared/moc_qeventdispatcher_unix_p.o .obj/release-shared/moc_qabstractstate.o 
.obj/release-shared/moc_qstate.o .obj/release-shared/moc_qfinalstate.o 
.obj/release-shared/moc_qhistorystate.o .obj/release-
shared/moc_qabstracttransition.o .obj/release-shared/moc_qsignaltransition.o 
.obj/release-shared/moc_qeventtransition.o  -lpthread -lz -lm -ldl -lrt 
.obj/release-shared/qlibrary_unix.o: In function 
`QLibraryPrivate::load_sys()':
qlibrary_unix.cpp:(.text+0x1230): warning: Using 'dlopen' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-
gnueabihf/libdl.a(dlopen.o): In function `dlopen':
(.text+0xc): undefined reference to `__dlopen'
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-
gnueabihf/libdl.a(dlclose.o): In function `dlclose':
(.text+0x0): undefined reference to `__dlclose'
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlsym.o): 
In function `dlsym':
(.text+0xc): undefined reference to `__dlsym'
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-
gnueabihf/libdl.a(dlerror.o): In function `dlerror':
(.text+0x0): undefined reference to `__dlerror'
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-
gnueabihf/libm.a(feholdexcpt.o): In function `feholdexcept':
(.text+0x48): undefined reference to `_dl_hwcap'
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-
gnueabihf/libm.a(fesetenv.o): In function `fesetenv':
(.text+0x64): undefined reference to `_dl_hwcap'
collect2: error: ld returned 1 exit status
make[2]: *** [../../lib/libQt5Core.so.5.3.0] Error 1
make[2]: Leaving directory `/home/stephen/dev/src/qtbase-rpi/src/corelib'
make[1]: *** [sub-corelib-make_first] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from 
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.cpp:51:0:
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.h:78:29: error: 
‘QQmlJS::AST::UiImportList’ has not been declared
     bool visit(QQmlJS::AST::UiImportList *imports);
                             ^
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.h:79:32: error: 
‘QQmlJS::AST::UiImportList’ has not been declared
     void endVisit(QQmlJS::AST::UiImportList *definition);
                                ^
In file included from 
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlcodeparser.cpp:51:0:
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.h:78:29: error: 
‘QQmlJS::AST::UiImportList’ has not been declared
     bool visit(QQmlJS::AST::UiImportList *imports);
                             ^
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.h:79:32: error: 
‘QQmlJS::AST::UiImportList’ has not been declared
     void endVisit(QQmlJS::AST::UiImportList *definition);
                                ^
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.cpp:499:40: error: 
‘bool QmlDocVisitor::visit’ is not a static member of ‘class QmlDocVisitor’
 bool QmlDocVisitor::visit(QQmlJS::AST::UiImportList *imports)
                                        ^
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.cpp:499:27: error: 
‘UiImportList’ is not a member of ‘QQmlJS::AST’
 bool QmlDocVisitor::visit(QQmlJS::AST::UiImportList *imports)
                           ^
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.cpp:499:54: error: 
‘imports’ was not declared in this scope
 bool QmlDocVisitor::visit(QQmlJS::AST::UiImportList *imports)
                                                      ^
/home/stephen/dev/src/qtbase/src/tools/qdoc/qmlvisitor.cpp:500:1: error: 
expected ‘,’ or ‘;’ before ‘{’ token
 {
 ^
make[2]: *** [.obj/release-shared/qmlcodeparser.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [.obj/release-shared/qmlvisitor.o] Error 1
make[2]: Leaving directory `/home/stephen/dev/src/qtbase-rpi/src/tools/qdoc'
make[1]: *** [sub-qdoc-make_first] Error 2
make[1]: Leaving directory `/home/stephen/dev/src/qtbase-rpi/src'
make: *** [sub-src-make_first] Error 2
makeobj[0]: Leaving directory `/home/stephen/dev/src/qtbase-rpi'



Thanks,

-- 
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4842 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131114/3ab15783/attachment.bin>


More information about the Development mailing list