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 Qt opencv how do it
QtWS25 Last Chance

Deploy Qt opencv how do it

Scheduled Pinned Locked Moved Unsolved General and Desktop
20 Posts 3 Posters 1.3k Views
  • 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.
  • A Offline
    A Offline
    asisisyah
    wrote on last edited by
    #1

    i search several time in here and all web but i dont understand or i didnt make or not enough knowlodge.
    i am using
    Ubuntu Ubuntu 22.04.2 LTS
    opencv 4.7.0
    Qt Creator Qt Creator 9.0.1
Based on Qt 6.4.0 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)
    i want that, make a exacutable file on another linux system, Please explain how do it.
    i try with linuxdeployqt-continuous-x86_64.AppImage

    thanks for advance

    C 1 Reply Last reply
    0
    • A asisisyah

      i search several time in here and all web but i dont understand or i didnt make or not enough knowlodge.
      i am using
      Ubuntu Ubuntu 22.04.2 LTS
      opencv 4.7.0
      Qt Creator Qt Creator 9.0.1
Based on Qt 6.4.0 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)
      i want that, make a exacutable file on another linux system, Please explain how do it.
      i try with linuxdeployqt-continuous-x86_64.AppImage

      thanks for advance

      C Offline
      C Offline
      CPPUIX
      wrote on last edited by
      #2

      @asisisyah said in Deploy Qt opencv how do it:

      linuxdeployqt-continuous-x86_64.AppImage

      what exactly happened when you tried that?

      A 1 Reply Last reply
      0
      • C CPPUIX

        @asisisyah said in Deploy Qt opencv how do it:

        linuxdeployqt-continuous-x86_64.AppImage

        what exactly happened when you tried that?

        A Offline
        A Offline
        asisisyah
        wrote on last edited by
        #3

        @Abderrahmene_Rayene said in Deploy Qt opencv how do it:

        what exactly happened when you tried that?

        it said that, your system is too new
        :(

        C JonBJ 2 Replies Last reply
        0
        • A asisisyah

          @Abderrahmene_Rayene said in Deploy Qt opencv how do it:

          what exactly happened when you tried that?

          it said that, your system is too new
          :(

          C Offline
          C Offline
          CPPUIX
          wrote on last edited by
          #4

          @asisisyah Have you looked at this?

          A 1 Reply Last reply
          1
          • C CPPUIX

            @asisisyah Have you looked at this?

            A Offline
            A Offline
            asisisyah
            wrote on last edited by
            #5

            @Abderrahmene_Rayene
            yes ofcourse, developers says you must use old versions of Linux like this ubuntu 16.0. , its not to be such as hard . i want deploy with linked Qt library and opencv library ... than execute it on another linux computer or run on embeded linux..
            is there lesson or tuttorial or anythig.

            JonBJ 1 Reply Last reply
            0
            • A asisisyah

              @Abderrahmene_Rayene
              yes ofcourse, developers says you must use old versions of Linux like this ubuntu 16.0. , its not to be such as hard . i want deploy with linked Qt library and opencv library ... than execute it on another linux computer or run on embeded linux..
              is there lesson or tuttorial or anythig.

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

              @asisisyah
              @Abderrahmene_Rayene's link told you to pass -unsupported-allow-new-glibc to your linuxdeployqt. How did that go when you tried it?

              A 1 Reply Last reply
              1
              • JonBJ JonB

                @asisisyah
                @Abderrahmene_Rayene's link told you to pass -unsupported-allow-new-glibc to your linuxdeployqt. How did that go when you tried it?

                A Offline
                A Offline
                asisisyah
                wrote on last edited by
                #7

                @JonB
                yep@yep:~/Desktop/deploy3$ sudo linuxdeployqt-continuous-x86_64.AppImage deploy12 -unsupported-allow-new-glibc
                [sudo] password for yep:
                linuxdeployqt (commit 8428c59), build 47 built on 2023-04-23 17:29:33 UTC
                WARNING: Not checking glibc on the host system.
                The resulting AppDir or AppImage may not run on older systems.
                This mode is unsupported and discouraged.
                For more information, please see
                https://github.com/probonopd/linuxdeployqt/issues/340
                Not using FHS-like mode
                app-binary: "/home/yep/Desktop/deploy3/deploy12"
                appDirPath: "/home/yep/Desktop/deploy3"
                relativeBinPath: "deploy12"
                qmakePath 3= ""
                ERROR: ldd outputLine: "libQt6Gui.so.6 => not found"
                ERROR: for binary: "/home/yep/Desktop/deploy3/lib//libQt6Widgets.so.6"
                ERROR: Please ensure that all libraries can be found by ldd. Aborting.

                C 1 Reply Last reply
                0
                • A asisisyah

                  @Abderrahmene_Rayene said in Deploy Qt opencv how do it:

                  what exactly happened when you tried that?

                  it said that, your system is too new
                  :(

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

                  @asisisyah said in Deploy Qt opencv how do it:

                  it said that, your system is too new

                  That is what you said before. Are you now saying you have got past that via the -unsupported-allow-new-glibc and this is a new error? It helps if you explain....

                  OK, I have not used linuxdeployqt before, but this looks like libQt6Gui.so.6, a Qt shared library file, cannot be found. So did that go into the the image created by linuxdeployqt? Did it get extracted? If so to where?

                  C A 2 Replies Last reply
                  0
                  • JonBJ JonB

                    @asisisyah said in Deploy Qt opencv how do it:

                    it said that, your system is too new

                    That is what you said before. Are you now saying you have got past that via the -unsupported-allow-new-glibc and this is a new error? It helps if you explain....

                    OK, I have not used linuxdeployqt before, but this looks like libQt6Gui.so.6, a Qt shared library file, cannot be found. So did that go into the the image created by linuxdeployqt? Did it get extracted? If so to where?

                    C Offline
                    C Offline
                    CPPUIX
                    wrote on last edited by
                    #9

                    @JonB said in Deploy Qt opencv how do it:

                    Are you now saying you have got past that via the -unsupported-allow-new-glibc and this is a new error?

                    It seems so, OP copied everything on the terminal and pasted here unformatted.

                    @asisisyah what do you get if you use this command:

                    ldd libQt6Gui.so.6

                    C 1 Reply Last reply
                    0
                    • JonBJ JonB

                      @asisisyah said in Deploy Qt opencv how do it:

                      it said that, your system is too new

                      That is what you said before. Are you now saying you have got past that via the -unsupported-allow-new-glibc and this is a new error? It helps if you explain....

                      OK, I have not used linuxdeployqt before, but this looks like libQt6Gui.so.6, a Qt shared library file, cannot be found. So did that go into the the image created by linuxdeployqt? Did it get extracted? If so to where?

                      A Offline
                      A Offline
                      asisisyah
                      wrote on last edited by
                      #10

                      @JonB
                      if i tried with -unsupported-allow-new-glibc it show these error.
                      its not extract anywhere.
                      my app its working my computer with Qt release run and Qt make new folder called Release , its working may app in folder or anywhere in my computer Desktop ,Document or Download folder as single file no problem but when its work on another computer, my app says "error while loading shared libraries: libopencv_highgui.so.407"
                      may be i can should add theese library file in other computer , but how?
                      may be add all needed library add in myApp Static or Dinamik, i

                      JonBJ 1 Reply Last reply
                      0
                      • A asisisyah

                        @JonB
                        if i tried with -unsupported-allow-new-glibc it show these error.
                        its not extract anywhere.
                        my app its working my computer with Qt release run and Qt make new folder called Release , its working may app in folder or anywhere in my computer Desktop ,Document or Download folder as single file no problem but when its work on another computer, my app says "error while loading shared libraries: libopencv_highgui.so.407"
                        may be i can should add theese library file in other computer , but how?
                        may be add all needed library add in myApp Static or Dinamik, i

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

                        @asisisyah
                        Now you say it's libopencv_highgui.so.407 when a moment ago you said it's libQt6Gui.so.6. It's really hard to follow what you are claiming....

                        In any case, the whole point of linuxdeployqt is to bundle all the libraries you need for your application and copy them onto target system. You need to find out what it is bundling/why it isn't doing so.

                        A 1 Reply Last reply
                        0
                        • JonBJ JonB

                          @asisisyah
                          Now you say it's libopencv_highgui.so.407 when a moment ago you said it's libQt6Gui.so.6. It's really hard to follow what you are claiming....

                          In any case, the whole point of linuxdeployqt is to bundle all the libraries you need for your application and copy them onto target system. You need to find out what it is bundling/why it isn't doing so.

                          A Offline
                          A Offline
                          asisisyah
                          wrote on last edited by
                          #12

                          @JonB
                          libopencv_highgui.so.407 -> this error means if i run myApp on other linux computer. other computer says that error message.

                          libQt6Gui.so.6 -> this error means , if i run linuxdeployqt on my computer in my terminal show error.

                          at the point , all error message for linking , i cant deploy with linking with QT or linuxdeploy, how is solve
                          thank you for interesting,

                          C 1 Reply Last reply
                          0
                          • A asisisyah

                            @JonB
                            libopencv_highgui.so.407 -> this error means if i run myApp on other linux computer. other computer says that error message.

                            libQt6Gui.so.6 -> this error means , if i run linuxdeployqt on my computer in my terminal show error.

                            at the point , all error message for linking , i cant deploy with linking with QT or linuxdeploy, how is solve
                            thank you for interesting,

                            C Offline
                            C Offline
                            CPPUIX
                            wrote on last edited by
                            #13

                            @asisisyah said in Deploy Qt opencv how do it:

                            libopencv_highgui.so.407 -> this error means if i run myApp on other linux computer. other computer says that error message.

                            of course, because you did not properly deploy your app for your target.

                            @asisisyah said in Deploy Qt opencv how do it:

                            libQt6Gui.so.6 -> this error means , if i run linuxdeployqt on my computer in my terminal show error.

                            How about you just focus just on this error? solving it would solve your first issue.

                            You can answer my question if you'd like to troubleshoot this error further.

                            Once you get linuxdeployqt working properly, then it's much easier to help you with deploying opencv into your app.

                            A 1 Reply Last reply
                            0
                            • C CPPUIX

                              @asisisyah said in Deploy Qt opencv how do it:

                              libopencv_highgui.so.407 -> this error means if i run myApp on other linux computer. other computer says that error message.

                              of course, because you did not properly deploy your app for your target.

                              @asisisyah said in Deploy Qt opencv how do it:

                              libQt6Gui.so.6 -> this error means , if i run linuxdeployqt on my computer in my terminal show error.

                              How about you just focus just on this error? solving it would solve your first issue.

                              You can answer my question if you'd like to troubleshoot this error further.

                              Once you get linuxdeployqt working properly, then it's much easier to help you with deploying opencv into your app.

                              A Offline
                              A Offline
                              asisisyah
                              wrote on last edited by
                              #14

                              @Abderrahmene_Rayene said in Deploy Qt opencv how do it:

                              Once you get linuxdeployqt working properly, then it's much easier to help you with deploying opencv into your app.

                              but How can i working properly ,
                              Usage: linuxdeployqt <app-binary|desktop file> [options]
                              i make lik this link link text
                              and i make structure tree

                              1 Reply Last reply
                              0
                              • C CPPUIX

                                @JonB said in Deploy Qt opencv how do it:

                                Are you now saying you have got past that via the -unsupported-allow-new-glibc and this is a new error?

                                It seems so, OP copied everything on the terminal and pasted here unformatted.

                                @asisisyah what do you get if you use this command:

                                ldd libQt6Gui.so.6

                                C Offline
                                C Offline
                                CPPUIX
                                wrote on last edited by
                                #15

                                @Abderrahmene_Rayene said in Deploy Qt opencv how do it:

                                @asisisyah what do you get if you use this command:
                                ldd libQt6Gui.so.6

                                A 1 Reply Last reply
                                0
                                • C CPPUIX

                                  @Abderrahmene_Rayene said in Deploy Qt opencv how do it:

                                  @asisisyah what do you get if you use this command:
                                  ldd libQt6Gui.so.6

                                  A Offline
                                  A Offline
                                  asisisyah
                                  wrote on last edited by
                                  #16

                                  @Abderrahmene_Rayene
                                  ldd libQt6Gui.so.6
                                  terminal says : No such file or directory

                                  1 Reply Last reply
                                  0
                                  • A asisisyah

                                    @JonB
                                    yep@yep:~/Desktop/deploy3$ sudo linuxdeployqt-continuous-x86_64.AppImage deploy12 -unsupported-allow-new-glibc
                                    [sudo] password for yep:
                                    linuxdeployqt (commit 8428c59), build 47 built on 2023-04-23 17:29:33 UTC
                                    WARNING: Not checking glibc on the host system.
                                    The resulting AppDir or AppImage may not run on older systems.
                                    This mode is unsupported and discouraged.
                                    For more information, please see
                                    https://github.com/probonopd/linuxdeployqt/issues/340
                                    Not using FHS-like mode
                                    app-binary: "/home/yep/Desktop/deploy3/deploy12"
                                    appDirPath: "/home/yep/Desktop/deploy3"
                                    relativeBinPath: "deploy12"
                                    qmakePath 3= ""
                                    ERROR: ldd outputLine: "libQt6Gui.so.6 => not found"
                                    ERROR: for binary: "/home/yep/Desktop/deploy3/lib//libQt6Widgets.so.6"
                                    ERROR: Please ensure that all libraries can be found by ldd. Aborting.

                                    C Offline
                                    C Offline
                                    CPPUIX
                                    wrote on last edited by CPPUIX
                                    #17

                                    @asisisyah said in Deploy Qt opencv how do it:

                                    ERROR: Please ensure that all libraries can be found by ldd. Aborting.

                                    it seems like your ldd cannot find Qt shared libraries because they are not in a standard path, it needs to be configured to find them, it might not be a linuxdeployqt issue.

                                    qmakePath 3= ""

                                    the above does not look right to me, so trying the below might help:

                                    linuxdeployqt <your app> -qmake=/path/to/Qt/your Qt version/gcc_64/bin/qmake

                                    this might be of some use as well : Qt deployment can't finde my libs but ldd can

                                    A 1 Reply Last reply
                                    0
                                    • C CPPUIX

                                      @asisisyah said in Deploy Qt opencv how do it:

                                      ERROR: Please ensure that all libraries can be found by ldd. Aborting.

                                      it seems like your ldd cannot find Qt shared libraries because they are not in a standard path, it needs to be configured to find them, it might not be a linuxdeployqt issue.

                                      qmakePath 3= ""

                                      the above does not look right to me, so trying the below might help:

                                      linuxdeployqt <your app> -qmake=/path/to/Qt/your Qt version/gcc_64/bin/qmake

                                      this might be of some use as well : Qt deployment can't finde my libs but ldd can

                                      A Offline
                                      A Offline
                                      asisisyah
                                      wrote on last edited by asisisyah
                                      #18

                                      @Abderrahmene_Rayene said in Deploy Qt opencv how do it:

                                      linuxdeployqt <your app> -qmake=/path/to/Qt/your Qt version/gcc_64/bin/qmake

                                      this command is work. al Qt libraries came in folder under the lib folder. YES.
                                      qt library is okey i think,
                                      so how i get opencv libs

                                      i tried just now that
                                      sudo ./linuxdeployqt-continuous-x86_64.AppImage /home/yep/Desktop/deploy3/deploy12 -bundle-non-qt-libs -unsupported-allow-new-glibc

                                      its work all opencv libs came in same lib folder.

                                      than i tried other computer i take this error message
                                      libQt6Widgets.so.6: undefined symbol: _ZTIN4QCss13StyleSelectorE, version Qt_6_PRIVATE_API

                                      C 1 Reply Last reply
                                      0
                                      • A asisisyah

                                        @Abderrahmene_Rayene said in Deploy Qt opencv how do it:

                                        linuxdeployqt <your app> -qmake=/path/to/Qt/your Qt version/gcc_64/bin/qmake

                                        this command is work. al Qt libraries came in folder under the lib folder. YES.
                                        qt library is okey i think,
                                        so how i get opencv libs

                                        i tried just now that
                                        sudo ./linuxdeployqt-continuous-x86_64.AppImage /home/yep/Desktop/deploy3/deploy12 -bundle-non-qt-libs -unsupported-allow-new-glibc

                                        its work all opencv libs came in same lib folder.

                                        than i tried other computer i take this error message
                                        libQt6Widgets.so.6: undefined symbol: _ZTIN4QCss13StyleSelectorE, version Qt_6_PRIVATE_API

                                        C Offline
                                        C Offline
                                        CPPUIX
                                        wrote on last edited by
                                        #19

                                        @asisisyah every solution I mentioned so far is just me using uncle google, try to google that error, try the solutions you find, and let us know when all of them do not work and why they did not work (error and so on).

                                        You're making progress, so that's good.

                                        Good luck!

                                        A 1 Reply Last reply
                                        0
                                        • C CPPUIX

                                          @asisisyah every solution I mentioned so far is just me using uncle google, try to google that error, try the solutions you find, and let us know when all of them do not work and why they did not work (error and so on).

                                          You're making progress, so that's good.

                                          Good luck!

                                          A Offline
                                          A Offline
                                          asisisyah
                                          wrote on last edited by
                                          #20

                                          @Abderrahmene_Rayene
                                          thank you so much, i am continue to try

                                          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