Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt 6: Qt Image Formats - enable tiff compilation
QtWS25 Last Chance

Qt 6: Qt Image Formats - enable tiff compilation

Scheduled Pinned Locked Moved Unsolved Qt 6
8 Posts 2 Posters 2.0k 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.
  • V Offline
    V Offline
    Vookimedlo
    wrote on 10 Dec 2020, 18:00 last edited by
    #1

    Hi there,

    I'd like to build the Qt Image Formats (6.0.0) including the TIFF support. How do I enable the TIFF compilation.

    ➜ pwd
    /Users/duda/Qt/AdditionalLibraries/Qt/qtimageformats-6.0.0/Src
    ➜ conan install . --build=missing --profile=/Users/duda/Qt/Tools/Conan/profiles/qt-6.0.0-macx-clang -s build_type=Release -g cmake_paths -g=cmake -g deploy
    
    Configuration:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=11.0
    os=Macos
    [options]
    qt6=6.0.0
    [build_requires]
    [env]
    QT_PATH=/Users/duda/Qt/6.0.0/clang_64
    conanfile.py (qtimageformats/6.0.0): Installing package
    Requirements
    Packages
    
    Installing (downloading, building) binaries...
    conanfile.py (qtimageformats/6.0.0): Generator cmake_paths created conan_paths.cmake
    conanfile.py (qtimageformats/6.0.0): Generator deploy created deploy_manifest.txt
    conanfile.py (qtimageformats/6.0.0): Generator txt created conanbuildinfo.txt
    conanfile.py (qtimageformats/6.0.0): Generator cmake created conanbuildinfo.cmake
    conanfile.py (qtimageformats/6.0.0): Generated conaninfo.txt
    conanfile.py (qtimageformats/6.0.0): Generated graphinfo
    
    ➜  ~/Qt/Tools/Conan/conan build .
    Using lockfile: '/Users/duda/Qt/AdditionalLibraries/Qt/qtimageformats-6.0.0/Src/conan.lock'
    Using cached profile from lockfile
    conanfile.py (qtimageformats/6.0.0): Calling build()
    CMAKE_PREFIX_PATH for 'qtimageformats/6.0.0' build is: /Users/duda/Qt/6.0.0/clang_64
    CMAKE_PREFIX_PATH for 'qtimageformats/6.0.0' build is: /Users/duda/Qt/6.0.0/clang_64
    -- The CXX compiler identification is AppleClang 12.0.0.12000032
    -- The C compiler identification is AppleClang 12.0.0.12000032
    ...
    -- Could NOT find JPEG (missing: JPEG_LIBRARY) (found version "80")
    -- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR JPEG_LIBRARIES)
    -- Could NOT find TIFF (missing: TIFF_LIBRARY) (found version "4.0.9")
    -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
    -- Could NOT find WebP (missing: WebP_INCLUDE_DIR WebP_LIBRARY WebP_demux_INCLUDE_DIR WebP_demux_LIBRARY WebP_mux_INCLUDE_DIR WebP_mux_LIBRARY)
    ...
     * Qt6BuildInternals
     * Qt6CoreTools (required version >= 6.0.0)
     * Qt6Core
     * OpenGL
     * Qt6GuiTools (required version >= 6.0.0)
     * Qt6Gui
     * Qt6 (required version >= 6.0.0)
    
    -- The following OPTIONAL packages have not been found:
    
     * JPEG
     * Jasper
     * WrapJasper
     * TIFF
     * PkgConfig
     * WrapWebP
    
    Configure summary:
    
    Further Image Formats:
      JasPer ................................. no
      MNG .................................... no
      TIFF ................................... no
        Using system libtiff ................. no
      WEBP ................................... no
        Using system libwebp ................. no
    

    I am using the BigSur (Intel) for compilation and can't find out how can I enable the TIFF compilation. I see that the libtiff sources are bundled in the qtimageformats. I also have the system libtiff installed.

    ➜ pkg-config --static --libs libtiff-4
    -L/usr/local/Cellar/libtiff/4.1.0_1/lib -ltiff -ljpeg -lz
    ➜ pkg-config --static --cflags-only-I libtiff-4
    -I/usr/local/Cellar/libtiff/4.1.0_1/include
    

    Could you point me on the right way in my investigation?

    Thanks a lot!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Dec 2020, 18:08 last edited by
      #2

      Hi and welcome to devnet,

      Did you check the test logs to see exactly what failed ?

      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
      • V Offline
        V Offline
        Vookimedlo
        wrote on 10 Dec 2020, 18:20 last edited by
        #3

        Could you point me to the file I am supposed to check?

        I would say that I need to somehow instruct conan to set the QT_FEATURE_tiff:INTERNAL and the FEATURE_tiff:BOOL to on.

        ➜  Src grep tiff * -R | more
        CMakeCache.txt://  Using system libtiff
        CMakeCache.txt:FEATURE_system_tiff:BOOL=OFF
        CMakeCache.txt:FEATURE_tiff:BOOL=OFF
        CMakeCache.txt:INPUT_tiff:STRING=undefined
        CMakeCache.txt://STRINGS property for variable: INPUT_tiff
        CMakeCache.txt:INPUT_tiff-STRINGS:INTERNAL=undefined;no;qt;system
        CMakeCache.txt:QT_FEATURE_LABEL_system_tiff:INTERNAL=  Using system libtiff
        CMakeCache.txt:QT_FEATURE_LABEL_tiff:INTERNAL=TIFF
        CMakeCache.txt://Qt feature: system_tiff
        CMakeCache.txt:QT_FEATURE_system_tiff:INTERNAL=OFF
        CMakeCache.txt://Qt feature: tiff
        CMakeCache.txt:QT_FEATURE_tiff:INTERNAL=OFF
        
        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 10 Dec 2020, 19:14 last edited by
          #4

          See this blog entry on how to manipulate the feature system with cmake.

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

          V 1 Reply Last reply 10 Dec 2020, 19:50
          0
          • S SGaist
            10 Dec 2020, 19:14

            See this blog entry on how to manipulate the feature system with cmake.

            V Offline
            V Offline
            Vookimedlo
            wrote on 10 Dec 2020, 19:50 last edited by Vookimedlo 12 Oct 2020, 19:51
            #5

            @SGaist Thank you very much, that helped!

            I had to update the conanfile.py because I do not know how to pass the required arguments to cmake via conan CLI.

            770cafd3-d18d-4395-8c31-fb6d201b97d1-image.png

            And it really works - the bundled libtiff is now being built including the Qt TIFF plugin!!!

            129b2b8e-4aac-4a5b-b7c1-71667e90425d-image.png

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 10 Dec 2020, 20:14 last edited by
              #6

              Are you using the just released 6.0.0 sources ?

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

              V 2 Replies Last reply 10 Dec 2020, 20:19
              0
              • S SGaist
                10 Dec 2020, 20:14

                Are you using the just released 6.0.0 sources ?

                V Offline
                V Offline
                Vookimedlo
                wrote on 10 Dec 2020, 20:19 last edited by
                #7

                @SGaist Yes, all installed via the Qt installer.

                1 Reply Last reply
                0
                • S SGaist
                  10 Dec 2020, 20:14

                  Are you using the just released 6.0.0 sources ?

                  V Offline
                  V Offline
                  Vookimedlo
                  wrote on 10 Dec 2020, 20:32 last edited by
                  #8

                  @SGaist Just tried to build the same module on the Windows machine and I would say that Qt might have a bug inside.

                  There is no Release configuration, I had to specify the RelWithDebInfo.

                  conan install .. --build=missing --profile=C:\Qt\Tools\Conan\profiles\qt-6.0.0-msvc2019_64 -s build_type=RelWithDebInfo -g cmake_paths -g=cmake -g deploy -o qtimageformats:shared=True
                  
                  1 Reply Last reply
                  0

                  1/8

                  10 Dec 2020, 18:00

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved