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. How to Compile and Distruite your application
Qt 6.11 is out! See what's new in the release blog

How to Compile and Distruite your application

Scheduled Pinned Locked Moved General and Desktop
20 Posts 4 Posters 6.2k 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.
  • C Offline
    C Offline
    cincirin
    wrote on last edited by
    #5

    See "this thread":http://qt-project.org/forums/viewthread/1872
    For me it works perfectly both on linux x86 and arm architectures.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dcbasso
      wrote on last edited by
      #6

      The error that I get on VM Ubuntu:

      bash: ./InoveSATBEV: cannot execute binary file

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cincirin
        wrote on last edited by
        #7

        try to change permission:
        @
        chmod u+x InoveSATBEV
        @

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dcbasso
          wrote on last edited by
          #8

          Still not working... same error...
          I clients computer I need to Install something?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cincirin
            wrote on last edited by
            #9

            Are you sure your application was developed for the same client computer architecture ?
            What give you
            @
            lscpu
            @

            command on client machine ?
            And what return
            @
            file InoveSATBEV
            @

            command on client machine ?

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dcbasso
              wrote on last edited by
              #10

              Sure!
              I'm testing in my Virtual Machine!
              Ow good... I think I found the problem... 64bits!
              I compile in 64bits and trying to run on 32bits...

              Return of comand file InoveSATBEV:
              InoveSATBV: setuid ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, BuildID[sha1]=0x0277d22e5789d5b31dd3e18ec41948e9d078fe21, not stripped

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dcbasso
                wrote on last edited by
                #11

                For each plataform I will need copy the code, compile and test?
                I mean, in Linux 32bits and Linux 64bits I will need to compile for each platform... that's right?
                On windows 7 is the same thing?

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  cincirin
                  wrote on last edited by
                  #12

                  Applications developed for 32bits can be executed on windows 64 bits. This also applies to almost all 64 bits linux distributions.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dcbasso
                    wrote on last edited by
                    #13

                    It's possible to me compile the application to Linux 32bits?
                    My computer is 64bits, it's possible to compile to both platform in my environment?

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      cincirin
                      wrote on last edited by
                      #14

                      Yes. Install QtSDK for linux 32 bits in your 64 bits environment.

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dcbasso
                        wrote on last edited by
                        #15

                        Simple.
                        Thanks, I have have more problems I will ask here.

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dcbasso
                          wrote on last edited by
                          #16

                          OK compiled in 32bits, and works fine on 64bits!
                          But When I copy the application to another computer, I got this message:

                          ./InoveSATBV: error while loading shared libraries: libqextserialport-1.2.so.1: cannot open shared object file: No such file or directory

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            dcbasso
                            wrote on last edited by
                            #17

                            Can I embed this ".so" file in my binary?

                            1 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              cincirin
                              wrote on last edited by
                              #18

                              [quote author="dcbasso" date="1344085828"]Can I embed this ".so" file in my binary?[/quote]

                              Yes if you build libqextserialport as static library.

                              [quote author="dcbasso" date="1344085378"]./InoveSATBV: error while loading shared libraries: libqextserialport-1.2.so.1: cannot open shared object file: No such file or directory[/quote]

                              Well, did you build libqextserialport yourself, or did you installed as part as your linux libraries packages ?
                              What is the result of
                              @
                              ldd InoveSATBV
                              @

                              command on client machine ?

                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                dcbasso
                                wrote on last edited by
                                #19

                                I fix the problem using a runner to my application.
                                I don't really like my solution:

                                @
                                #!/bin/sh
                                export LD_LIBRARY_PATH=.
                                ./appname $*
                                @

                                See: http://www.qtcentre.org/wiki/index.php?title=Deploying_Qt_Applications

                                Static library? I will search for this "resource".

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  dcbasso
                                  wrote on last edited by
                                  #20

                                  Static Lib need to be a File ended with ".a"?
                                  How can I configure the .pro file to differ the compilation for 32bits and 64bits?

                                  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