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. Error using kmap2qmap

Error using kmap2qmap

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 3 Posters 2.8k 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.
  • michaelLM Offline
    michaelLM Offline
    michaelL
    wrote on last edited by
    #1

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

    jsulmJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      Can you try ldd on the kmap2qmap

      It 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 :)

      1 Reply Last reply
      0
      • michaelLM michaelL

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

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

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

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

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

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

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

          jsulmJ 1 Reply Last reply
          0
          • michaelLM michaelL

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

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

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

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

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

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

              @jsulm this is my .pro file:

              QT = core platformsupport-private
              CONFIG += console

              SOURCES += 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"

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

                @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

                jsulmJ 1 Reply Last reply
                0
                • michaelLM michaelL

                  @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

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

                  @michaelL Did you run qmake again after changing project file?

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

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

                    @jsulm Yes i clean the project and build it again on Qt Creator.

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

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

                      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