DDS image format plugin
-
-
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.
-
Not really. Checkout the QtImageFormats repo and try to make the dds plugin compile.
-
@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.
-
@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.
-
@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. -
@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)
-
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.
-
@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.
-
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 )
?
-
@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.
-
@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?