[solved] cross-compile qt5 using bakeqtpi



  • Hi! I'm trying to cross compile qt5.3 using the easy to use script bakeqtpi but I got an error. The output was:

    @
    NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.
    Configure with '-qreal float' to create a build that is binary compatible with 5.1.
    Info: creating cache file /home/vitor/opt/qt5/qtbase/.qmake.cache

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

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

    touch: cannot touch ‘/home/vitor/opt/qtsdk/qtbase/.CONFIGURED’: Not a directory
    Configuring QT Failed
    @

    The script should run make automatically correct?
    qtbase exists and it's a file, not a directory. How can I proceed?


  • Lifetime Qt Champion

    Hi,

    Did I understand you correctly ? Is qtbase really a file ? It should be a folder



  • I don't know why it's a file..

    @
    vitor@ubuntu:~/opt/qtsdk$ ls -l
    total 28
    drwxrwxr-x 9 vitor vitor 4096 Sep 26 11:12 gnuwin32
    drwxrwxr-x 8 vitor vitor 4096 Oct 30 17:23 packaging-tools
    -rw-rw-r-- 1 vitor vitor 1491 Sep 26 11:33 qtbase
    -rw-rw-r-- 1 vitor vitor 13704 Sep 26 11:33 qtjsbackend
    @

    The folder called qtbase is inside ~/opt/qt5/ not in ~/opt/qtsdk


  • Lifetime Qt Champion

    Seems that there's some mismatch somewhere. Are you using sources that where already configured once ?



  • Yes. But I included --confclean option

    @sudo ./bakeqtpi.bash --webkit --httppi --confclean@

    I can remove everything and start over if is needed.


  • Lifetime Qt Champion

    it should be: make confclean.

    But anyway, you should start from clean sources



  • Like you sugest I delete every thing and start over. But without using the script bakeqtpi. I'm follow this "tutorial":http://qt-project.org/wiki/RaspberryPi_Beginners_guide

    something with opengl? Thanks!

    @make[4]: *** [.obj/qeglfshooks_pi.o] Error 1
    make[4]: Leaving directory /home/vitor/opt/qt5/qtbase/src/plugins/platforms/eglfs' make[3]: *** [sub-eglfs-make_first] Error 2 make[3]: Leaving directory/home/vitor/opt/qt5/qtbase/src/plugins/platforms'
    make[2]: *** [sub-platforms-make_first] Error 2
    make[2]: /home/vitor/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g++ -I. -I../../../../include/QtWidgets/5.3.2 -I../../../../include/QtWidgets/5.3.2/QtWidgets -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui/5.3.2 -I../../../../include/QtGui/5.3.2/QtGui -I../../../../include/QtCore/5.3.2 -I../../../../include/QtCore/5.3.2/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/mnt/rasp-pi-rootfs/opt/vc/include -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vcos/pthreads -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vmcs_host/linux -o .obj/qaccessiblemenu.o qaccessiblemenu.cpp
    *** Waiting for unfinished jobs....
    /home/vitor/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g++ -I. -I../../../../include/QtWidgets/5.3.2 -I../../../../include/QtWidgets/5.3.2/QtWidgets -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui/5.3.2 -I../../../../include/QtGui/5.3.2/QtGui -I../../../../include/QtCore/5.3.2 -I../../../../include/QtCore/5.3.2/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/mnt/rasp-pi-rootfs/opt/vc/include -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vcos/pthreads -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vmcs_host/linux -o .obj/itemviews.o itemviews.cpp
    /home/vitor/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g++ -I. -I../../../../include/QtWidgets/5.3.2 -I../../../../include/QtWidgets/5.3.2/QtWidgets -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui/5.3.2 -I../../../../include/QtGui/5.3.2/QtGui -I../../../../include/QtCore/5.3.2 -I../../../../include/QtCore/5.3.2/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/mnt/rasp-pi-rootfs/opt/vc/include -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vcos/pthreads -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vmcs_host/linux -o .obj/main.o main.cpp
    rm -f libqtaccessiblewidgets.so
    /home/vitor/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 -o libqtaccessiblewidgets.so .obj/main.o .obj/simplewidgets.o .obj/rangecontrols.o .obj/complexwidgets.o .obj/qaccessiblewidgets.o .obj/qaccessiblemenu.o .obj/itemviews.o -L/mnt/rasp-pi-rootfs/opt/vc/lib -L/home/vitor/opt/qt5/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread
    mv -f libqtaccessiblewidgets.so ../../../../plugins/accessible/
    make[4]: Leaving directory /home/vitor/opt/qt5/qtbase/src/plugins/accessible/widgets' make[3]: Leaving directory/home/vitor/opt/qt5/qtbase/src/plugins/accessible'
    make[2]: Leaving directory /home/vitor/opt/qt5/qtbase/src/plugins' make[1]: *** [sub-plugins-make_first] Error 2 make[1]: Leaving directory/home/vitor/opt/qt5/qtbase/src'
    make: *** [sub-src-make_first] Error 2@


  • Lifetime Qt Champion

    Can you run it in single thread mode, the error will be shown more clearly



  • I did it. The output was big..I put it in "gist":https://gist.github.com/vitorcarvalhoml/5b2f81ff164220505bbb.


  • Lifetime Qt Champion

    You're not the first one hitting this, you can change the type like suggested and continue forward.



  • I didn't follow you. Ho can I change the type? Are you talking about this line?

    @../../../../mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp:118:66: error: cannot convert ‘DISPMANX_TRANSFORM_T’ to ‘VC_IMAGE_TRANSFORM_T’ for argument ‘9’ to ‘int vc_dispmanx_element_change_attributes(DISPMANX_UPDATE_HANDLE_T, DISPMANX_ELEMENT_HANDLE_T, uint32_t, int32_t, uint8_t, const VC_RECT_T*, const VC_RECT_T*, DISPMANX_RESOURCE_HANDLE_T, VC_IMAGE_TRANSFORM_T)’@

    Thanks!


  • Lifetime Qt Champion

    Yes, that line



  • Is this a bug? I follow this "thread":http://qt-project.org/forums/viewthread/33587 and it works.

    Thanks! ;)


  • Lifetime Qt Champion

    Might be, you should check the "bug report system":http://bugreports.qt-project.org to see if something known, if now please consider opening a new report


Log in to reply
 

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