Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running example on Raspbian/Raspberry #3

Closed
vinifr opened this issue Jan 24, 2016 · 6 comments
Closed

Running example on Raspbian/Raspberry #3

vinifr opened this issue Jan 24, 2016 · 6 comments

Comments

@vinifr
Copy link
Contributor

vinifr commented Jan 24, 2016

Hi, I cross compiled QT 5.5.1 and QtFreeVirtualKeyboard for Raspberry PI 2.

I copied manually the .qml files for /usr/local/qt5pi/qml/QtQuick/VirtualKeyboard and libVirtualKeyboard.so for /usr/local/qt5pi/plugins/platforminputcontexts/
But when I try to execute, return:

./virtualkeyboardqmldemo
VirtualKeyboardInputContextPlugin::create: "qtvirtualkeyboard"
�[9;0]Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
file:///home/pi/projs/QtFreeVirtualKeyboard/examples/qmlapp/MainContainer.qml:20:1: module "QtQuick.VirtualKeyboard" is not installed
import QtQuick.VirtualKeyboard 1.0
^
VirtualKeyboardInputContext::setFocusObject

@vinifr
Copy link
Contributor Author

vinifr commented Jan 24, 2016

Nevermind, I just copied qlmdir and worked fine! Thanks for your great work!

@nemethati10
Copy link

nemethati10 commented Feb 8, 2017

Where did you copy qmldir? (in which directory) Have you done anything else?
I tried running on rasperry pi 2 and on ubuntu 16 using qt 5.5.1.
I got the same error: " module "QtQuick.FreeVirtualKeyboard" is not installed
import QtQuick.FreeVirtualKeyboard 1.0 "

@vinifr
Copy link
Contributor Author

vinifr commented Feb 8, 2017

First of all, I did cross compile Qt5 for Raspberry: http://exploreembedded.tumblr.com/post/115333857238/guide-to-cross-compile-qt-54-for-the-raspberry-pi, but i'm not sure if we can use QT5 from Ubuntu. Has Ubuntu enabled hard acceleration on Qt5? You have to check out.

Also, I did change import VirtualKeyboard 1.0 to import QtQuick.VirtualKeyboard 1.0, inside InputPanel.qml and KeyButton.qml.

After that, copy the files to file system of Raspberry, where you did install QT5(cross compiled or Ubuntu version). In my case(QT5 cross compiled):
*.qml ---> /usr/local/qt5pi/qml/QtQuick/VirtualKeyboard
libVirtualKeyboard.so --> /usr/local/qt5pi/plugins/platforminputcontexts

That is all.

@bahaammar
Copy link

@vinifr hello, I cross compiled QT 5.5.0 for Raspberry pi 2 and Now i don't know how to do this for the project "QtFreeVirtualKeyboard" to make it run on my Raspberry pi.

@vinifr
Copy link
Contributor Author

vinifr commented May 24, 2017

@bahaeddine93 hi. You have to configure QT Creator in your PC. Look in section "Setting up Qt Creator" from "https://exploreembedded.tumblr.com/post/115333857238/guide-to-cross-compile-qt-54-for-the-raspberry-pi". After configure QT Creator, open virtualkeyboard.pro, choice Raspberry target created in Kits and compile.

@bahaammar
Copy link

bahaammar commented May 24, 2017

@vinifr I followed this tutorial "https://visualgdb.com/tutorials/raspberry/qt/embedded/" to cross compile QT5.5.0 for raspberry but when I came to deployment (hello world app) I get this error "Unknown module(s) in QT: qml quick". How can I fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants