Unsolved Error using kmap2qmap
-
Hi,
i compile the kmap2qmap tool and it gave me an error: cannot open output file /bin/kmap2qmap: Permission deniedSo i gave myself priviledges on /bin so i can read/write there.
Qt Creator compiled kmap2qmap.pro project with no errors after that.Now on terminal i want to test this example:
kmap2qmap i386/qwertz/de-latin1-nodeadkeys.kmap include/compose.latin1.inc de-latin1-nodeadkeys.qmap
But it gives me this error:
/bin/kmap2qmap: error while loading shared libraries: libGAL.so: cannot open shared object file: No such file or directory
Any idea?
-
Hi
Can you try ldd on the kmap2qmapIt sounds like it wants the : libGAL.so and its not found.
So find a way to install it. not sure if you can apt-get it or part of
bigger thing.But check it first :)
-
@michaelL Do you really want to install it in /bin?
Normal users should not have write access there (for good reasons). -
-
@michaelL Change DESTINATION in pro file to something else
You should have that lib already - how else would you be able to build the project? -
@jsulm this is my .pro file:
QT = core platformsupport-private
CONFIG += consoleSOURCES += main.cpp
load(qt_app)
You mean change the build directory?
This is the compile output error meassge:
/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.gold: fatal error: /bin/kmap2qmap: open: Permission denied
Makefile:83: recipe for target '/bin/kmap2qmap' failed
collect2: error: ld returned 1 exit status
make: *** [/bin/kmap2qmap] Error 1
11:26:43: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project kmap2qmap (kit: Qt 5.5.1 i.MX6)
When executing step "Make" -
@jsulm i didt DESTDIR = /home/michael/
but it still gives me that error.
The output file want to go to /bin/kmap2qmap even when i change the direction -
@michaelL Did you run qmake again after changing project file?
-
@jsulm Yes i clean the project and build it again on Qt Creator.
-
@jsulm Manage to get kmap2qmap working.
So i gave myself priviledges on /bin first.
Send the file /bin/kmap2qmap to my embedded device at its /bin location.
Did this:
cd /usr/share/keymaps/i386/qwertz/kmap2qmap de-latin1-nodeadkeys.kmap de-latin1-nodeadkeys.qmap
A warning came:
Warning: keymap file 'de-latin1-nodeadkeys.kmap', line 4: could not locate keymap includeParsing the specified keymap(s) produced 1 warning(s).
Your generated qmap might not be complete.The de-latin1-nodeadkeys.kmap file was zipped as de-latin1-nodeadkeys.kmap.gz
So i unzipped it as:
gunzip de-latin1-nodeadkeys.kmap.gzI went and ignored the waring and gave it a try by exporting :
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=keymap=/usr/share/keymaps/i386/qwertz/de-latin1-nodeadkeys.qmapBut that didnt worked becouse the default keyboard was still selected instead of my german one.