Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How can I install Qt debug library while installing Qt creator?

    General and Desktop
    qt 5.13.1 debug libraries qt creator linux gcc64
    2
    11
    1049
    Loading More Posts
    • 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.
    • Y
      Yash001 last edited by Yash001

      I am using Qt 5.13.1 and Ubuntu 18.04.

      I download Qt from https://www.qt.io/download-qt-installer?hsCtaTracking=99d9dd4f-5681-48d2-b096-470725510d34|074ddad0-fdef-4e53-8aa8-5e8a876d6ab4/

      When I search for debug library in Qt at qt lib directory is giving me nothing.
      I search using
      ls | grep ".debug" at this location ~/Qt5.13.1/5.13.1/gcc_64/lib.

      Do I need to install any other package to get debug library in Qt?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Did you modify the path for the installation ?

        Just checked and the .debug versions are there.

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

        Y 1 Reply Last reply Reply Quote 0
        • Y
          Yash001 @SGaist last edited by

          @SGaist said in How can I install Qt debug library while installing Qt creator?:

          Did you modify the path for the installation ?

          @SGaist
          I completely remove Qt from old path by call MaintenanceTool.

          After that I reinstall it.

          @SGaist said in How can I install Qt debug library while installing Qt creator?:

          Just checked and the .debug versions are there.

          I checked it, No, There is not debug version.

          1 Reply Last reply Reply Quote 0
          • Y
            Yash001 last edited by

            Is it fine if i will use Qt Release library with my C++ debug library?

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Did you try to do a debug build of your application ?

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

              Y 1 Reply Last reply Reply Quote 0
              • Y
                Yash001 @SGaist last edited by

                @SGaist Yes, I tried my project in Debug mode in Qt creator . It is working fine in tool.
                I want to release my C++ library code with Qt Library in Release Debug mode. So That, Non QT user can also use my code.

                SGaist 1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion @Yash001 last edited by

                  @Yash001 said in How can I install Qt debug library while installing Qt creator?:

                  I want to release my C++ library code with Qt Library in Release Debug mode. So That, Non QT user can also use my code.

                  That phrase is not really clear.

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

                  Y 1 Reply Last reply Reply Quote 0
                  • Y
                    Yash001 @SGaist last edited by

                    @SGaist said in How can I install Qt debug library while installing Qt creator?:

                    That phrase is not really clear.

                    I am creating API library, which is create with help of C++ code and Qt code.
                    In Other word, My Library code is depend on Qt Code. In library Package, I want to bundle debug library and release library.

                    For my code I can generate debug library by build as Debug mode, and release library by setting build as Release.

                    for Qt code I can take dependent release library from location ~/Qt/5.13.1/gcc_64/lib/ but I do not have debug library of Qt code.

                    I did same thing on windows platform and it is work fine. On windows platform I found all library of Qt code, example like Qt5Core.dll and Qt5Cored.dll

                    I am trying implement same things on Linux.

                    1 Reply Last reply Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      How are you planning to distribute your library ?

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

                      Y 1 Reply Last reply Reply Quote 0
                      • Y
                        Yash001 @SGaist last edited by Yash001

                        @SGaist said in How can I install Qt debug library while installing Qt creator?:

                        How are you planning to distribute your library ?

                        I am planing to create libraries bundle by following steps:

                        1. creating my own libraries on Qt Creator
                        2. collect all require libraries and plugin with help of CQTDeployer tool
                        3. attached shell script, which will set require variable.
                        BASE_DIR=$(dirname "$(readlink -f "$0")")
                        export LD_LIBRARY_PATH="$BASE_DIR"/lib:"$BASE_DIR":$LD_LIBRARY_PATH
                        export QT_PLUGIN_PATH="$BASE_DIR"/plugins:QT_PLUGIN_PATH
                        export QT_QPA_PLATFORM_PLUGIN_PATH="$BASE_DIR"/plugins/platforms:QT_QPA_PLATFORM_PLUGIN_PATH
                        

                        are you recommend any better way to distribute libraries?

                        1 Reply Last reply Reply Quote 0
                        • SGaist
                          SGaist Lifetime Qt Champion last edited by

                          A library is not an application. If you are targeting several Linux distributions, the nicest would be to provide a package using their format e.g. .deb files for Debian based distributions.

                          As for Windows, there's no real package format. Maybe using something like conan.io might be an option. Otherwise an archive that provides your .dll, header and .lib files for the various compilers you want to support is usually good enough.

                          However packing a full version of all your dependencies, while it sounds nice, might prove problematic. If you provide them, then you should also take care of updating them in case of security issues found during the year.

                          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 Reply Quote 1
                          • First post
                            Last post