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.
  • S SGaist
    6 May 2023, 19:26

    Hi and welcome to devnet,

    Which error did you get ?
    What is your environment ?

    M Offline
    M Offline
    myneur
    wrote on 7 May 2023, 07:19 last edited by myneur 5 Jul 2023, 08:04
    #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".
    
    J 1 Reply Last reply 7 May 2023, 08:21
    0
    • M myneur
      7 May 2023, 07:19

      @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".
      
      J Offline
      J Offline
      JonB
      wrote on 7 May 2023, 08:21 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?

      M 1 Reply Last reply 7 May 2023, 10:40
      0
      • J JonB
        7 May 2023, 08:21

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

        M Offline
        M Offline
        myneur
        wrote on 7 May 2023, 10:40 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.

        S 1 Reply Last reply 11 May 2023, 19:04
        0
        • M myneur
          7 May 2023, 10:40

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

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 11 May 2023, 19:04 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 21 May 2023, 10:42 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

            M 1 Reply Last reply 23 May 2023, 20:18
            0
            • D debian
              21 May 2023, 10:42

              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

              M Offline
              M Offline
              myneur
              wrote on 23 May 2023, 20:18 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 30 May 2023, 09:02
              0
              • M myneur
                23 May 2023, 20:18

                @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 30 May 2023, 09:02 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 ;)

                S 1 Reply Last reply 30 May 2023, 10:22
                0
                • D debian
                  30 May 2023, 09:02

                  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 ;)

                  S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 30 May 2023, 10:22 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

                  M 1 Reply Last reply 31 May 2023, 15:42
                  0
                  • S SGaist
                    30 May 2023, 10:22

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

                    M Offline
                    M Offline
                    myneur
                    wrote on 31 May 2023, 15:42 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.

                    S 1 Reply Last reply 13 Jun 2023, 15:55
                    0
                    • M myneur
                      31 May 2023, 15:42

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

                      S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 13 Jun 2023, 15:55 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