Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. kmap2qmap
Forum Update on Monday, May 27th 2025

kmap2qmap

Scheduled Pinned Locked Moved Unsolved Brainstorm
12 Posts 4 Posters 1.3k Views
  • 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.
  • myneurM myneur

    I'm struggling to create a qmap keyboard layout file.

    I'm actually not a C programmer and failed to compile the kmap2qmap from the source due to compiler errors, probably due to wrong env setup.
    I need the qmap layout to write on my remarkable.com tablet by a Czech language that is not supported.

    Could anybody help me by converting the following kmaps to the qmap?

    https://drive.google.com/file/d/1pKMPj7zAunB7StkNase9sjJLa0ypbQFc/view?usp=sharing

    Thank you very much.

    SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Which error did you get ?
    What is your environment ?

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

    myneurM 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi and welcome to devnet,

      Which error did you get ?
      What is your environment ?

      myneurM Offline
      myneurM Offline
      myneur
      wrote on last edited by myneur
      #3

      @SGaist MacOS with dev tools and QT installed.
      cmake of QT/qttools-dev/src/kmap2qmap fails on:

      CMake Error at CMakeLists.txt:8 (qt_internal_add_app):
        Unknown CMake command "qt_internal_add_app".
      
      JonBJ 1 Reply Last reply
      0
      • myneurM myneur

        @SGaist MacOS with dev tools and QT installed.
        cmake of QT/qttools-dev/src/kmap2qmap fails on:

        CMake Error at CMakeLists.txt:8 (qt_internal_add_app):
          Unknown CMake command "qt_internal_add_app".
        
        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #4

        @myneur
        What version of Qt? Is https://forum.qt.io/topic/137975/how-to-build-qmlls-binary-from-source with the same error message relevant to your situation?

        myneurM 1 Reply Last reply
        0
        • JonBJ JonB

          @myneur
          What version of Qt? Is https://forum.qt.io/topic/137975/how-to-build-qmlls-binary-from-source with the same error message relevant to your situation?

          myneurM Offline
          myneurM Offline
          myneur
          wrote on last edited by
          #5

          @JonB I installed the latest stable one. I tried both full dmg install and brew. It might be the similar problem, but it does not seem they solved it.
          I actually don't know how the CMakeLists.txt works.
          I'd just need to convert a kmap to qmap.

          SGaistS 1 Reply Last reply
          0
          • myneurM myneur

            @JonB I installed the latest stable one. I tried both full dmg install and brew. It might be the similar problem, but it does not seem they solved it.
            I actually don't know how the CMakeLists.txt works.
            I'd just need to convert a kmap to qmap.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            From the looks of it, it's not buildable on macOS. The Qt 6 version also seems to fail in a similar fashion on Linux.

            However, the Qt 5 version can be built on Linux without issues.

            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
            • D Offline
              D Offline
              debian
              wrote on last edited by
              #7

              qmap is a very simple format ,https://github.com/qt/qtbase/blob/dev/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp#L516, you can create custom converter at another language, e.g. Python or Perl

              myneurM 1 Reply Last reply
              0
              • D debian

                qmap is a very simple format ,https://github.com/qt/qtbase/blob/dev/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp#L516, you can create custom converter at another language, e.g. Python or Perl

                myneurM Offline
                myneurM Offline
                myneur
                wrote on last edited by
                #8

                @debian how much time would it take you to write it?
                There are 500 lines and 12 libraries.
                That sounds like at least weeks of full-time work even for an experienced programmer, including the testing. Let alone me:)

                According to @SGaist it seems that compiling is not an option in the latest QT anymore.
                So I keep this thread here just for the chance that somebody has it already compiled in his system and would just be willing to convert it.

                But thank you guys for your inputs. Definitely good insights, I'm just not experienced to take them further by myself.

                D 1 Reply Last reply
                0
                • myneurM myneur

                  @debian how much time would it take you to write it?
                  There are 500 lines and 12 libraries.
                  That sounds like at least weeks of full-time work even for an experienced programmer, including the testing. Let alone me:)

                  According to @SGaist it seems that compiling is not an option in the latest QT anymore.
                  So I keep this thread here just for the chance that somebody has it already compiled in his system and would just be willing to convert it.

                  But thank you guys for your inputs. Definitely good insights, I'm just not experienced to take them further by myself.

                  D Offline
                  D Offline
                  debian
                  wrote on last edited by
                  #9

                  how much time would it take you to write it?

                  I use qmap for custom keyboard and my script, I use Perl, is a very simple and small, 3258 bytes and it can be reduced because contain comments and documentation, so this is not very hard task ;)

                  SGaistS 1 Reply Last reply
                  0
                  • D debian

                    how much time would it take you to write it?

                    I use qmap for custom keyboard and my script, I use Perl, is a very simple and small, 3258 bytes and it can be reduced because contain comments and documentation, so this is not very hard task ;)

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @myneuUsing the Qt 5 based kmap2qmap, it tells me that it can't parse the us.kmap file (looks to be already some sort of binary file) and generates 40 warnings for the de.kmap and 43 for cz.kmap.

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

                    myneurM 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      @myneuUsing the Qt 5 based kmap2qmap, it tells me that it can't parse the us.kmap file (looks to be already some sort of binary file) and generates 40 warnings for the de.kmap and 43 for cz.kmap.

                      myneurM Offline
                      myneurM Offline
                      myneur
                      wrote on last edited by
                      #11

                      @SGaist That's strange. When I open the *.kmap in a text editor, it shows me just a text starting with:

                      keymaps 0-127
                      keycode 1 = Escape Escape Escape Escape…
                      

                      That file was created on Debian, I just zipped it on MacOS. Not sure if/how that could break things(?) or if there are variations in the kmap across linuxes.

                      Here are direct links to files that one good guy with Debian created me:

                      https://nyx.cz/files/000/026/2611388_0f12e02f9f931e4ea0ab/original.bin?name=us.kmap
                      https://nyx.cz/files/000/026/2611389_c85ecb66f87a7a17c55f/original.bin?name=de.kmap
                      https://nyx.cz/files/000/026/2611390_eff4e16b73a7633fa6bc/original.bin?name=cz.kmap

                      Thanks for trying.

                      SGaistS 1 Reply Last reply
                      0
                      • myneurM myneur

                        @SGaist That's strange. When I open the *.kmap in a text editor, it shows me just a text starting with:

                        keymaps 0-127
                        keycode 1 = Escape Escape Escape Escape…
                        

                        That file was created on Debian, I just zipped it on MacOS. Not sure if/how that could break things(?) or if there are variations in the kmap across linuxes.

                        Here are direct links to files that one good guy with Debian created me:

                        https://nyx.cz/files/000/026/2611388_0f12e02f9f931e4ea0ab/original.bin?name=us.kmap
                        https://nyx.cz/files/000/026/2611389_c85ecb66f87a7a17c55f/original.bin?name=de.kmap
                        https://nyx.cz/files/000/026/2611390_eff4e16b73a7633fa6bc/original.bin?name=cz.kmap

                        Thanks for trying.

                        SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        @myneur The us.kmap from that link is valid. However, it does also generate around 40 warnings as the other two do.

                        Do you still need the qmap files ?

                        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

                        • Login

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