Compiling Qt5 for RaspPi: Error when building base module



  • Hey,

    I was trying to cross-compile Qt5 for the raspberry pi.
    I set up a new linux system (Lubuntu, 32 bit) and run it in a virtual machine.

    I was following the stepps from the beginners guide on how to build Qt5 for the Raspberry Pi, and everything works fine until I try to call "make" for the qtbase module (configuring works).

    It gives me the following error, which I don't find to by very informative:
    @/home/test_user/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link,/mnt/rasp-pi-rootfs/opt/vc/lib -Wl,-rpath-link,/mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/mnt/rasp-pi-rootfs/lib/arm-linux-gnueabihf --sysroot=/mnt/rasp-pi-rootfs -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/qt5pi/lib -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5Network.so.5 -o libQt5Network.so.5.0.0 .obj/release-shared/qftp.o .obj/release-shared/qhttpnetworkheader.o .obj/release-shared/qhttpnetworkrequest.o .obj/release-shared/qhttpnetworkreply.o .obj/release-shared/qhttpnetworkconnection.o .obj/release-shared/qhttpnetworkconnectionchannel.o .obj/release-shared/qnetworkaccessauthenticationmanager.o .obj/release-shared/qnetworkaccessmanager.o .obj/release-shared/qnetworkaccesscache.o .obj/release-shared/qnetworkaccessbackend.o .obj/release-shared/qnetworkaccessdebugpipebackend.o .obj/release-shared/qnetworkaccessfilebackend.o .obj/release-shared/qnetworkaccesscachebackend.o .obj/release-shared/qnetworkaccessftpbackend.o .obj/release-shared/qnetworkcookie.o .obj/release-shared/qnetworkcookiejar.o .obj/release-shared/qnetworkrequest.o .obj/release-shared/qnetworkreply.o .obj/release-shared/qnetworkreplyimpl.o .obj/release-shared/qnetworkreplydataimpl.o .obj/release-shared/qnetworkreplyhttpimpl.o .obj/release-shared/qnetworkreplyfileimpl.o .obj/release-shared/qabstractnetworkcache.o .obj/release-shared/qnetworkdiskcache.o .obj/release-shared/qhttpthreaddelegate.o .obj/release-shared/qhttpmultipart.o .obj/release-shared/qnetworksession.o .obj/release-shared/qnetworkconfigmanager.o .obj/release-shared/qnetworkconfiguration.o .obj/release-shared/qnetworkconfigmanager_p.o .obj/release-shared/qbearerengine.o .obj/release-shared/qbearerplugin.o .obj/release-shared/qsharednetworksession.o .obj/release-shared/qauthenticator.o .obj/release-shared/qdnslookup.o .obj/release-shared/qhostaddress.o .obj/release-shared/qhostinfo.o .obj/release-shared/qurlinfo.o .obj/release-shared/qnetworkproxy.o .obj/release-shared/qnetworkinterface.o .obj/release-shared/qdnslookup_unix.o .obj/release-shared/qhostinfo_unix.o .obj/release-shared/qnetworkinterface_unix.o .obj/release-shared/qnetworkproxy_generic.o .obj/release-shared/qabstractsocketengine.o .obj/release-shared/qhttpsocketengine.o .obj/release-shared/qsocks5socketengine.o .obj/release-shared/qabstractsocket.o .obj/release-shared/qtcpsocket.o .obj/release-shared/qudpsocket.o .obj/release-shared/qtcpserver.o .obj/release-shared/qlocalsocket.o .obj/release-shared/qlocalserver.o .obj/release-shared/qnativesocketengine.o .obj/release-shared/qnativesocketengine_unix.o .obj/release-shared/qlocalsocket_unix.o .obj/release-shared/qlocalserver_unix.o .obj/release-shared/moc_qhttpnetworkreply_p.o .obj/release-shared/moc_qnetworkaccesscache_p.o .obj/release-shared/moc_qnetworkaccessbackend_p.o .obj/release-shared/moc_qnetworkaccessdebugpipebackend_p.o .obj/release-shared/moc_qnetworkaccessfilebackend_p.o .obj/release-shared/moc_qnetworkaccessftpbackend_p.o .obj/release-shared/moc_qnetworkcookiejar.o .obj/release-shared/moc_qnetworkreply.o .obj/release-shared/moc_qnetworkreplyhttpimpl_p.o .obj/release-shared/moc_qabstractnetworkcache.o .obj/release-shared/moc_qnetworkdiskcache.o .obj/release-shared/moc_qhttpthreaddelegate_p.o .obj/release-shared/moc_qhttpmultipart.o .obj/release-shared/moc_qnetworkconfigmanager_p.o .obj/release-shared/moc_qnetworksession_p.o .obj/release-shared/moc_qbearerplugin_p.o .obj/release-shared/moc_qdnslookup_p.o .obj/release-shared/moc_qhostinfo_p.o .obj/release-shared/moc_qabstractsocketengine_p.o .obj/release-shared/moc_qhttpsocketengine_p.o .obj/release-shared/moc_qsocks5socketengine_p.o .obj/release-shared/moc_qtcpsocket.o .obj/release-shared/moc_qudpsocket.o .obj/release-shared/moc_qnativesocketengine_p.o -L/home/test_user/opt/qt5/qtbase/lib -lQt5Core -lpthread -lz
    ln -s libQt5Network.so.5.0.0 libQt5Network.so
    ln -s libQt5Network.so.5.0.0 libQt5Network.so.5
    ln -s libQt5Network.so.5.0.0 libQt5Network.so.5.0
    rm -f ../../lib/libQt5Network.so.5.0.0
    rm -f ../../lib/libQt5Network.so
    rm -f ../../lib/libQt5Network.so.5
    rm -f ../../lib/libQt5Network.so.5.0
    mv -f libQt5Network.so.5.0.0 libQt5Network.so libQt5Network.so.5 libQt5Network.so.5.0 ../../lib/
    make[2]: Verlasse Verzeichnis '/home/test_user/opt/qt5/qtbase/src/network'
    make[1]: Verlasse Verzeichnis '/home/test_user/opt/qt5/qtbase/src'
    make: *** [sub-src-make_first] Fehler 2
    test_user@test-vb-lubuntu:~/opt/qt5/qtbase$ @

    (where "Verlasse Verzeichnis" means "Leaving directory",
    and "Fehler" means "Error" - for the non-german speaking guys :D )

    ( I put the last few lines from the console here).

    Am I missing a dependency or something? And out of curiosity: why is something happening with qtnetwork, although I'm compiling qtbase?

    Thanks a lot!
    D.



  • I also tried to use the beginners guide, and also run into compile problems, however they do have a link to complete script on the same web page that does work, just look close at the top, I used the link script, and used the "how to" description in the beginners guide, end portion. The link is at the top of the page. I wanted to include my version of the script but is to "large", I can mail it if you send me your address to gdj at creatron.co.za

    or modify this one

    https://raw.github.com/gist/3488286/d1d301946297be999d96df632a0ad0095a4d77e7/bakeqtpi.bash



  • Moin Donner,

    hast du es zum laufen bekommen?
    Ich nutzte das bakeqt script, bekomme allerdings schon Probleme beim kompilieren vom qmake. Irgend eine Idee woran das liegen könnte? Zum Einsatz kommt bei mir momentan Linux Mint 13.



  • Dear All,

    After doing the configure with suitable arguments, generally we get following message in the end:

    Qt is now configured for building. Just run 'gmake'.
    Once everything is built, you must run 'gmake install'.
    Qt will be installed into /usr/local/QT_Src/qtbase/INSTALL_PATH

    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.

    So my advice is just try giving gmake.
    I recently built QT libraries from source code for QT 5.2.1

    Please let me know if you face any issues.

    Cheers!!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.