Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Windows build needs libtiff-5__.dll
Forum Updated to NodeBB v4.3 + New Features

Windows build needs libtiff-5__.dll

Scheduled Pinned Locked Moved Solved Installation and Deployment
17 Posts 4 Posters 2.6k 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Hi all -

    I created a static build of Qt for Windows, in order to produce a standalone image of my application. When I gave my application to someone, he got some runtime errors about missing some libraries:

    libtiff-5__.dll
    libjpeg-9__.dll
    libfreetype-6__.dll
    libpng16-16.dll
    

    I have these libraries in my Strawberry perl installation. But what I'm wondering is, what might it be about my application that needs these files? I've created other standalone images in the past without having to worry about these (I'd never even heard of them until my user reported this issue).

    Thanks for any suggestions...

    SGaistS JoeCFDJ 2 Replies Last reply
    0
    • mzimmersM mzimmers

      Hi all -

      I created a static build of Qt for Windows, in order to produce a standalone image of my application. When I gave my application to someone, he got some runtime errors about missing some libraries:

      libtiff-5__.dll
      libjpeg-9__.dll
      libfreetype-6__.dll
      libpng16-16.dll
      

      I have these libraries in my Strawberry perl installation. But what I'm wondering is, what might it be about my application that needs these files? I've created other standalone images in the past without having to worry about these (I'd never even heard of them until my user reported this issue).

      Thanks for any suggestions...

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #7

      @mzimmers My Qt app needs these installed libs on Linux which do not come with Qt. I guess they are needed on Windows as well.

      if your target device does not have these libs, you have to wrap them with your app.

      mzimmersM 1 Reply Last reply
      0
      • mzimmersM mzimmers

        Hi all -

        I created a static build of Qt for Windows, in order to produce a standalone image of my application. When I gave my application to someone, he got some runtime errors about missing some libraries:

        libtiff-5__.dll
        libjpeg-9__.dll
        libfreetype-6__.dll
        libpng16-16.dll
        

        I have these libraries in my Strawberry perl installation. But what I'm wondering is, what might it be about my application that needs these files? I've created other standalone images in the past without having to worry about these (I'd never even heard of them until my user reported this issue).

        Thanks for any suggestions...

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

        Hi,

        Do you also have the corresponding .lib file there ? If so, I am wondering whether the configuration script found them and used them in place of the embedded versions.

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

        mzimmersM 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Do you also have the corresponding .lib file there ? If so, I am wondering whether the configuration script found them and used them in place of the embedded versions.

          mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by mzimmers
          #3

          @SGaist that was my thought, too, but no, there's no counterpart, at least nowhere in my path. I also looked on the Strawberry web site at the various distributions, but it doesn't look like any use static libraries.

          I'm still curious as to how it is that my app thinks it even needs these files...

          SGaistS 1 Reply Last reply
          0
          • mzimmersM mzimmers

            @SGaist that was my thought, too, but no, there's no counterpart, at least nowhere in my path. I also looked on the Strawberry web site at the various distributions, but it doesn't look like any use static libraries.

            I'm still curious as to how it is that my app thinks it even needs these files...

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

            The corresponding image format plugins would need them if built against a dynamic version of these libraries.

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

            mzimmersM 1 Reply Last reply
            0
            • SGaistS SGaist

              The corresponding image format plugins would need them if built against a dynamic version of these libraries.

              mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #5

              @SGaist said in Windows build needs libtiff-5__.dll:

              The corresponding image format plugins would need them if built against a dynamic version of these libraries.

              No, I understand that (at least I think I do) -- what I meant is, how did I make this particular application "special" in that it needs these?

              Could it have something to do with the fact that I also build this for Android? I realize this is a reach, but I can't think of anything else yet.

              SGaistS 1 Reply Last reply
              0
              • mzimmersM mzimmers

                @SGaist said in Windows build needs libtiff-5__.dll:

                The corresponding image format plugins would need them if built against a dynamic version of these libraries.

                No, I understand that (at least I think I do) -- what I meant is, how did I make this particular application "special" in that it needs these?

                Could it have something to do with the fact that I also build this for Android? I realize this is a reach, but I can't think of anything else yet.

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

                Are you using any of the image format listed there ? In resources for example ?

                Which modules are you using for your application ?

                I don't think the build for Android has an influence there (it should not).

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

                mzimmersM 1 Reply Last reply
                0
                • mzimmersM mzimmers

                  Hi all -

                  I created a static build of Qt for Windows, in order to produce a standalone image of my application. When I gave my application to someone, he got some runtime errors about missing some libraries:

                  libtiff-5__.dll
                  libjpeg-9__.dll
                  libfreetype-6__.dll
                  libpng16-16.dll
                  

                  I have these libraries in my Strawberry perl installation. But what I'm wondering is, what might it be about my application that needs these files? I've created other standalone images in the past without having to worry about these (I'd never even heard of them until my user reported this issue).

                  Thanks for any suggestions...

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #7

                  @mzimmers My Qt app needs these installed libs on Linux which do not come with Qt. I guess they are needed on Windows as well.

                  if your target device does not have these libs, you have to wrap them with your app.

                  mzimmersM 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Are you using any of the image format listed there ? In resources for example ?

                    Which modules are you using for your application ?

                    I don't think the build for Android has an influence there (it should not).

                    mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #8

                    @SGaist said in Windows build needs libtiff-5__.dll:

                    Are you using any of the image format listed there ? In resources for example ?

                    Well I'm definitely not using TIFF. I may have some PNGs.

                    Which modules are you using for your application ?

                    Lots of them, but I don't have an exact list. I do draw from the controls, the layouts, etc. Plus my own modules (about 40 of them).

                    1 Reply Last reply
                    0
                    • JoeCFDJ JoeCFD

                      @mzimmers My Qt app needs these installed libs on Linux which do not come with Qt. I guess they are needed on Windows as well.

                      if your target device does not have these libs, you have to wrap them with your app.

                      mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #9

                      @JoeCFD said in Windows build needs libtiff-5__.dll:

                      if your target device does not have these libs, you have to wrap them with your app.

                      And, because they're .dlls, I can't build them into my application, can I?

                      Good thing all this Windows stuff is going away for me soon...

                      JoeCFDJ 1 Reply Last reply
                      0
                      • mzimmersM mzimmers

                        @JoeCFD said in Windows build needs libtiff-5__.dll:

                        if your target device does not have these libs, you have to wrap them with your app.

                        And, because they're .dlls, I can't build them into my application, can I?

                        Good thing all this Windows stuff is going away for me soon...

                        JoeCFDJ Offline
                        JoeCFDJ Offline
                        JoeCFD
                        wrote on last edited by
                        #10

                        @mzimmers On windows, yes. No for Android(LInux as well) and Linux.

                        mzimmersM 1 Reply Last reply
                        0
                        • mzimmersM mzimmers has marked this topic as solved on
                        • JoeCFDJ JoeCFD

                          @mzimmers On windows, yes. No for Android(LInux as well) and Linux.

                          mzimmersM Offline
                          mzimmersM Offline
                          mzimmers
                          wrote on last edited by
                          #11

                          @JoeCFD said in Windows build needs libtiff-5__.dll:

                          On windows, yes.

                          Oh? Are you sure about that? Remember, all I have are the .dlls (no static libraries).

                          jsulmJ JoeCFDJ 2 Replies Last reply
                          0
                          • mzimmersM mzimmers

                            @JoeCFD said in Windows build needs libtiff-5__.dll:

                            On windows, yes.

                            Oh? Are you sure about that? Remember, all I have are the .dlls (no static libraries).

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

                            @mzimmers To link your application to a library at build time you need .lib file, not .dll.
                            .dll is what is loaded at runtime.

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

                            mzimmersM 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @mzimmers To link your application to a library at build time you need .lib file, not .dll.
                              .dll is what is loaded at runtime.

                              mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #13

                              @jsulm right, but if I find some static versions of those libraries, will Qt link to them when I build? I realize I'll have to add them to my CMakeLists.txt file, but...are there any other steps needed?

                              Also, assuming I can find those libraries, is there a way to build them into my next static build of Qt?

                              Thanks...

                              jsulmJ 1 Reply Last reply
                              0
                              • mzimmersM mzimmers

                                @JoeCFD said in Windows build needs libtiff-5__.dll:

                                On windows, yes.

                                Oh? Are you sure about that? Remember, all I have are the .dlls (no static libraries).

                                JoeCFDJ Offline
                                JoeCFDJ Offline
                                JoeCFD
                                wrote on last edited by JoeCFD
                                #14

                                @mzimmers Open your APK to see what you have there. I guess dlls are used only in Windows, but not in Android(based on Linux).

                                mzimmersM 1 Reply Last reply
                                0
                                • JoeCFDJ JoeCFD

                                  @mzimmers Open your APK to see what you have there. I guess dlls are used only in Windows, but not in Android(based on Linux).

                                  mzimmersM Offline
                                  mzimmersM Offline
                                  mzimmers
                                  wrote on last edited by
                                  #15

                                  @JoeCFD I need this to work on all platforms. So far, I haven't found a static version of those libraries (though I haven't looked hard yet).

                                  JoeCFDJ 1 Reply Last reply
                                  0
                                  • mzimmersM mzimmers

                                    @JoeCFD I need this to work on all platforms. So far, I haven't found a static version of those libraries (though I haven't looked hard yet).

                                    JoeCFDJ Offline
                                    JoeCFDJ Offline
                                    JoeCFD
                                    wrote on last edited by
                                    #16

                                    @mzimmers get the source code and build a static one by yourself. It may not be that hard as you think.

                                    1 Reply Last reply
                                    0
                                    • mzimmersM mzimmers

                                      @jsulm right, but if I find some static versions of those libraries, will Qt link to them when I build? I realize I'll have to add them to my CMakeLists.txt file, but...are there any other steps needed?

                                      Also, assuming I can find those libraries, is there a way to build them into my next static build of Qt?

                                      Thanks...

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

                                      @mzimmers said in Windows build needs libtiff-5__.dll:

                                      Also, assuming I can find those libraries, is there a way to build them into my next static build of Qt?

                                      If source code is available then it should be possible as long as those can be built for all your target platforms.
                                      Static libs should work as long as they were built using compatible compiler.

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

                                      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