Important: Please read the Qt Code of Conduct -

Error using kmap2qmap

  • Hi,
    i compile the kmap2qmap tool and it gave me an error: cannot open output file /bin/kmap2qmap: Permission denied

    So i gave myself priviledges on /bin so i can read/write there.
    Qt Creator compiled project with no errors after that.

    Now on terminal i want to test this example:

    kmap2qmap i386/qwertz/de-latin1-nodeadkeys.kmap include/ de-latin1-nodeadkeys.qmap

    But it gives me this error:

    /bin/kmap2qmap: error while loading shared libraries: cannot open shared object file: No such file or directory

    Any idea?

  • Lifetime Qt Champion

    Can you try ldd on the kmap2qmap

    It sounds like it wants the : 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 :)

  • Lifetime Qt Champion

    @michaelL Do you really want to install it in /bin?
    Normal users should not have write access there (for good reasons).

  • @jsulm How do i deal with this error then:
    /usr/arm-linux-gnueabihf/bin/ error: fatal error: /bin/kmap2qmap: open: Permission denied

    @mrjj the is a gaphic library for the embedded processor. I dont think i cant get acess to install it.

  • Lifetime Qt Champion

    @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 += console

    SOURCES += main.cpp


    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/ 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

  • Lifetime Qt Champion

    @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 include

    Parsing 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.gz

    I 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.qmap

    But that didnt worked becouse the default keyboard was still selected instead of my german one.

Log in to reply