Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to compile kmap2qmap
Forum Updated to NodeBB v4.3 + New Features

How to compile kmap2qmap

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
kmap2qmap
17 Posts 4 Posters 4.5k Views 1 Watching
  • 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.
  • VincentBV VincentB

    I'm using Qt 5.7. How to change the output directory ?

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #6

    @VincentB Can you post the *.pro file of that project?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • VincentBV Offline
      VincentBV Offline
      VincentB
      wrote on last edited by
      #7

      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)

      1 Reply Last reply
      0
      • VincentBV Offline
        VincentBV Offline
        VincentB
        wrote on last edited by VincentB
        #8

        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
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #9

          Are you sure you are not mixing your distribution Qt with the one you installed from the official installer ?

          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
          • VincentBV Offline
            VincentBV Offline
            VincentB
            wrote on last edited by VincentB
            #10

            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 console

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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #11

              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.

              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
              1
              • VincentBV Offline
                VincentBV Offline
                VincentB
                wrote on last edited by
                #12

                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)
                
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #13

                  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

                  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
                  • VincentBV Offline
                    VincentBV Offline
                    VincentB
                    wrote on last edited by
                    #14

                    Hi @SGaist ,

                    Thanks for the tip, it works. But now, I have to clean my qt installations ...

                    1 Reply Last reply
                    0
                    • michaelLM Offline
                      michaelLM Offline
                      michaelL
                      wrote on last edited by
                      #15

                      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

                      1 Reply Last reply
                      0
                      • michaelLM Offline
                        michaelLM Offline
                        michaelL
                        wrote on last edited by
                        #16

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

                        Than do:
                        kmap2qmap /usr/share/keymaps/i386/qwertz/de-latin1-nodeadkeys.kmap de-latin1-nodeadkeys.qmap

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

                        1 Reply Last reply
                        1
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #17

                          Thanks for sharing your solution !

                          Happy hacking :)

                          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