How to compile kmap2qmap
-
Sure :
QT = core platformsupport-private CONFIG += console SOURCES += main.cpp load(qt_app)
This is the .pro file contains in qt sources (qttools/src/kmap2qmap)
-
When I copy/pastethe commands found in the output compilation sheet in QtCreator in console and modify -o /bin/kmap2qmap to -o ../../bin/kmap2qmap it works.
But the output of executing kmap2qmap is :
./kmap2qmap: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by ./kmap2qmap) ./kmap2qmap: relocation error: ./kmap2qmap: symbol _ZN7QString13toUtf8_helperERKS_, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
-
Are you sure you are not mixing your distribution Qt with the one you installed from the official installer ?
-
I hope not...
How I can check this point ?
EDIT : Ouch.. I'm a little bit confused : On QtCreator in help menu --> based on Qt 5.7.0
When I type in a consoleqmake -v
It's output :
QMake version 3.0 Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
So I guess there is a conflict there...
-
If you're on the command line, just calling
qmake
will call your system's qmake. Use the full path.If using Qt Creator, check the Kit you are using.
-
Kit is using Qt5.7.
Even try with full path to qmake in Qt5.7 directory, still have the same issue :./kmap2qmap: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by ./kmap2qmap)
-
Additional note: the Qt version used to build Qt Creator doesn't matter in regard to the version you use to build your application. You can use Qt Creator with several version of Qt for several different architectures, device etc.
You can try with
LD_LIBRARY_PATH=/path/to/your/Qt/5.7/lib/path ./kmap2qmap
-
Hi @VincentB
can you explain how you did it?
i gave myselv priviledges on /bin so that on QTCreator buld kmap2qmap without any errors.
Now i am facing a problem with this example:kmap2qmap i386/qwertz/de-latin1-nodeadkeys.kmap include/compose.latin1.inc de-latin1-nodeadkeys.qmap
It gives me this error:
/bin/kmap2qmap: error while loading shared libraries: libGAL.so: cannot open shared object file: No such file or directory
-
Hi,
i made it work with the tool kmap2qmap and loaded like this on main:
QEglFSFunctions myKeyboard_Layout; myKeyboard_Layout.loadKeymap("/home/root/de-latin1-nodeadkeys.qmap");
The keymaps on my embedded OS where all with .gz zipped. To make it work with the tool i had to "gunzip" all the files from
/usr/share/keymaps/i386/qwertz and /usr/share/keymaps/i386/include
and
/usr/share/keymaps/i386/qwertz and /usr/share/keymaps/i386/qwertzThan do:
kmap2qmap /usr/share/keymaps/i386/qwertz/de-latin1-nodeadkeys.kmap de-latin1-nodeadkeys.qmapAfter that you have your .qmap file. Copy it to the directory where your application runs at and add the function in main to set the right keymap fo the keyboard.
-
Thanks for sharing your solution !
Happy hacking :)