Virtual keyboard ignoring configured languages
-
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 installAfter 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?
-
Hi,
What if you use
lang-all? -
@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?
-
Are you building out of source ?
How did you nuke the content of the build directory ?
-
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
-
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.
-
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_ said in Virtual keyboard ignoring configured languages:
why not use
nmake clean nmake distclean?
Because you learn something new every day :)
-
@the_ said in Virtual keyboard ignoring configured languages:
why not use
nmake clean nmake distclean?
Because you learn something new every day :)
to add:
nmake uninstallshould be run before
cleananddistcleanto remove the installed files if you want to reinstall it. could cause some troubles to runnmake installif 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 linenmake uninstall clean distclean