Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Hello. I am developing Qt software on Debian Linux and I need to create an executable file on another machine.
Forum Updated to NodeBB v4.3 + New Features

Hello. I am developing Qt software on Debian Linux and I need to create an executable file on another machine.

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 879 Views 2 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.
  • S Offline
    S Offline
    Simao
    wrote on last edited by
    #1

    I am developing software with QtCreator on a Debian 10 machine in c ++ and OpenCV. I need to create an executable file to run on another machine. I have tried to use linuxdeployqt (https://github.com/probonopd/linuxdeployqt) however, since the beginning of the year it is not allowed to be used for GLIBC versions above 2.20, with my machine version being 2.28.
    I would like to know the best way to do what you want.

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

      Hi,

      Do you mean the error message relate to the -unsupported-allow-new-glibc flag ?

      Please use meaningful titles. That field is not to start writing your question down.

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

      S 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        Do you mean the error message relate to the -unsupported-allow-new-glibc flag ?

        Please use meaningful titles. That field is not to start writing your question down.

        S Offline
        S Offline
        Simao
        wrote on last edited by
        #3

        @SGaist Yes, when trying to use linuxdeployqt I received an error message "The host system is too new.". I don't necessarily need to do it any other way, so I'm willing to listen to suggestions

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

          Hi
          I tried a chroot and other tricks with glibc but to no avail.
          I ended up using

          ldd file | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /destination
          

          to copy some of them and then manually copy the rest.

          But i can see if you use OpenCV manually copy is tiresome.

          ps. WOW something Debian is actually to new/updated for :)

          1 Reply Last reply
          0
          • S Simao

            @SGaist Yes, when trying to use linuxdeployqt I received an error message "The host system is too new.". I don't necessarily need to do it any other way, so I'm willing to listen to suggestions

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

            @Simao said in Hello. I am developing Qt software on Debian Linux and I need to create an executable file on another machine.:

            @SGaist Yes, when trying to use linuxdeployqt I received an error message "The host system is too new.". I don't necessarily need to do it any other way, so I'm willing to listen to suggestions

            Did you try the option I suggested ?

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

            S 1 Reply Last reply
            1
            • SGaistS SGaist

              @Simao said in Hello. I am developing Qt software on Debian Linux and I need to create an executable file on another machine.:

              @SGaist Yes, when trying to use linuxdeployqt I received an error message "The host system is too new.". I don't necessarily need to do it any other way, so I'm willing to listen to suggestions

              Did you try the option I suggested ?

              S Offline
              S Offline
              Simao
              wrote on last edited by
              #6

              @SGaist What option?

              mrjjM 1 Reply Last reply
              0
              • S Simao

                @SGaist What option?

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Simao
                The one he mentions ?
                alt text

                S 1 Reply Last reply
                1
                • mrjjM mrjj

                  @Simao
                  The one he mentions ?
                  alt text

                  S Offline
                  S Offline
                  Simao
                  wrote on last edited by
                  #8

                  @mrjj Yes.
                  527d6e61-4df7-458a-8831-9133b5a67325-image.png

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

                    What version of linuxdeployqt are you using ?

                    Because the option (-unsupported-allow-new-glibc) you gave should pass in the other branch of the if with just a warning.

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

                    S 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      What version of linuxdeployqt are you using ?

                      Because the option (-unsupported-allow-new-glibc) you gave should pass in the other branch of the if with just a warning.

                      S Offline
                      S Offline
                      Simao
                      wrote on last edited by
                      #10

                      @SGaist I'm sorry, I was doing it wrong.
                      Using the option (-Unsupported-allow-new-glibc), some errors appear as shown in the following image.
                      b015fadb-47c5-4fba-887b-299252069fa7-image.png

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

                        Why do you have android stuff showing up ?

                        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

                        • Login

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