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. Deploy Qt5 on ubuntu
Forum Updated to NodeBB v4.3 + New Features

Deploy Qt5 on ubuntu

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 5 Posters 2.1k 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.
  • AnmolA Offline
    AnmolA Offline
    Anmol
    wrote on last edited by Anmol
    #1

    im new to Ubuntu(linux). i have created a application for windows . and i want to install it also on my ubuntu .
    i have compiled project on ubuntu.

    now i want no create a .deb package for my application. i did google for a while and i discover that i need to copy some lib file to my project. but which one should i copy and which one not(in windows there was lots of .dll files means i can copy every file one by one). and even if some how i manage to copy all lib files how can create a .deb package for ubuntu?

    My project's github link

    JonBJ jsulmJ 2 Replies Last reply
    0
    • AnmolA Anmol

      im new to Ubuntu(linux). i have created a application for windows . and i want to install it also on my ubuntu .
      i have compiled project on ubuntu.

      now i want no create a .deb package for my application. i did google for a while and i discover that i need to copy some lib file to my project. but which one should i copy and which one not(in windows there was lots of .dll files means i can copy every file one by one). and even if some how i manage to copy all lib files how can create a .deb package for ubuntu?

      My project's github link

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Anmol
      Have you considered/Googled for linuxdeployqt? That seems to be the usual way to handle all dependencies etc. It probably does not produce a .deb (I don't know), but it's worth weighing the pros & cons given what it does for packaging all the Qt stuff?

      1 Reply Last reply
      1
      • AnmolA Anmol

        im new to Ubuntu(linux). i have created a application for windows . and i want to install it also on my ubuntu .
        i have compiled project on ubuntu.

        now i want no create a .deb package for my application. i did google for a while and i discover that i need to copy some lib file to my project. but which one should i copy and which one not(in windows there was lots of .dll files means i can copy every file one by one). and even if some how i manage to copy all lib files how can create a .deb package for ubuntu?

        My project's github link

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

        @Anmol Use linuxdeployqt as @JonB suggested and then follow the description here: http://packaging.ubuntu.com/html/packaging-new-software.html

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

        AnmolA 1 Reply Last reply
        1
        • jsulmJ jsulm

          @Anmol Use linuxdeployqt as @JonB suggested and then follow the description here: http://packaging.ubuntu.com/html/packaging-new-software.html

          AnmolA Offline
          AnmolA Offline
          Anmol
          wrote on last edited by
          #4

          @jsulm linuxdeployqt is not working its giving me these error

          ./linuxdeployqt: relocation error: ./linuxdeployqt: relocation error: ./linuxdeployqt: symbol _ZdlPvm version Qt_5 not defined in file libQt5Core.so.5 with link time reference

          0_1559903796461_Screenshot_20190607_160457.png

          i'm using Kubunu 19.04 . and version of Qt5 is 5.12.3 .

          jsulmJ 1 Reply Last reply
          0
          • AnmolA Anmol

            @jsulm linuxdeployqt is not working its giving me these error

            ./linuxdeployqt: relocation error: ./linuxdeployqt: relocation error: ./linuxdeployqt: symbol _ZdlPvm version Qt_5 not defined in file libQt5Core.so.5 with link time reference

            0_1559903796461_Screenshot_20190607_160457.png

            i'm using Kubunu 19.04 . and version of Qt5 is 5.12.3 .

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

            @Anmol From where do you have linuxdeployqt?

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

            AnmolA 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Anmol From where do you have linuxdeployqt?

              AnmolA Offline
              AnmolA Offline
              Anmol
              wrote on last edited by Anmol
              #6

              @jsulm
              i got linuxdeployqt from here https://github.com/probonopd/linuxdeployqt

              i was folowing this Youtube video for help Video link

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

                Hi,

                With what version of Qt did you build it ?

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

                AnmolA 2 Replies Last reply
                0
                • SGaistS SGaist

                  Hi,

                  With what version of Qt did you build it ?

                  AnmolA Offline
                  AnmolA Offline
                  Anmol
                  wrote on last edited by
                  #8

                  @SGaist v 5.2.13

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Hi,

                    With what version of Qt did you build it ?

                    AnmolA Offline
                    AnmolA Offline
                    Anmol
                    wrote on last edited by
                    #9

                    @SGaist it says my host system is too new . and i can't use smaller version than 19.04 . they are not running properly . i'm thinking to compile it on VM box.

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

                      IIRC, you can force running it when that error message appears. Take a look at the options you can pass to linuxdeployqt.

                      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
                      • AnmolA Anmol

                        @SGaist it says my host system is too new . and i can't use smaller version than 19.04 . they are not running properly . i'm thinking to compile it on VM box.

                        N Offline
                        N Offline
                        Nifiro
                        wrote on last edited by
                        #11

                        @Anmol use -unsupported-allow-new-glibc option

                        AnmolA 1 Reply Last reply
                        0
                        • N Nifiro

                          @Anmol use -unsupported-allow-new-glibc option

                          AnmolA Offline
                          AnmolA Offline
                          Anmol
                          wrote on last edited by
                          #12

                          @Nifiro 0_1560062839957_Screenshot_20190609_121706.png

                          N 1 Reply Last reply
                          0
                          • AnmolA Anmol

                            @Nifiro 0_1560062839957_Screenshot_20190609_121706.png

                            N Offline
                            N Offline
                            Nifiro
                            wrote on last edited by
                            #13

                            @Anmol Provide the correct path to an executable

                            AnmolA 1 Reply Last reply
                            0
                            • N Nifiro

                              @Anmol Provide the correct path to an executable

                              AnmolA Offline
                              AnmolA Offline
                              Anmol
                              wrote on last edited by Anmol
                              #14

                              @Nifiro
                              sorry i posted wrong picture. that was right one

                              0_1560073353532_Screenshot_20190609_151205.png

                              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