Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Virtual keyboard ignoring configured languages
Forum Updated to NodeBB v4.3 + New Features

Virtual keyboard ignoring configured languages

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 2.5k Views 4 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    Hi,

    I am building virtual keyboard 2.0.0 for Qt 5.6 with Visual Studio 2015. I can compile it on the command line, and the run the 'basic' example. But no matter what I try, I only have an english keyboard layout.

    Here are my commands, which I execute in the src folder of the virtual keyboard:

    nmake clean
    qmake CONFIG+=lang-de virtualkeyboard.pro
    nnake
    nmake install
    

    After that sequence, I build the examples in the examples/virtualkeyboard subfolder with

    nmake clean
    qmake CONFIG+=debug virtualkeyboard.pro
    nmake
    

    ...and directly execute basic.exe within the debug folder.

    The example works, the keyboard is displayed, but the german keyboard layout is not available.

    Any ideas?

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

      Hi,

      What if you use lang-all ?

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What if you use lang-all ?

        A Offline
        A Offline
        Asperamanca
        wrote on last edited by Asperamanca
        #3

        @SGaist said in Virtual keyboard ignoring configured languages:

        Hi,

        What if you use lang-all ?

        I tried around a little more. One issue seems to be that qmake does not overwrite existing makefiles. No matter how often I run qmake with different config options, the makefiles remain old (and through increased debug level, I saw that the CONFIG variable had changed for qmake, so it should have re-written those makefiles).

        After fixing that by deleting the makefiles manually, I got a change in behavior: The keyboard no longer showed anything. I didn't worry (yet), because lang-all isn't what I need anyway. So I retried the qmake with lang-de.

        Then something strange happened. After building and installing, I was able to start the keyboard - and instead of english and german, I have all languages! It almost looks that I got the keyboard from my previous build - but how can that be?

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

          Are you building out of source ?

          How did you nuke the content of the build directory ?

          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
          • A Offline
            A Offline
            Asperamanca
            wrote on last edited by Asperamanca
            #5

            Yes, I am building from source.
            EDIT: Just to be clear: My Qt is an installed package (5.6.2), I am only building virtual keyboard from source.

            The nuking works by first calling nmake clean, and then a batch file which does the following:

            del /F /S /Q *.mak
            del /F /S /Q *.mak.*
            del /F /S /Q Makefile
            del /F /S /Q Makefile.*
            

            After that, I restart with qmake, nmake and nmake install

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

              That I was expecting ;) I meant "out of the source tree"

              What I usually do is remove the folder used to build to ensure that no invisible files (the ones starting with a dot) comes influence things.

              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
              1
              • A Asperamanca

                Yes, I am building from source.
                EDIT: Just to be clear: My Qt is an installed package (5.6.2), I am only building virtual keyboard from source.

                The nuking works by first calling nmake clean, and then a batch file which does the following:

                del /F /S /Q *.mak
                del /F /S /Q *.mak.*
                del /F /S /Q Makefile
                del /F /S /Q Makefile.*
                

                After that, I restart with qmake, nmake and nmake install

                the_T Offline
                the_T Offline
                the_
                wrote on last edited by
                #7

                @Asperamanca

                why not use

                nmake clean
                nmake distclean
                

                ?

                -- No support in PM --

                A 1 Reply Last reply
                0
                • the_T the_

                  @Asperamanca

                  why not use

                  nmake clean
                  nmake distclean
                  

                  ?

                  A Offline
                  A Offline
                  Asperamanca
                  wrote on last edited by
                  #8

                  @the_ said in Virtual keyboard ignoring configured languages:

                  @Asperamanca

                  why not use

                  nmake clean
                  nmake distclean
                  

                  ?

                  Because you learn something new every day :)

                  the_T 1 Reply Last reply
                  0
                  • A Asperamanca

                    @the_ said in Virtual keyboard ignoring configured languages:

                    @Asperamanca

                    why not use

                    nmake clean
                    nmake distclean
                    

                    ?

                    Because you learn something new every day :)

                    the_T Offline
                    the_T Offline
                    the_
                    wrote on last edited by the_
                    #9

                    @Asperamanca

                    to add:

                    nmake uninstall
                    

                    should be run before clean and distclean to remove the installed files if you want to reinstall it. could cause some troubles to run nmake install if file exists already (especially on windows where a file can not be overwritten while it is in use by another process)

                    --edit
                    can also be combined in one line

                    nmake uninstall clean distclean
                    

                    -- No support in PM --

                    1 Reply Last reply
                    1

                    • Login

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