Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Boot2Qt: File was compiled ahead of time with an incompatible version of Qt and the original file cannot be found



  • Hello,

    i'm currently deploying with Boot2Qt to an Toradex iMX6 Module with Qt Demos installed (5.14.1). My developing version of Qt is 5.14.2.

    When deploying in Debug-Mode, everything runs fine. Deploying in Release-Mode, i get this error on launch:

    "FB_MULTI_BUFFER" "2"
    "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
    "QTWEBENGINE_DISABLE_SANDBOX" "1"
    "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
    "QT_IM_MODULE" "qtvirtualkeyboard"
    "QT_QPA_EGLFS_FORCEVSYNC" "1"
    "QT_QUICK_CONTROLS_1_STYLE" "Flat"
    "XDG_RUNTIME_DIR" "/run/user/0"
    "/opt/prototype-01/bin/prototype-01" ()
    Thread is started
    QQmlApplicationEngine failed to load component
    Thread is stopped
    qrc:/main.qml: File was compiled ahead of time with an incompatible version of Qt and the original file cannot be found. Please recompile
    quit
    Process exited with exit code 255
    

    Does this happen because of different qt versions? I tried to get Qt 5.14.1, but only 5.14.2 or 5.13.x is available.

    I appreciate any help, thanks.

    Best regards,
    Kevin



  • Thanks SGaist, i fixed it myself. I build a new boot2qt yocto image for my board using this guide: https://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html
    Now there is the correct qt version and the issue went away.


  • Lifetime Qt Champion

    Hi,

    Boot2Qt being a commercial product, you should contact the Qt Company directly.



  • Thanks SGaist, i fixed it myself. I build a new boot2qt yocto image for my board using this guide: https://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html
    Now there is the correct qt version and the issue went away.


Log in to reply