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

QT Virtual Keyboard compile errors



  • Hello All,

    I'm trying to compile QT virtual keyboard under Ubuntu. However, I see lot of compile errors related to import version number. The error is "package import required a version number". I used src/virtualkeyboard/virtualkeyboard.pro project.

    QT Creator documentation says "A version number can optionally be added but is not strictly required in Qt Quick Ultralite". Is there a way I can make compiler ignore these errors. Any help is appreciated.

    Regards,
    MG


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Which version of QtVirtualKeyoard ?
    How did you get it ?
    With which version of Qt ?
    On which version of Ubuntu ?



  • I downloaded the QT virtual keyboard source from git repo. git://code.qt.io/qt/qtvirtualkeyboard.git (dev branch)
    I'm using QT creator 4.14.0-rc1 based on QT 5.15.2. OS is Ubuntu 18.04 64-bit.

    Is there any specific configuration that I need to make it work?

    Thanks in advance.
    MG


  • Lifetime Qt Champion

    This does not answer the Which Qt version question. The version used for Qt Creator has nothing to do with the one you use to build the module even if they match.

    As for your issue, checkout the branch that matches the Qt version you are using to build the module. The dev branch is for Qt 6.



  • @madhug You should not use the dev branch but clone the branch that matches the version of Qt, for example if you are using Qt 5.15.2 then you must execute:

    git clone -b 5.15.2 git://code.qt.io/qt/qtvirtualkeyboard.git 
    cd qtvirtualkeyboard
    /path/of/qmake .
    make
    make install
    


  • Thanks for the reply.

    make results in following error "Some of the required modules (qtHaveModule(quick) qtHaveModule(svg)) are not available".

    Is there a way to know what packages/modules are missing?

    Thanks,
    MG



  • @madhug QtVirtualKeyboard needs the QtSvg module so I need the following to continue helping you:

    • How did you install Qt? Have you used the online installer or the OS repository libraries (like apt-get)?


  • I installed the trial version using online installer. I did not use repository libraries.



  • I had also tried installing QT using apt-get, but I get the same error.



  • Finally, I was able to compile the code from repository. Both QT and Qtvirtualkeyboard compiled successfully. The problem was there were two different versions of qmake. After using the correct one there was no problem.

    One last question. How can i use or run virtual keyboard. I did all above steps (make, make install).



  • @madhug said in QT Virtual Keyboard compile errors:

    One last question. How can i use or run virtual keyboard. I did all above steps (make, make install)

    If your issue is fixed, now that you can build the Qt Virtual Keyboard please mark this post as solved and create a different post for that new question.


  • Lifetime Qt Champion

    @madhug said in QT Virtual Keyboard compile errors:

    One last question. How can i use or run virtual keyboard. I did all above steps (make, make install).

    The use of Qt Virtual Keyboard is explained here.


Log in to reply