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. DDS image format plugin
Forum Updated to NodeBB v4.3 + New Features

DDS image format plugin

Scheduled Pinned Locked Moved Unsolved Qt 6
13 Posts 3 Posters 1.8k Views 1 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.
  • Q QMLEngine

    Can you give the link and explain how to use ?

    Christian EhrlicherC Offline
    Christian EhrlicherC Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Not really. Checkout the QtImageFormats repo and try to make the dds plugin compile.

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    1 Reply Last reply
    0
    • Q QMLEngine

      Can you give the link and explain how to use ?

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

      @QMLEngine Hi,

      How to use the plugin ? The same way any of the other plugins is used: load a .dds file.

      As for the building the plugin:

      • Clone the qtimageformats repository
      • Add the necessary CMake bits and CMakeLists.txt so the dds subfolder content is built.
      • Fix code issues in the plugin.

      For the cmake bits, simply look at the other plugins around the dds. Note that the dds plugin has no external dependencies.

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

      Q 1 Reply Last reply
      1
      • SGaistS SGaist

        @QMLEngine Hi,

        How to use the plugin ? The same way any of the other plugins is used: load a .dds file.

        As for the building the plugin:

        • Clone the qtimageformats repository
        • Add the necessary CMake bits and CMakeLists.txt so the dds subfolder content is built.
        • Fix code issues in the plugin.

        For the cmake bits, simply look at the other plugins around the dds. Note that the dds plugin has no external dependencies.

        Q Offline
        Q Offline
        QMLEngine
        wrote on last edited by QMLEngine
        #6

        @SGaist it is okey but when I go to qtimageformats/src/plugins/imageformats/dds, dds folder is only one which has not any cmake.txt to compile and I do not know why. So, I got struggled for creating a new cmake.txt by looking others.

        Christian EhrlicherC 1 Reply Last reply
        0
        • Q QMLEngine

          @SGaist it is okey but when I go to qtimageformats/src/plugins/imageformats/dds, dds folder is only one which has not any cmake.txt to compile and I do not know why. So, I got struggled for creating a new cmake.txt by looking others.

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #7

          @QMLEngine said in DDS image format plugin:

          which has not any cmake.txt for compile and I do not know why

          Because of

          The dds plugin is no longer supported with Qt6 but the code is still in the QtImageFormats git repo so you have to make it compile with Qt6 and build it by yourself.

          @SGaist told you what to do:

          As for the building the plugin:

          Clone the qtimageformats repository
          Add the necessary CMake bits and CMakeLists.txt so the dds subfolder content is built.
          Fix code issues in the plugin.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          Q 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @QMLEngine said in DDS image format plugin:

            which has not any cmake.txt for compile and I do not know why

            Because of

            The dds plugin is no longer supported with Qt6 but the code is still in the QtImageFormats git repo so you have to make it compile with Qt6 and build it by yourself.

            @SGaist told you what to do:

            As for the building the plugin:

            Clone the qtimageformats repository
            Add the necessary CMake bits and CMakeLists.txt so the dds subfolder content is built.
            Fix code issues in the plugin.

            Q Offline
            Q Offline
            QMLEngine
            wrote on last edited by
            #8

            @Christian-Ehrlicher This is the problem, I couldn't understand how to add necessary CMake bits and CMakeLists.txt. I just want to learn how to do it ? This is the main problem of my question; I couldn't create a cmake for dds. (Thank you for your in advance help)

            Christian EhrlicherC 1 Reply Last reply
            0
            • Q QMLEngine

              @Christian-Ehrlicher This is the problem, I couldn't understand how to add necessary CMake bits and CMakeLists.txt. I just want to learn how to do it ? This is the main problem of my question; I couldn't create a cmake for dds. (Thank you for your in advance help)

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #9

              As @SGaist already said - take a look at the other plugins for an example on how to build a proper CMakeLists.txt. they all follow the same schema.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              Q 1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                As @SGaist already said - take a look at the other plugins for an example on how to build a proper CMakeLists.txt. they all follow the same schema.

                Q Offline
                Q Offline
                QMLEngine
                wrote on last edited by
                #10

                @Christian-Ehrlicher I don't want to be rude, but I already looked and couldn't do it, so I'm asking for your help and asking the same thing over and over again, I looked at the others, I tried but I couldn't do it. Thats why I am writing same question over and over again for an hour.

                Christian EhrlicherC 1 Reply Last reply
                0
                • Q QMLEngine

                  @Christian-Ehrlicher I don't want to be rude, but I already looked and couldn't do it, so I'm asking for your help and asking the same thing over and over again, I looked at the others, I tried but I couldn't do it. Thats why I am writing same question over and over again for an hour.

                  Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by Christian Ehrlicher
                  #11

                  So you want to tell me that you can't adapt e.g the tga CMakeLists.txt which consists of 8 lines of real code to be used for the dds image plugin?

                  qt_internal_add_plugin(QTgaPlugin
                      OUTPUT_NAME qtga
                      PLUGIN_TYPE imageformats
                      SOURCES
                          main.cpp
                          qtgafile.cpp qtgafile.h
                          qtgahandler.cpp qtgahandler.h
                      LIBRARIES
                          Qt::Core
                          Qt::Gui
                  )
                  

                  ?

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  Q 1 Reply Last reply
                  0
                  • Christian EhrlicherC Christian Ehrlicher

                    So you want to tell me that you can't adapt e.g the tga CMakeLists.txt which consists of 8 lines of real code to be used for the dds image plugin?

                    qt_internal_add_plugin(QTgaPlugin
                        OUTPUT_NAME qtga
                        PLUGIN_TYPE imageformats
                        SOURCES
                            main.cpp
                            qtgafile.cpp qtgafile.h
                            qtgahandler.cpp qtgahandler.h
                        LIBRARIES
                            Qt::Core
                            Qt::Gui
                    )
                    

                    ?

                    Q Offline
                    Q Offline
                    QMLEngine
                    wrote on last edited by QMLEngine
                    #12

                    @Christian-Ehrlicher No, I just want to say that I changed and adapt this code according to dds and create a CMake.txt file in the folder of dds but still I couldn't see dds in QImageReader::supportedImageFormats() supported image format. Also, still I can not use .dds file to show an image in qt creator.

                    Since I couldn't find the problem myself, I wanted to ask if there was anyone who knew exactly how to do it. Instead of constantly saying look other files and create a smilar, you can just write full answer if you know how to write. If you do not know how to do it, I would welcome you to leave it to someone who knows, because the answers you give are always the same. Also, if I ask someone who doesn't know QT at all, he also will say look at same CMake files and create a smilar one. I'm waiting for a real answer and if you don't know, I think you need to stop saying look at similars all the time so that someone who knows can answer. Because approaching to a question with such an attitude is not a pleasant attitude. Thank you in advance.

                    Christian EhrlicherC 1 Reply Last reply
                    0
                    • Q QMLEngine

                      @Christian-Ehrlicher No, I just want to say that I changed and adapt this code according to dds and create a CMake.txt file in the folder of dds but still I couldn't see dds in QImageReader::supportedImageFormats() supported image format. Also, still I can not use .dds file to show an image in qt creator.

                      Since I couldn't find the problem myself, I wanted to ask if there was anyone who knew exactly how to do it. Instead of constantly saying look other files and create a smilar, you can just write full answer if you know how to write. If you do not know how to do it, I would welcome you to leave it to someone who knows, because the answers you give are always the same. Also, if I ask someone who doesn't know QT at all, he also will say look at same CMake files and create a smilar one. I'm waiting for a real answer and if you don't know, I think you need to stop saying look at similars all the time so that someone who knows can answer. Because approaching to a question with such an attitude is not a pleasant attitude. Thank you in advance.

                      Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #13

                      @QMLEngine said in DDS image format plugin:

                      CMake.txt file in the folder of dds but still I couldn't see dds in QImageReader::supportedImageFormats() supported image format.

                      And did you acutally compile and install the dds plugin afterwards?

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      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