Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Example of Virtual Keyboard showing in different languages
Forum Updated to NodeBB v4.3 + New Features

Example of Virtual Keyboard showing in different languages

Scheduled Pinned Locked Moved Unsolved General and Desktop
55 Posts 7 Posters 27.9k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on last edited by Pradeep Kumar
    #27

    HI,

    now i used like

    -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ /home/user/Qt5.8.0/5.8/gcc_64/bin/qmake

    Then ran

    -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ make

    Now i am getting below mentioned error.

    g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_VIRTUALKEYBOARD_DEFAULT_STYLE="default" -DQT_VIRTUALKEYBOARD_DESKTOP -DQT_VIRTUALKEYBOARD_HAVE_XCB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/user/Qt5.8.0/5.8/gcc_64/include -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtQuick -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtGui/5.8.0 -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtGui/5.8.0/QtGui -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtGui -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtQml -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtNetwork -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtCore/5.8.0 -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtCore/5.8.0/QtCore -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/user/Qt5.8.0/5.8/gcc_64/mkspecs/linux-g++ -o .obj/inputcontext.o inputcontext.cpp

    g++: error: unrecognized command line option ‘-std=c++1z’
    g++: error: unrecognized command line option ‘-Wdate-time’

    make: *** [.obj/inputcontext.o] Error 1

    Please help me out.

    Thanks,

    Pradeep Kumar
    Qt,QML Developer

    jsulmJ 1 Reply Last reply
    0
    • Pradeep KumarP Pradeep Kumar

      HI,

      now i used like

      -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ /home/user/Qt5.8.0/5.8/gcc_64/bin/qmake

      Then ran

      -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ make

      Now i am getting below mentioned error.

      g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_VIRTUALKEYBOARD_DEFAULT_STYLE="default" -DQT_VIRTUALKEYBOARD_DESKTOP -DQT_VIRTUALKEYBOARD_HAVE_XCB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/user/Qt5.8.0/5.8/gcc_64/include -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtQuick -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtGui/5.8.0 -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtGui/5.8.0/QtGui -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtGui -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtQml -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtNetwork -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtCore/5.8.0 -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtCore/5.8.0/QtCore -I/home/user/Qt5.8.0/5.8/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/user/Qt5.8.0/5.8/gcc_64/mkspecs/linux-g++ -o .obj/inputcontext.o inputcontext.cpp

      g++: error: unrecognized command line option ‘-std=c++1z’
      g++: error: unrecognized command line option ‘-Wdate-time’

      make: *** [.obj/inputcontext.o] Error 1

      Please help me out.

      Thanks,

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #28

      @Pradeep-Kumar said in Example of Virtual Keyboard showing in different languages:

      Qt5.8.0/5.8/gcc_64/bin/qmake

      I thought you want to build for your target device using your cross compiled Qt 5.4? Now you're building for desktop Qt 5.9. What do you want to do?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by
        #29

        Hi,

        I want to compile the virtualkeyboard for ubuntu and raspberry pi board as i did for windows,

        In windows i was able to compile and get it,
        here is the screenshot

        https://postimg.org/image/xfcbfbmmp/

        So i was trying and getting the errors as mentioned in my earlier post,

        So asking guidance,

        Thanks,

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #30

          Like I already wrote: use the full path to the qmake executable matching the version of Qt you want to build the module for.

          Also, use out of source builds since you are going to compile for several platforms, that will avoid "polluting" the source tree with build artefacts.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Pradeep KumarP 1 Reply Last reply
          1
          • SGaistS SGaist

            Like I already wrote: use the full path to the qmake executable matching the version of Qt you want to build the module for.

            Also, use out of source builds since you are going to compile for several platforms, that will avoid "polluting" the source tree with build artefacts.

            Pradeep KumarP Offline
            Pradeep KumarP Offline
            Pradeep Kumar
            wrote on last edited by
            #31

            @SGaist said in Example of Virtual Keyboard showing in different languages:

            Like I already wrote: use the full path to the qmake executable matching the version of Qt you want to build the module for.

            Also, use out of source builds since you are going to compile for several platforms, that will avoid "polluting" the source tree with build artefacts.

            Use the full path?.

            can u explain this well Qt5.8 is installed in home directory i am using fullpath only.
            /home/user/Qt5.8.0/5.8/gcc_64/bin/qmake

            Thanks,

            Pradeep Kumar
            Qt,QML Developer

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #32

              Just to be sure, are we clear that this one will only be valid for building the module for your Qt 5.8 installation ?

              By the way, what version of g++ are you running on your machine ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • Pradeep KumarP Offline
                Pradeep KumarP Offline
                Pradeep Kumar
                wrote on last edited by
                #33

                gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

                Thanks,

                Pradeep Kumar
                Qt,QML Developer

                1 Reply Last reply
                0
                • Pradeep KumarP Offline
                  Pradeep KumarP Offline
                  Pradeep Kumar
                  wrote on last edited by
                  #34

                  Hi,

                  what is the

                  g++: error: unrecognized command line option ‘-std=c++1z’
                  g++: error: unrecognized command line option ‘-Wdate-time’

                  and what is -std=c++1z , -Wdate-time

                  and should i turn off or disable -std=c++1z , -Wdate-time ,

                  Thanks,

                  Pradeep Kumar
                  Qt,QML Developer

                  jsulmJ 1 Reply Last reply
                  0
                  • Pradeep KumarP Pradeep Kumar

                    Hi,

                    what is the

                    g++: error: unrecognized command line option ‘-std=c++1z’
                    g++: error: unrecognized command line option ‘-Wdate-time’

                    and what is -std=c++1z , -Wdate-time

                    and should i turn off or disable -std=c++1z , -Wdate-time ,

                    Thanks,

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #35

                    @Pradeep-Kumar Make sure you're building from a clean state!
                    What I mean: if you don't use out of source build then extract the source code archive again and try to build again. Better to use out of source builds as @SGaist suggested.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • mrdebugM Offline
                      mrdebugM Offline
                      mrdebug
                      wrote on last edited by
                      #36

                      I have the same problem on Linux.

                      Need programmers to hire?
                      www.labcsp.com
                      www.denisgottardello.it
                      GMT+1
                      Skype: mrdebug

                      1 Reply Last reply
                      0
                      • Pradeep KumarP Offline
                        Pradeep KumarP Offline
                        Pradeep Kumar
                        wrote on last edited by
                        #37

                        Hi,

                        Still the same error.
                        I used qtvirtualkeyboard source code , moved out into different folder, followed the same steps .
                        Still same getting

                        g++: error: unrecognized command line option ‘-std=c++1z’
                        g++: error: unrecognized command line option ‘-Wdate-time’

                        Thanks,

                        Pradeep Kumar
                        Qt,QML Developer

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #38

                          I think they should be the same but can you just check that g++ is the same version as gcc ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • Pradeep KumarP Offline
                            Pradeep KumarP Offline
                            Pradeep Kumar
                            wrote on last edited by
                            #39

                            Hi,

                            Both are same versions.

                            4.8.4-2ubuntu1~14.04.3

                            Thanks,

                            Pradeep Kumar
                            Qt,QML Developer

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #40

                              From the supported platform 5.9 is at Ubuntu 16.04. You're version of g++ is a bit outdated in that regards so you'll have to modify the mkspec a bit to remove the date-time warning as well as change the c++1z with something a little older like c++14.

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • Pradeep KumarP Offline
                                Pradeep KumarP Offline
                                Pradeep Kumar
                                wrote on last edited by
                                #41

                                Hi,

                                I have updated g++,

                                gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~14.04)
                                gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~14.04)

                                gcc is same as g++,

                                still i am unable to achieve it.

                                1. i used qmake
                                  -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ /home/user/Qt5.8.0/5.8/gcc_64/bin/qmake

                                2. then used make

                                -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ make
                                rm -f libqtvirtualkeyboardplugin.so
                                g++ -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN/../../lib -Wl,-rpath,$ORIGIN/../../lib -shared -o libqtvirtualkeyboardplugin.so .obj/platforminputcontext.o .obj/inputcontext.o .obj/abstractinputmethod.o .obj/plaininputmethod.o .obj/inputengine.o .obj/shifthandler.o .obj/plugin.o .obj/inputmethod.o .obj/selectionlistmodel.o .obj/defaultinputmethod.o .obj/abstractinputpanel.o .obj/enterkeyaction.o .obj/enterkeyactionattachedtype.o .obj/settings.o .obj/virtualkeyboardsettings.o .obj/trace.o .obj/desktopinputpanel.o .obj/inputview.o .obj/appinputpanel.o .obj/qrc_default_style.o .obj/qrc_retro_style.o .obj/qrc_content.o .obj/qrc_layouts.o .obj/moc_platforminputcontext.o .obj/moc_inputcontext.o .obj/moc_abstractinputmethod.o .obj/moc_plaininputmethod.o .obj/moc_inputengine.o .obj/moc_shifthandler.o .obj/moc_inputmethod.o .obj/moc_selectionlistmodel.o .obj/moc_defaultinputmethod.o .obj/moc_abstractinputpanel.o .obj/moc_enterkeyaction.o .obj/moc_enterkeyactionattachedtype.o .obj/moc_settings.o .obj/moc_virtualkeyboardsettings.o .obj/moc_plugin.o .obj/moc_trace.o .obj/moc_desktopinputpanel.o .obj/moc_inputview.o .obj/moc_appinputpanel.o -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -L/home/dheerendra/Qt5.8.0/5.8/gcc_64/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread
                                /usr/bin/ld: .obj/platforminputcontext.o: Relocations in generic ELF (EM: 40)
                                .obj/platforminputcontext.o: error adding symbols: File in wrong format
                                collect2: error: ld returned 1 exit status
                                make: *** [../../plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so] Error 1

                                I am getting the above errors, can u help me out,

                                Please provide guidance,

                                Thanks,

                                Pradeep Kumar
                                Qt,QML Developer

                                jsulmJ 1 Reply Last reply
                                0
                                • Pradeep KumarP Offline
                                  Pradeep KumarP Offline
                                  Pradeep Kumar
                                  wrote on last edited by
                                  #42

                                  HI,

                                  I installed latest g++ and gcc versions and

                                  1. used qmake.
                                  2. then make clean.
                                  3. then make.
                                  4. make install.

                                  Then ran the basic program which is present in the path
                                  /home/user/Qt5.8.0/5.8/Src/qtvirtualkeyboard/examples/virtualkeyboard/basic

                                  I am getting virtual keyboard in ubuntu,
                                  Thanks for the solutions and help,

                                  But when i change the language present in the path,
                                  /home/user/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard

                                  as CONFIG += lang-ar_AR in the virtualkeyboard.pro file,

                                  then again followed the steps to compile the plugin,
                                  but when i ran the basic program to launch virtual keyboard, i am not getting the button enabled, to select the language,

                                  Please provide the guidance,

                                  Thanks,

                                  Pradeep Kumar
                                  Qt,QML Developer

                                  1 Reply Last reply
                                  0
                                  • Pradeep KumarP Pradeep Kumar

                                    Hi,

                                    I have updated g++,

                                    gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~14.04)
                                    gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~14.04)

                                    gcc is same as g++,

                                    still i am unable to achieve it.

                                    1. i used qmake
                                      -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ /home/user/Qt5.8.0/5.8/gcc_64/bin/qmake

                                    2. then used make

                                    -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ make
                                    rm -f libqtvirtualkeyboardplugin.so
                                    g++ -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,$ORIGIN/../../lib -Wl,-rpath,$ORIGIN/../../lib -shared -o libqtvirtualkeyboardplugin.so .obj/platforminputcontext.o .obj/inputcontext.o .obj/abstractinputmethod.o .obj/plaininputmethod.o .obj/inputengine.o .obj/shifthandler.o .obj/plugin.o .obj/inputmethod.o .obj/selectionlistmodel.o .obj/defaultinputmethod.o .obj/abstractinputpanel.o .obj/enterkeyaction.o .obj/enterkeyactionattachedtype.o .obj/settings.o .obj/virtualkeyboardsettings.o .obj/trace.o .obj/desktopinputpanel.o .obj/inputview.o .obj/appinputpanel.o .obj/qrc_default_style.o .obj/qrc_retro_style.o .obj/qrc_content.o .obj/qrc_layouts.o .obj/moc_platforminputcontext.o .obj/moc_inputcontext.o .obj/moc_abstractinputmethod.o .obj/moc_plaininputmethod.o .obj/moc_inputengine.o .obj/moc_shifthandler.o .obj/moc_inputmethod.o .obj/moc_selectionlistmodel.o .obj/moc_defaultinputmethod.o .obj/moc_abstractinputpanel.o .obj/moc_enterkeyaction.o .obj/moc_enterkeyactionattachedtype.o .obj/moc_settings.o .obj/moc_virtualkeyboardsettings.o .obj/moc_plugin.o .obj/moc_trace.o .obj/moc_desktopinputpanel.o .obj/moc_inputview.o .obj/moc_appinputpanel.o -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -L/home/dheerendra/Qt5.8.0/5.8/gcc_64/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread
                                    /usr/bin/ld: .obj/platforminputcontext.o: Relocations in generic ELF (EM: 40)
                                    .obj/platforminputcontext.o: error adding symbols: File in wrong format
                                    collect2: error: ld returned 1 exit status
                                    make: *** [../../plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so] Error 1

                                    I am getting the above errors, can u help me out,

                                    Please provide guidance,

                                    Thanks,

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #43

                                    @Pradeep-Kumar said in Example of Virtual Keyboard showing in different languages:

                                    .obj/platforminputcontext.o: error adding symbols: File in wrong format

                                    you should do it from a clean state - looks like you have binaries built with the old compiler.

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • Pradeep KumarP Offline
                                      Pradeep KumarP Offline
                                      Pradeep Kumar
                                      wrote on last edited by
                                      #44

                                      Yes @jsulm i got that point made a clean then built it i got the virtual keyboard, but i am not getting for different languages, tats y i posted in earlier post.

                                      Thanks,

                                      Pradeep Kumar
                                      Qt,QML Developer

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #45

                                        AFAICS you are setting only one language when building the module. You should list all the languages you want to support.

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        0
                                        • Pradeep KumarP Offline
                                          Pradeep KumarP Offline
                                          Pradeep Kumar
                                          wrote on last edited by Pradeep Kumar
                                          #46

                                          nope still the same, i provided 4 languages in .pro file,

                                          still the same issue.

                                          when i run make install

                                          -Inspiron-3558:~/Qt5.8.0/5.8/Src/qtvirtualkeyboard/src/virtualkeyboard$ make install
                                          install -m 755 -p ../../plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so /home/user/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so
                                          strip --strip-unneeded /home/dheerendra/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so
                                          install -m 644 -p /home/user/Qt5.8.0/5.8/Src/qtvirtualkeyboard/lib/cmake/Qt5Gui/Qt5Gui_QVirtualKeyboardPlugin.cmake /home/dheerendra/Qt5.8.0/5.8/gcc_64/lib/cmake/Qt5Gui/

                                          after this i run sample program.

                                          Thanks,

                                          Pradeep Kumar
                                          Qt,QML Developer

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved