Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Static Qt 5.4.1 without libtiff dependency?
Qt 6.12 LTS is out! See what's new in the release blog

Static Qt 5.4.1 without libtiff dependency?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.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.
  • N Offline
    N Offline
    nirslsk
    wrote on last edited by
    #1

    Hi there,

    I have a Qt application which I build for a variety of operating systems including Linux. Up until recently I've been using Qt 4 for Linux because it seems to have a lot less dependencies than Qt 5. Very recently I tried building against Qt 5 and let a few of our users try it out. I've tried minimizing dependencies on system libraries using this configuration:

    ./configure -static -nomake examples -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-xcb -qt-xkbcommon

    It emerged that dependencies on the ICU and libtiff system libraries were causing compatibility issues on other Linux distributions. ICU was easy to take care of, I just added the -no-icu switch. Webkit needs it, but I don't use Webkit in my project. However I can't figure how to remove the libtiff dependecy. Earlier versions of Qt 5 had a -qt-libtiff switch but not Qt 5.4.1. I could do without tiff support entirely if it's an option. Does anyone know of a possible way to address this issue?

    Thanks, Nir

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

      Hi,

      The tiff support has moved to the qtimageformats plugin. You can also find the sources of libtiff in that module

      Hope it helps

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

      N 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        The tiff support has moved to the qtimageformats plugin. You can also find the sources of libtiff in that module

        Hope it helps

        N Offline
        N Offline
        nirslsk
        wrote on last edited by
        #3

        Interesting. I tried: QTPLUGINS += qtiff in my project file and it told me it was redundant, I guess because qtiff is already included. So then why is there a dependency on the system's tiff library? I event tried removing the qtiff plugin with QTPLUGINS -= qtiff but it didn't change anything. Maybe there's another component in the Qt library that might rely on it that's creating this dependency?

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

          Are you using stuff that is only in qtbase ?

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

          N 1 Reply Last reply
          0
          • SGaistS SGaist

            Are you using stuff that is only in qtbase ?

            N Offline
            N Offline
            nirslsk
            wrote on last edited by
            #5

            My project file uses:

            QT += widgets core gui network multimedia

            Is that what you mean?

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

              Yes that's what I meant. What you can do is just build qtbase first and then qtmultimedia afterwards. So you'll ensure that you have only these two built, no qtimageformats etc.

              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

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt
              • Unsolved