QT Virtual Keyboard compile errors
-
wrote on 21 Dec 2020, 13:27 last edited by
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 -
Hi and welcome to devnet,
Which version of QtVirtualKeyoard ?
How did you get it ?
With which version of Qt ?
On which version of Ubuntu ? -
wrote on 22 Dec 2020, 05:09 last edited by
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 -
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.
-
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.
MGwrote on 22 Dec 2020, 20:13 last edited by eyllanesc@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
-
wrote on 23 Dec 2020, 12:43 last edited by
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 -
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 -
wrote on 24 Dec 2020, 04:18 last edited by
I installed the trial version using online installer. I did not use repository libraries.
-
wrote on 28 Dec 2020, 05:38 last edited by
I had also tried installing QT using apt-get, but I get the same error.
-
wrote on 30 Dec 2020, 13:27 last edited by
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).
-
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).
wrote on 30 Dec 2020, 17:03 last edited by@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.
-
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).
The use of Qt Virtual Keyboard is explained here.
2/12